fix(shader): account for dead UAV reads in barrier test #4327

Closed
Blitzball996 wants to merge 11 commits from upstream-pr/4327 into main
Blitzball996 commented 2026-11-30 18:56:27 +00:00 (Migrated from github.com)

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_dword whose result was never used. The standalone BARRIERS pass keeps the intervening barrier because the read is present. The full ALL pipeline removes the dead read, then safely coalesces the barrier. The test now asserts those two distinct outcomes.

Validation

  • The targeted split_lds_wave32_read_after_read_barrier_coalescing_and_parity test passes locally with the pinned toolchain and DXC.
  • git diff --check passes.
  • The full victory-shader test run reported 533 passed and 3 failures at local DXIL container validation (Pipeline State Validation); 10 tests were ignored.
  • The current main CI Clippy blockers are being addressed separately in PR #4296.

This changes test expectations only. It does not alter emitted shader code or claim a runtime performance change.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5571730231 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4327). Originally posted by [Blitzball996](https://github.com/Blitzball996) on 2026-11-30T18:56:27Z. --- ## What changed The shader-barrier test inserted a UAV `buffer_load_dword` whose result was never used. The standalone `BARRIERS` pass keeps the intervening barrier because the read is present. The full `ALL` pipeline removes the dead read, then safely coalesces the barrier. The test now asserts those two distinct outcomes. ## Validation - The targeted `split_lds_wave32_read_after_read_barrier_coalescing_and_parity` test passes locally with the pinned toolchain and DXC. - `git diff --check` passes. - The full `victory-shader` test run reported 533 passed and 3 failures at local DXIL container validation (`Pipeline State Validation`); 10 tests were ignored. - The current main CI Clippy blockers are being addressed separately in PR #4296. This changes test expectations only. It does not alter emitted shader code or claim a runtime performance change.
tyr0nsur commented 2026-11-30 23:29:37 +00:00 (Migrated from github.com)

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 in neg_uav_load_between_reads: ALL emits BWBRRBWBR and the test expects BWBRBRBWBR. Cherry-picking this PR's 265f73ca onto that same main passes the whole targeted test on the same Windows machine. The recorded patterns agree with the report (0 and BARRIERS: BWBRBRBWBR; ALL: BWBRRBWBR). No product shader changes were needed for this check.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7295180842 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4327#issuecomment-7295180842). Originally posted by [tyr0nsur](https://github.com/tyr0nsur) on 2026-11-30T23:29:37Z. --- Independent check against current main `e1251c31`, prompted by #4562. The targeted test fails on main in `neg_uav_load_between_reads`: `ALL` emits `BWBRRBWBR` and the test expects `BWBRBRBWBR`. Cherry-picking this PR's `265f73ca` onto that same main passes the whole targeted test on the same Windows machine. The recorded patterns agree with the report (`0` and `BARRIERS`: `BWBRBRBWBR`; `ALL`: `BWBRRBWBR`). No product shader changes were needed for this check.
trustno1-coder commented 2026-12-01 18:44:15 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321445155 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4327#issuecomment-7321445155). Originally posted by [trustno1-coder](https://github.com/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

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
trustno1-coder/VIctory-NVIDIA!4327
No description provided.