OLD-7505: restore old upstream PR 7505 - w64_graphics, design: the wave32 VS run is the halves of the wave64 waves, not a repacking (TEST-1700) #804

Merged
aslan2142 merged 4 commits from upstream-pr/804 into main 2026-11-25 22:31:14 +00:00
aslan2142 commented 2026-11-24 14:00:42 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-24T14:00:42Z.


Claimed in the coordination issue as: OLD-7505 https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7133546591

Restoration of my original pull request, old upstream PR 7505 in ItsNotRexed/Leonida, which was closed unmerged when that repository went private on 2026-11-23 (old numbers link nowhere now). Rebased onto main at d0da7dade8; the docs/design.md Wave64 graphics row is resolved on main's newer text (it keeps main's tier C elected-lane clause), and the GFX1201 credit, written in the original as a mention and an old PR number, is now plain text ("sperm's old upstream PR 7354").

Depends on: #187 (draft, edits the same docs/design.md line)

What and why

  • w64_graphics.py and the docs/design.md Wave64 graphics row said RADV's wave32 VS run "repacks the vertices", which made it "a stricter test" of tiers A and B. It does not repack.
  • vs_w64_c_lane_id over all 960 vertices shows:
    • wave64 waves of 64, 62, 64, 62 ... vertices, starting at 0, 64, 126, 190 ...
    • wave32 waves of 32, 32, 32, 30 ..., starting at 0, 32, 64, 96, 126 ...
    • a period of 126 vertices at both sizes
    • each vertex's wave32 lane is its wave64 lane & 31
  • So the 32-lane run is the cut into halves that the tiers describe. Both texts now say so, and name the devices.
    • RADV Mesa 26.3.1: a gfx1036 iGPU (Raphael, found by sskver) and an RX 7900 XTX (NAVI31).
    • RADV Mesa 26.2.6: an RX 9070 XT (GFX1201), where every wave32 wave lies inside one half of a wave64 wave. This GFX1201 data is from sperm's old upstream PR 7354, folded in here.
  • The docstring also warns VS fixture authors that waves start at even vertices that are not all multiples of 4 (126, 252, ...). So lane ^ 1 stays on vertex v ^ 1, but ^ 2, ^ 3 and ^ 16 can cross a wave boundary.
  • Docs and docstring only; no code or fixture changes.

Tested

  • runtime/test/shaders/w64_graphics.py, all 31 fixtures built with runtime/test/shaders/build.py (31 translated, 31 pass spirv-val), vk_harness built from this branch. The script switches the VS/GS stages with RADV_PERFTEST=gewave32 itself.
    • Before (main) and after (this branch), on both GPUs: 29/29 ok (9 A, 8 B, 12 C), including all seven vs_w64_*.
  • tests/test_design_contract_rows.py, test_docs_design_rows.py, test_docs_encoding.py, test_docs_links.py, test_docs_list_items.py, test_docs_repeated_lines.py, test_docs_repo_paths.py, test_docs_table_ids.py, test_docs_table_rows.py, test_docs_env_vars.py, test_docs_cli_flags.py, test_text_write_line_endings.py: OK.
  • git diff --check clean; python -I scripts/check_no_game_data.py on both changed files: clean.
  • In the old repository, the original had independent GPU checks on RDNA2, RDNA3, RDNA 3.5 and RDNA4.

GPUs tested: AMD Radeon RX 7900 XTX (RDNA3, gfx1100) and AMD Ryzen 9 7950X3D iGPU (Raphael, gfx1036, RDNA2), both RADV Mesa 26.3.1, Arch Linux

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (No new rule; n/a.)

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5473597392 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/804). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-24T14:00:42Z. --- Claimed in the coordination issue as: OLD-7505 https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7133546591 Restoration of my original pull request, old upstream PR 7505 in `ItsNotRexed/Leonida`, which was closed unmerged when that repository went private on 2026-11-23 (old numbers link nowhere now). Rebased onto main at d0da7dade8b6; the `docs/design.md` Wave64 graphics row is resolved on main's newer text (it keeps main's tier C `elected-lane` clause), and the GFX1201 credit, written in the original as a mention and an old PR number, is now plain text ("sperm's old upstream PR 7354"). Depends on: #187 (draft, edits the same docs/design.md line) ### What and why - `w64_graphics.py` and the `docs/design.md` Wave64 graphics row said RADV's wave32 VS run "repacks the vertices", which made it "a stricter test" of tiers A and B. It does not repack. - `vs_w64_c_lane_id` over all 960 vertices shows: - wave64 waves of 64, 62, 64, 62 ... vertices, starting at 0, 64, 126, 190 ... - wave32 waves of 32, 32, 32, 30 ..., starting at 0, 32, 64, 96, 126 ... - a period of 126 vertices at both sizes - each vertex's wave32 lane is its wave64 lane & 31 - So the 32-lane run is the cut into halves that the tiers describe. Both texts now say so, and name the devices. - RADV Mesa 26.3.1: a gfx1036 iGPU (Raphael, found by sskver) and an RX 7900 XTX (NAVI31). - RADV Mesa 26.2.6: an RX 9070 XT (GFX1201), where every wave32 wave lies inside one half of a wave64 wave. This GFX1201 data is from sperm's old upstream PR 7354, folded in here. - The docstring also warns VS fixture authors that waves start at even vertices that are not all multiples of 4 (126, 252, ...). So `lane ^ 1` stays on vertex `v ^ 1`, but `^ 2`, `^ 3` and `^ 16` can cross a wave boundary. - Docs and docstring only; no code or fixture changes. ### Tested - `runtime/test/shaders/w64_graphics.py`, all 31 fixtures built with `runtime/test/shaders/build.py` (31 translated, 31 pass `spirv-val`), `vk_harness` built from this branch. The script switches the VS/GS stages with `RADV_PERFTEST=gewave32` itself. - Before (main) and after (this branch), on both GPUs: 29/29 ok (9 A, 8 B, 12 C), including all seven `vs_w64_*`. - `tests/test_design_contract_rows.py`, `test_docs_design_rows.py`, `test_docs_encoding.py`, `test_docs_links.py`, `test_docs_list_items.py`, `test_docs_repeated_lines.py`, `test_docs_repo_paths.py`, `test_docs_table_ids.py`, `test_docs_table_rows.py`, `test_docs_env_vars.py`, `test_docs_cli_flags.py`, `test_text_write_line_endings.py`: OK. - `git diff --check` clean; `python -I scripts/check_no_game_data.py` on both changed files: clean. - In the old repository, the original had independent GPU checks on RDNA2, RDNA3, RDNA 3.5 and RDNA4. GPUs tested: AMD Radeon RX 7900 XTX (RDNA3, gfx1100) and AMD Ryzen 9 7950X3D iGPU (Raphael, gfx1036, RDNA2), both RADV Mesa 26.3.1, Arch Linux AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (No new rule; n/a.) AI-assisted (Claude Code, Claude Opus 5.5).
Sangonapou commented 2026-11-24 16:04:11 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Sangonapou on 2026-11-24T16:04:11Z.


Tested a213a232 on NVIDIA GeForce RTX 3080 Ti Laptop (Ampere, subgroup 32..32), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Pro (build 26300): pass for what a 32-only device can run

Runtime built at this head with scripts\build_runtime.ps1 (MSVC 19.51); shaders from runtime/test/shaders/build.py at this head (llvm-mc 23.1.6, SPIRV-Tools 2026.4); then python -I runtime/test/shaders/w64_graphics.py <spirv dir> runtime\build, exit 0. No game files.

  • Tier A: 9/9 ok, tier B: 8/8 ok (VS, PS and GS fixtures run as two 32-lane halves on this device).
  • Tier C: all 12 SKIP (tier C needs a device that can require both 64 and 32, or W64G_REF), including vs_w64_c_lane_id whose description this PR changes, so the tier C wording is not exercised here. A 64-and-32 device (or a W64G_REF capture) is needed for that part.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7137068561 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/804#issuecomment-7137068561). Originally posted by [Sangonapou](https://github.com/Sangonapou) on 2026-11-24T16:04:11Z. --- Tested a213a232 on NVIDIA GeForce RTX 3080 Ti Laptop (Ampere, subgroup 32..32), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Pro (build 26300): pass for what a 32-only device can run Runtime built at this head with `scripts\build_runtime.ps1` (MSVC 19.51); shaders from `runtime/test/shaders/build.py` at this head (`llvm-mc` 23.1.6, SPIRV-Tools 2026.4); then `python -I runtime/test/shaders/w64_graphics.py <spirv dir> runtime\build`, exit 0. No game files. - Tier A: 9/9 `ok`, tier B: 8/8 `ok` (VS, PS and GS fixtures run as two 32-lane halves on this device). - Tier C: all 12 `SKIP (tier C needs a device that can require both 64 and 32, or W64G_REF)`, including `vs_w64_c_lane_id` whose description this PR changes, so the tier C wording is not exercised here. A 64-and-32 device (or a `W64G_REF` capture) is needed for that part.
aslan2142 commented 2026-11-24 19:30:56 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-24T19:30:56Z.


Thanks for the run on the 3080 Ti.

  • Right, a 32-only device skips tier C, so it can't check the vs_w64_c_lane_id wording. Tier C did run for this PR on two devices that can require both 64 and 32: the RX 7900 XTX (RDNA3, gfx1100) and the 7950X3D iGPU (gfx1036, RDNA2), both RADV Mesa 26.3.1, as listed under "Tested". Your result confirms the other half: tiers A and B pass on NVIDIA as two 32-lane halves.
  • The red checks are main's: windows is the __imp_WaitOnAddress / WakeByAddress* link error fixed on main by #877, and linux-gpu-tools is cs_imgload_tfe / cs_imgload_d16_tfe (issue #31, fixed on main by #892).

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7142207760 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/804#issuecomment-7142207760). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-24T19:30:56Z. --- Thanks for the run on the 3080 Ti. - Right, a 32-only device skips tier C, so it can't check the `vs_w64_c_lane_id` wording. Tier C did run for this PR on two devices that can require both 64 and 32: the RX 7900 XTX (RDNA3, gfx1100) and the 7950X3D iGPU (gfx1036, RDNA2), both RADV Mesa 26.3.1, as listed under "Tested". Your result confirms the other half: tiers A and B pass on NVIDIA as two 32-lane halves. - The red checks are `main`'s: `windows` is the `__imp_WaitOnAddress` / `WakeByAddress*` link error fixed on `main` by #877, and `linux-gpu-tools` is `cs_imgload_tfe` / `cs_imgload_d16_tfe` (issue #31, fixed on `main` by #892). AI-assisted (Claude Code, Claude Opus 5.5).
aslan2142 commented 2026-11-25 22:31:17 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-25T22:31:17Z.


Merged: w64_graphics, design: the wave32 VS run is the halves of the wave64 waves, not a repacking (TEST-1700).

  • Changed since review: Nothing since 16b5b540c (main merged in); it merges cleanly with current main. Tier C ran on the RX 7900 XTX and the gfx1036 iGPU (RADV, Mesa 26.3.1); a 32-only device skips it.
  • Tested: the docs tests pass on main + this head (Linux).
  • Checked on main d3b67a704 + 16b5b540c: the semantic suite passes (493 files, 6,318 tests, 0 files failed); test_run_gpu_tests, test_shader_checks pass; the 15 docs and writer tests pass; check_no_game_data.py is clean on the 2 changed files.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7176463998 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/804#issuecomment-7176463998). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-25T22:31:17Z. --- Merged: w64_graphics, design: the wave32 VS run is the halves of the wave64 waves, not a repacking (TEST-1700). - **Changed since review:** Nothing since `16b5b540c` (`main` merged in); it merges cleanly with current `main`. Tier C ran on the RX 7900 XTX and the gfx1036 iGPU (RADV, Mesa 26.3.1); a 32-only device skips it. - **Tested:** the docs tests pass on `main` + this head (Linux). - **Checked on `main` `d3b67a704` + `16b5b540c`:** the semantic suite passes (493 files, 6,318 tests, 0 files failed); `test_run_gpu_tests`, `test_shader_checks` pass; the 15 docs and writer tests pass; `check_no_game_data.py` is clean on the 2 changed files. AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!804
No description provided.