fix(shader): account for dead UAV reads in barrier test #4327
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4327"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Blitzball996 on 2026-11-30T18:56:27Z.
What changed
The shader-barrier test inserted a UAV
buffer_load_dwordwhose result was never used. The standaloneBARRIERSpass keeps the intervening barrier because the read is present. The fullALLpipeline removes the dead read, then safely coalesces the barrier. The test now asserts those two distinct outcomes.Validation
split_lds_wave32_read_after_read_barrier_coalescing_and_paritytest passes locally with the pinned toolchain and DXC.git diff --checkpasses.victory-shadertest run reported 533 passed and 3 failures at local DXIL container validation (Pipeline State Validation); 10 tests were ignored.This changes test expectations only. It does not alter emitted shader code or claim a runtime performance change.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tyr0nsur on 2026-11-30T23:29:37Z.
Independent check against current main
e1251c31, prompted by #4562. The targeted test fails on main inneg_uav_load_between_reads:ALLemitsBWBRRBWBRand the test expectsBWBRBRBWBR. Cherry-picking this PR's265f73caonto that same main passes the whole targeted test on the same Windows machine. The recorded patterns agree with the report (0andBARRIERS:BWBRBRBWBR;ALL:BWBRRBWBR). No product shader changes were needed for this check.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:44:15Z.
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed