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

Closed
github-bot wants to merge 11 commits from github-bot/gh-4327 into main AGit
Owner

@⁠Blitzball996 on GitHub · 2026-11-30 18:56 UTC · original
Blitzball996:fix/shader-barrier-dead-uav-test → main · +795 −825 · 33 files · 11 commits · closed without merging

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 #4297.

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

**@⁠Blitzball996** on GitHub · 2026-11-30 18:56 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4327) `Blitzball996:fix/shader-barrier-dead-uav-test` → `main` · +795 −825 · 33 files · 11 commits · closed without merging ## 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 #4297. This changes test expectations only. It does not alter emitted shader code or claim a runtime performance change.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 18:58:08 +00:00
Author
Owner

@⁠tyr0nsur on GitHub · 2026-11-30 23:29 UTC · original

Independent check against current main e1251c31, prompted by #4563. 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.

**@⁠tyr0nsur** on GitHub · 2026-11-30 23:29 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4327#issuecomment-7295180842) Independent check against current main `e1251c31`, prompted by #4563. 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.
github-bot closed this pull request 2026-12-01 18:50:10 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:44 UTC · original

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.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4327#issuecomment-7321445155) 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

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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