Repository navigation
Conversation
…_offset_gathers_preserve_offset_and_unpack_uv_lod
… forwarding tests
…518 forward constants
|
Tested
AI-assisted; synthetic fixtures only, no game data. |
|
Tested
The full semantic run includes the untouched files under
The one GPU failure is I read the forwarding through looking for a stale value and found none:
Two notes on the tests:
|
|
I ran the four additional CPU suites adrianmjim called out. On The assertion loses track of which 0.5 the multiply uses. With forwarding, both the second addend and the scale appear as a double constructed from the literal words for 0.5. On the PR head the add uses I tested a local repair that starts at the multiply consuming the add, follows its actual scale operand through RTX 4090, Windows, NVIDIA 616.64: I drew the stock |
|
Independent verification (native Windows; RTX 4070 SUPER + AMD gfx1036 iGPU): authorship preserved (SweatierKey author). |
MoonEyes
left a comment
There was a problem hiding this comment.
Corpus numbers for this PR, which AGENTS.md asks for ("translated and spirv-val-valid counts before and after"). Windows 11, Python 3.14, Vulkan SDK 1.4.363 spirv-val, a full 1.0.2.1 work folder (shaders/dxbc/disasm), 12 shards then --merge. This PR merged locally onto main 3f81d46 (no conflict), compared with a9f8dc8 (3f81d46 plus one test-only commit; translator code identical):
| main a9f8dc8 | 3f81d46 + this PR | |
|---|---|---|
| translated | 26,503 / 26,503 | 26,503 / 26,503 |
| pass spirv-val | 26,503 / 26,503 | 26,503 / 26,503 |
.spv files that change |
- | 26,497 of 26,546 |
| of those, smaller / larger | - | 26,497 / 0 |
total .spv bytes |
12,891,133,980 | 12,112,842,476 (-6.04 %) |
So no shader is lost or made invalid, and every changed module gets smaller.
Translator suite on the same merge: python -I scripts/run_semantic_tests.py tests/semantic gives 488 files, 6,286 tests, 1 file failed (test_lds_src2). It fails the same way without this PR (run on a9f8dc8: 1 files, 5 tests, 1 files failed: test_lds_src2): it hands llvm-mc a Windows temp path, which my LLVM_MC=wsl ... llvm-mc cannot open. This PR does not touch that file; #1733 fixes it.
What this does not show: spirv-val checks that the modules are valid, not that they compute the same values. I did not run the GPU tests on this branch.
AI-assisted: yes (Claude Code ran the translations and the suite; I read the results).
Claim: #1568 (OLD-10044 / Draft #309)
Summary:
%vgpr/%sgprvalue forwarding intools/rdna2spirv.py.%vgprwrites and active-lane guardedOpSelect(tests/semantic/test_*,tests/test_*).Verification (Linux):
python3 -I scripts/check_no_game_data.pyon all modified files -> OKpython3 -m compileall -q make_game.py tools tests-> OKPYTHONPATH=tests/semantic python3 -m pytest tests/test_cube_sample.py-> 18 passed in 1.28spython3 -m unitteston the 10 remaining modified test files (test_buffer_oob_select,test_buffer_swizzle,test_image_sample_bias_nonps,test_reg_load_forwarding,test_sample_c,test_sample_cl,test_f64_transcendentals,test_image_load_typed,test_rcp_iflag_mods,test_translate) -> 112 passed, 1 skipped, 0 failedAI-assisted: yes