Repository navigation
Conversation
|
Tested on AMD Radeon RX 9070 XT (RDNA4) at Hardware: RX 9070 XT (RDNA4, driver 32.0.32015.7029), Ryzen 7 5700X3D, 32 GB RAM, Windows 11 Pro build 26300.9974, Rust 1.100.0 x86_64-pc-windows-msvc, DXC 1.9.2602.17, debug build. Tested
Not tested: retail title / Report written by Claude Code (Claude Sonnet 5.5) from a real run on this machine. Correction (hidden skips): "0 SKIPPED" above means no |
|
Tested on NVIDIA RTX 5080 (Blackwell, wave32) at Tested
Not tested
AI use
|
|
AMD run with native 64-lane waves, plus NVIDIA. Updated for head Tested: pass, head
Not tested: retail gameplay. Note: these runs check that the translated HLSL matches the test's reference model, in 64-lane and in 32-lane waves. They cannot show that the model matches the hardware. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report. |
|
Linux / AMD RDNA3 datapoint. Merged state: head Full suite, Not tested: retail titles (none here), Windows, RDNA4. Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting. |
pvfreis
left a comment
There was a problem hiding this comment.
Review of 3297633 (merge base 1ec4c98; it merges cleanly into current main), by reading the code; nothing was built or run here. I checked that analyze_spills drops a VGPR's shadowed slots on every write rdna2::vgpr_uses lists (VALU, VMEM/DS loads, returning atomics, MIMG data registers), on a dynamic-lane v_writelane and on v_movrel*/v_swaprel*, gives up on indirect jumps, and that both halves still write the real VGPR lane. No defect found.
Questions for the author
- In the GPU test, the "vector write" case reads v11, which no
v_writelanewrote. Could it also spill to a slot, overwrite that VGPR with a VALU op, and read the slot from the upper half? Then a stale shadow would be caught on the GPU, not only by the analysis unit tests. - How were the DXC/PSO times and the
rla_ucounts taken (command, number of runs, cold or warm cache), so someone else can repeat them?
Review by Claude Code (written by Claude Opus 5.5, second read by Claude Fable 5.2); each point checked by a person before posting.
|
Thanks for the code review! Answering both questions:
AI use: Antigravity (Gemini 4 Neon) helped draft this reply from the code and measurement logs. |
|
Thanks. I'd add the spill, VALU overwrite, read case to the GPU test: it is the one way a stale shadow gives a wrong value without failing anything, and the analysis unit tests don't run the emitted HLSL. It changes only the test, so the existing runs stay meaningful for the code. On the numbers: the scan and the benchmark could live in the tree as an Reply by Claude Code (Claude Opus 5.5); checked by a person before posting. |
In split-wave64 mode (two hardware wave32 halves per console wave64), SGPR spill reloads (v_writelane_b32 -> v_readlane_b32 with a constant lane) previously went through xcl_x_rla_uniform and emitted a full cross-half exchange (spin-wait loop, barriers, and atomics) even though both halves already hold identical SGPRs (x64_masks keeps v_writelane_b32's scalar source whole-live). Add a conservative forward must-analysis (upper_lanes::analyze_spills) for split-wave64 Kernel/Compute/Mesh programs that tracks constant-lane v_writelane_b32 slots across 0..64 without intervening VGPR writes, dynamic-lane writes, v_movrel/v_swaprel, LOOP_GUARD exits, or indirect jumps. Shadowed v_readlane_b32 reads take xcl_sh<v>_<l> directly with no cross-half exchange while v_writelane_b32 still updates the VGPR lane. Native wave64 HLSL is unchanged. Measured on RTX 3060 Ti (DXC 1.9.2609.5) across spill-heavy retail wave64 compute shaders: - CS_Slod_BatchCull: rla_u 259->9, DXC 9231->4869 ms, DXIL -25.6%, PSO 9118->6334 ms - CS_Gather_Reference: rla_u 311->17, DXC 14047->7720 ms, DXIL -23.7%, PSO 11848->9305 ms - CS_TransmissionVolumetricsSubmerged: rla_u 506->323, DXC 30955->24472 ms, PSO 30468->27233 ms Assisted-by: Antigravity (Gemini 4 Neon)
3297633 to
709abd7
Compare
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Independent RTX 3080 Ti check of #917 head
I also made a clean, uncommitted merge of that same head into current Not tested: retail smoke on this machine, cold DXC/PSO compile-time improvement, or native AMD wave64. AI use: Codex (GPT-6; exact variant unavailable) ran the tests and drafted this report; GPT-6.2 Astra Low reviewed the current diff. |
|
Tested Independent run at clean PR head Prebuilt with 1 passed, 0 failed, 0 ignored and 0 GPU skips (3.71 s). HLSL/DXC split-wave64 readback matched both spill slots ( Not tested Branch-join behavior, native wave64, the workspace suite and retail smoke. AI use T3 Code / Codex (gpt-6.2-sol) ran the original verification and summarized the saved results. |
|
merge-check claim |
|
merge-check |
|
merge-check |
|
No open or merged PR makes the same change: main's spill-slot shadows (4d64749, Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
��In split-wave64 mode (two hardware wave32 halves per console wave64), SGPR spill reloads (
v_writelane_b32�!v_readlane_b32with a constant lane) previously went throughxcl_x_rla_uniformand emitted a full cross-half exchange (bounded spin loop, barriers, and atomics), even though both halves already hold identical SGPRs (x64_maskskeepsv_writelane_b32's scalar source whole-live).This adds a conservative forward must-analysis (
upper_lanes::analyze_spills) for split-wave64Kernel,Compute, andMeshprograms so constant-lane spill reloads read a scalar shadowxcl_sh<v>_<l>directly without exchanging across halves, reducing DXIL size and NVIDIA driver (nvgpucomp64.dll) pipeline compile time. Native wave64 HLSL is unchanged.What is in it
crates/xcl/src/gpu/recomp/upper_lanes.rs: addanalyze_spills(tracks constant-lanev_writelane_b32slots0..63across the CFG; invalidates on any VGPR write, dynamic-lanev_writelane_b32,v_movrel/v_swaprel,LOOP_GUARDexits, or indirect jumps) + unit tests.crates/xcl/src/gpu/recomp/mod.rs: runanalyze_spillsfor split-wave64Kernel/Compute/Meshprograms.crates/xcl/src/gpu/recomp/emit.rs: emit directxcl_sh<v>_<l>reads for shadowedv_readlane_b32inx64()mode without declaring VS/PS-onlyxcl_hw32.crates/xcl/src/gpu/recomp/tests.rs: addgpu_split_wave64_writelane_spill_shadowsGPU test covering lower- and upper-half spill reloads alongside a non-spill cross-half read.Measured on three spill-heavy retail wave64 compute shaders (RTX 3060 Ti, DXC 1.9.2609.5, before �! after):
rla_u259 �! 9, DXC 9231 �! 4869 ms, DXIL 394692 �! 293800 B (-25.6%), PSO 9118 �! 6334 ms (-30.5%)rla_u311 �! 17, DXC 14047 �! 7720 ms, DXIL 506376 �! 386384 B (-23.7%), PSO 11848 �! 9305 ms (-21.5%)rla_u506 �! 323, DXC 30955 �! 24472 ms, DXIL 1200072 �! 1113164 B (-7.2%), PSO 30468 �! 27233 ms (-10.6%)Tested
x86_64-pc-windows-msvc), debug + release.cargo test --workspace -- --test-threads=1: 718 passed, 0 failed, 41 ignored (2 SKIPPED GPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware(no wave64)).--test-threads=4on commit1ec4c98, pre-existinghle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixelsfailed intermittently (cascading 2PoisonErrors in unrelatedd3d12xtests); allrecomptests pass under both--test-threads=4and--test-threads=1.Regression run
main:
PR:
Not tested
split_wave64is false there so emitted HLSL is unchanged).CreateComputePipelineState).AI use