Repository navigation
Conversation
|
Independent native Windows NVIDIA RTX 5080 (wave32) + D3D12 debug layer build/test run and code review at head Code Review
Tested
Not tested
AI use: Antigravity (Gemini 4 Neon reviewed the diff; Gemini 4 Hydrogen ran the RTX 5080 workspace tests) drafted this report. |
|
Test run of Tested
Review: src0 now comes from the extension dword's bits [7:0] with S0 at bit 23, src1's S1 at bit 31, and a Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
|
Regression runs for this PR's head main: this PR: Tested
Not tested
Report written with Claude Code (Claude Opus 5.5) from runs on this machine. |
|
2| |
|
Hardware check of Tested
Regression run PR ( Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
…cl-dev#811) Live head 204f4b9 still OPEN vs upstream/main. WHOLE fix: sgpr_uses SDWA ext-dword legs (S-bit scalar source, scalar VSRC1, SDST pair for VOPC compares with SD set except V_CMPX, v_cmpx writes EXEC not SGPR), vgpr_uses VSRC1 S-bit exclusion, both doc comments; upstream rdna2 test as-is plus the caller-reach test in recomp/tests.rs as-is (Windows-gated mod tests on linux: compiles/runs on Windows only). Failing-first: grafted rdna2 test onto pre-fix HEAD in /tmp/xcl-pref811 RED (v_cmp_lt_f32_sdwa s5,v1,s2 gave no SGPR + read of v2, exact upstream symptom); temp caller-reach probe (geometry_wave32_hazards on the SDWA-compare+BCSNT sequence) RED pre-fix; both GREEN post-fix. recomp test unrunnable on Linux (mod tests is cfg(all(test, windows))). Gates: both cargo checks 0 errors, rdna2:: 24/24, lib 753/0/1 (+1), title e2e 12 unique FAILs all D3D12.X GPU-only 0 non-GPU, retail fresh-root exit 139 SIGSEGV +0x2237320 stubs 20 xgr 3 apis unmapped []. Lock audit 0 new lock().
|
Nothing has happened on this PR for 3 days, so it is marked |
|
merge-check |
|
merge-check
|
rdna2::sgpr_uses and vgpr_uses read an SDWA instruction as its base dword: a source whose S bit is set (an SGPR) was no SGPR read, the second one was a VGPR read of the register with the same number, and the SGPR pair a v_cmp_*_sdwa writes instead of VCC (SD) was no write. `v_cmp_lt_f32_sdwa s5, v1, s2` gave no SGPR at all and a read of v2. What that reached: constant_samplers kept a constant in an SGPR the compare had overwritten, so an image instruction after it still got static sampler words; geometry_wave32_hazards and mesh_wave's mask state did not take the compare's result for a mask. x64_masks reads the extension dword itself and is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
204f4b9 to
c9ef0b8
Compare
|
Rebased onto It still fixes the same thing: on Windows, Ryzen 9 5950X: For merging it still needs the two |
|
No open or merged PR makes the same change. On main, AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
rdna2::sgpr_usesandrdna2::vgpr_usesread an SDWA instruction as its base dword only. A source whose S bit is set (an SGPR) is no SGPR read; the second one is reported as a VGPR read of the register with the same number; and the SGPR pair av_cmp_*_sdwawrites instead of VCC (SD) is no write. Forv_cmp_lt_f32_sdwa s5, v1, s2,maingives no SGPR at all and a read of v1 and v2.What that reaches (all on
maine50836b):constant_samplers(recomp/mod.rs, used bytranslate) keeps a constant in an SGPR the compare has overwritten, so an image instruction after it still gets static sampler words.geometry_wave32_hazardsandmesh_wave's mask state do not take the compare's result for a mask (s_bcnt1_i32_b32of it is no "whole-wave mask reduction").shaders.rs).x64_masks.rsreads the extension dword itself (x64_masks::uses) and is unchanged: it builds register bit sets per operand with its own per-lane rules, so using the shared function there would be a rewrite, not a small change.Independent of #790 / #791 (other hunks of
rdna2.rs; the three merge cleanly in any order).What is in it
crates/xcl/src/gpu/rdna2.rs:sgpr_usesadds the SDWA scalar sources (S0 / S1; an inline constant or NULL is no register) and the compare's SDST pair (not forv_cmpx, which writes EXEC);vgpr_usesdoes not count a VSRC1 whose S1 is set. Testsdwa_register_uses_come_from_the_extension_dword(7 words).crates/xcl/src/gpu/recomp/tests.rs:sdwa_compare_destination_is_a_write_to_the_analyses– the two caller-visible effects above on hand-built programs.Tested
main'srdna2.rs: both fail –(([], []), ([1, 2], []))where(([2], [5, 6]), ([1], []))is expected; no "whole-wave mask reduction"; andconstant_samplersreturns the sampler words for the image instruction after the compare too ([(16, [1, 2, 3, 4]), (32, [1, 2, 3, 4])]). With the change both pass.cargo test --workspace --no-fail-fast -- --test-threads=4on 204f4b9: two runs. Run 2: 706 passed, 0 failed, 41 ignored (xcl lib: 665 passed, 0 failed, 21 ignored). Run 1: 703 passed, 3 failed, 41 ignored –placed_title_textures_share_vram_and_preserve_pixels("cubemap extra_pages must be reused at same va") and the two tests its poisoned lock takes with it: the failure of Tests: placed_title_textures_share_vram_and_preserve_pixels fails now and then at its cubemap reuse check (main 9ce2070) #718, whichmainshows on this machine too.no wave64:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.Regression run
From eizispark's run (#811 (comment)), thanks:
main:
PR:
Not tested
XCL_SAMPLE_*data: the game-data tests passed without running. Whether a retail shader has an SDWA compare into an SGPR is not known to me.test_title_draws_with_a_root_signature_under_the_debug_layeranduploads_start_from_each_subresources_statereturn early.AI use
🤖 Generated with Claude Code