Test RDNA legacy MAD lowering without a GPU #3294
Open
github-bot
wants to merge 2 commits from
github-bot/gh-3294 into main
AGit
pull from: github-bot/gh-3294
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!3294
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3294"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@merzleckeier on GitHub · 2026-12-03 04:21 UTC · original
merzleckeier:codex/portable-rdna-legacy-mad-test→main· +20 −4 · 1 files · 2 commits · openClaimed in the coordination issue as D3D12-SHADER-RDNA-LEGACY-MAD-TEST.
What and why
The
mad_legacy: written alikeassertion that caught the regression fixed by #2624 runs in a Windows RDNA hardware test. The regression was also visible when comparing the compiler output on a CPU during the #2698 review. This adds that comparison to the portable shader library tests.The test reuses the synthetic VALU fixture with live root inputs and a buffer store. It compares the DXIL payload with only the RDNA
LEGACYbit changed. The existing Windows test still checks hardware execution.Tested
cargo test -p leonida-shader --lib --locked --offlineon516c9eaawith this patch. 255 passed, two ignored.legacy_madwith its earlier implementation from1d22590b9made the new assertion fail. The same test passes with the current lowering.fae5bd4b. The merge is clean and the portable suite had 256 passes and two ignored, including both the size-handle test and this regression.git diff --checkand the scoped clean-room check passed. Independent read-only review found no issues.GPUs tested: n/a. All tests above were compiler-only.
AI-assisted: OpenAI Codex (GPT-6) and independent read-only review by GPT-6.2 Sol.
Checklist
mainand merges cleanly.@fiestorra on GitHub · 2026-12-03 04:33 UTC · original
VERIFY-3294 — el test que responde la pregunta que dejé abierta en
#2698, y pasaUn fichero, +20/−4, y es el complemento exacto del carry
#3293:Y lo que hace es la respuesta a mi duda:
rdna_legacy_mad_uses_distinct_dxil—compila la instrucción y compara el DXIL de las dos formas, exigiendo que difieran. En
#2698yo dije que el fallo era «mad_legacy: written alike» y que no sabía si el test pedía lo imposible o el emisor perdía la forma. La respuesta es: ni una ni otra — el test no estaba midiendo lo que hacía falta, y este lo mide. Y el comentario del código dice por qué el caso es real: "Runtime inputs keep the zero check live", o sea que usa registros de entrada y no constantes, que es lo que hace que el camino del cero siga existiendo.Lo que verifiqué: el test nuevo pasa en su head (1 passed), y el fichero que toca es el mismo
valu_tests.rsdel rojo de#2698. Lo que no: la suite entera con este cambio — cambia un helper (lowers_valu→lower_valu, que ahora devuelveLowered) y es#[cfg(test)], así que no puede afectar al runtime, pero no corrí los 430 para comprobarlo.Si los dos entran,
#3293+#3294son el arreglo y la prueba juntos — y#2698, que sigue abierto, el mismo trabajo con una base vieja.@merzleckeier on GitHub · 2026-12-03 04:33 UTC · original
The Windows runtime job on
9582059astopped inleonida-hlebefore it reached the shader tests.modules::xasync::tests::run_returns_the_work_resultgotE_PENDINGwhere it expectedE_ABORT. The HLE source tree is identical tomain. I separately built the Windows MSVC shader test binary from9582059aand ran the new test under Wine. It passed.ac8af63esyncs withmainatd9b618f10. The test patch is byte-for-byte identical against the new base, the focused Linux test passed again, and an independent reviewer checked the sync. Fresh CI is starting. AI-assisted with OpenAI Codex.@fiestorra on GitHub · 2026-12-03 04:41 UTC · original
Y la suite entera que dije que no había corrido: 430/0/6, la misma que
mainLo escribí hace un minuto — «cambia un helper de
cfg(test), que no puede afectar al runtime, pero no corrí los 430 para comprobarlo» — y eso es exactamente la frase que me he pasado la noche anotando como trampa. El comando son 447 segundos y no hay nadie esperando.El mismo número que
mainy que el carry#3293, con el test nuevo incluido — porque el test nuevo es uno de los 430, y los otros 429 siguen pasando con ellower_valucambiado.Lo que esto añade a lo anterior: el refactor del helper (
lowers_valu→lower_valu, devolviendoLowered) no rompe nada de lo que usaba el anterior, que era la única duda real que quedaba sobre este PR.Así que el estado de
#3294es: un fichero, +20/−4, el test que responde la pregunta de#2698, y 430/0/6 con la suite entera.@merzleckeier on GitHub · 2026-12-03 04:45 UTC · original
All three workflows passed on
ac8af63e. The native Windows job recordsemit::lower::tests::rdna_legacy_mad_uses_distinct_dxil ... okandmodules::xasync::tests::run_returns_the_work_result ... ok. The Windows run onmainalso passes that XAsync test. Its earlier failure is tracked in #2570.The advisory asset-policy step logs the same three findings on both trees. The separate No Game Data workflow passed. AI-assisted with OpenAI Codex.
@MoonEyes on GitHub · 2026-12-03 05:01 UTC · original
RUN (in game, batch of three pull requests), each head merged with
git merge --no-ffonto maind9b618f10, in one build: #3290898de93c2, #3293fae5bd4b5, #32949582059a2. RTX 4060 8 GB, driver 610.88, Windows 11. Series S,-Resolution 1080, frame generation 2x,-PrecompileUsed, the same walking route as the other runs on this machine, 330 s after reaching the world.For reference, the same machine and route rendered 13.3 to 17.2 fps on other batches in the last day. These fps are a check that nothing fell over, not a measurement of a gain.
Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it. Two heads moved during the run: #3293 to
2abd0c4c4, which only regeneratesd3d12/docs/switches.md(git diff fae5bd4b5 2abd0c4c4outside*.mdis empty), and #3294 toac8af63e1, which only merges maind9b618f10, the same main this batch was built on (git diff d9b618f10 ac8af63e1is the same one-file change tolower.rsthat was tested). This run therefore also stands for those two new heads.Limits: one run; arrival in the world was driven by keys and not checked on pictures;
-PrecompileUsedwas used, so the default start (every known pipeline precompiled) was not exercised. #3290's switch is opt-in and was left off. #3293 targets AMD: on this NVIDIA card it shows no regression on the default path only, and the run on an RDNA4 card is still needed. The precompile before the world took 538 s against about 155 s for most batches tonight: the translator change leaves the pipeline cache cold.AI-assisted (Claude Code).
@TurboTheTurtle on GitHub · 2026-12-03 06:20 UTC · original
tested: same on both sides, no GPU needed for it. Machine: Windows 11, NVIDIA GeForce RTX 5080, driver 621.47, hardware-accelerated GPU scheduling on, page file 49,152 MB, tree at
e5c777734(threed3d12/README.mdcommits on maind9b618f10).cargo test --workspace --exclude xtask --lockedind3d12/-> the sevenokresults andleonida-gpu715 passed / 1 failed / 59 ignored, the one failure the knowndescriptor::host::tests::views_are_made_beside_the_heap_and_copied_inwhich passes withLEONIDA_VIEW_COPY=0and is unrelated to this change.node --test tests/test_*.cjs-> 113 tests, 0 fail. Headac8af63e1. Same counts as the base, so the legacy MAD lowering is covered by the translator's own tests without a card, as the note says.@lixonik on GitHub · 2026-12-03 06:40 UTC · original
Windows native verification -- PASS on head
ac8af63e1(merged cleanly viagit merge --no-ffontomaind9b618f10).Checks (Windows 10 x64)
python -I scripts/check_no_game_data.py-> PASScargo test -p leonida-shader --lib --locked lower::(withLEONIDA_DXIL=noneon Windows 10 inboxdxil.dll) -> test result: ok. 25 passed; 0 failed; 1 ignored; 0 measured; 410 filtered out; finished in 0.02sAI-assisted: yes (Antigravity -- Gemini 4 Neon).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.