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

Manually merged
github merged 4 commits from gh-pr/804/head into gh-pr/804/base 2026-11-26 09:22:07 +00:00
Owner

@⁠aslan2142 on GitHub · 2026-11-24 14:00 UTC · original
aslan2142:test1700-rdna3-repacking → main · +10 −3 · 2 files · 4 commits · merged 2026-11-25 22:31 UTC

Claimed in the coordination issue as: OLD-7505 #14

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).

**@⁠aslan2142** on GitHub · 2026-11-24 14:00 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/804) `aslan2142:test1700-rdna3-repacking` → `main` · +10 −3 · 2 files · 4 commits · merged 2026-11-25 22:31 UTC Claimed in the coordination issue as: OLD-7505 https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14 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).
vs_w64_c_lane_id over 960 vertices on RADV Mesa 26.3.1 gives the same
packing on a gfx1036 iGPU (Raphael) and an RX 7900 XTX (NAVI31, RDNA3):
waves of 64, 62, 64, 62 ... at wave64 and 32, 32, 32, 30 ... with
gewave32, a period of 126 vertices both ways, and every vertex's wave32
lane equal to its wave64 lane & 31. So the 32-lane run is the cut into
halves, not "a repacking ... a stricter test". Say what was measured,
on which devices, and note the lane ^ 2 trap for new VS fixtures.

Found by sskver. w64_graphics.py: 29/29 ok on both GPUs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Combines old upstream PR 7354 into this change: the wave64 and wave32 VS
waves start at vertices 0, 64, 126, 190 ... and 0, 32, 64, 96, 126 ...,
and on an RX 9070 XT (GFX1201, RDNA4, RADV Mesa 26.2.6) every wave32 wave
lies inside one half of a wave64 wave, measured on GFX1201 by sperm in
old upstream PR 7354. Both "GFX12 not measured" clauses now cite that
measurement.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflict in docs/design.md: this branch rewords the "Wave64 graphics: partition invariance
(SHADER-10)" row; main left that row as it was and added the SHADER-W64-WQM-UVOTE row after it.
Kept this branch's SHADER-10 row and main's new row below it. runtime/test/shaders/w64_graphics.py
merged without conflicts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflict in docs/design.md: main added the "Per-lane descriptor selection"
row right above the SHADER-10 row this PR rewords. Both are kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:22:06 +00:00
github manually merged commit 16b5b540c0 into gh-pr/804/base 2026-11-26 09:22:07 +00:00
Author
Owner

@⁠Sangonapou on GitHub · 2026-11-24 16:04 UTC · original

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.
**@⁠Sangonapou** on GitHub · 2026-11-24 16:04 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/804#issuecomment-7137068561) 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.
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-24 19:30 UTC · original

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** on GitHub · 2026-11-24 19:30 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/804#issuecomment-7142207760) 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).
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-25 22:31 UTC · original

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).

**@⁠aslan2142** on GitHub · 2026-11-25 22:31 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/804#issuecomment-7176463998) 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).
This discussion has been locked. Commenting is limited to contributors.
No description provided.