Skip to content

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 into
ProjectLeonida:mainfrom
aslan2142:test1700-rdna3-repacking
Nov 25, 2026
Merged

aslan2142 merged 4 commits into
ProjectLeonida:mainfrom
aslan2142:test1700-rdna3-repacking

Conversation

@aslan2142

Copy link
Copy Markdown
Collaborator

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

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 d0da7da; 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 and others added 2 commits November 24, 2026 08:57
…aves, not a repacking (TEST-1700)

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 <noreply@anthropic.com>
…tarts from old upstream PR 7354 (TEST-1700)

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 <noreply@anthropic.com>
@Sangonapou

Copy link
Copy Markdown
Contributor

Tested a213a23 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

Copy link
Copy Markdown
Collaborator Author

Thanks for the run on the 3080 Ti.

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

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 <noreply@anthropic.com>
@github-actions github-actions Bot added the needs rebase Conflicts with the base branch: rebase it on main label Nov 25, 2026
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 <noreply@anthropic.com>
@github-actions github-actions Bot removed the needs rebase Conflicts with the base branch: rebase it on main label Nov 25, 2026
@aslan2142
aslan2142 merged commit 17b5992 into ProjectLeonida:main Nov 25, 2026
2 of 5 checks passed
@aslan2142

Copy link
Copy Markdown
Collaborator Author

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants