GPU tests: set an explicit shader-read state in the window check #1282

Open
github-bot wants to merge 2 commits from github-bot/gh-1282 into main AGit
Owner

@⁠spk-c on GitHub · 2026-11-26 10:10 UTC · original
spk-c:submit/window-check-shader-read → main · +13 −3 · 1 files · 2 commits · open

AI-assisted change.

Summary

Transition the synthetic source buffer from COMMON to NON_PIXEL_SHADER_RESOURCE before the window-check test's first clamp read. The later COPY_DEST transition then begins from the explicitly recorded state. This change is limited to the test.

Validation

  • Passed host_list_window_check_finds_a_record_written_under_its_window on this branch with the diagnostics feature and the D3D12 debug layer enabled, using one test thread.

Refresh against upstream 52ac4ec

New head d7e3cb41cda905b76c2b58dfbc2278c60175e83d. Clean isolated workspace Cargo Check, strict all-feature Clippy and the focused host-list window-check regression (WARP requested) passed. Full upstream CI remains pending.

**@⁠spk-c** on GitHub · 2026-11-26 10:10 UTC · [original](https://github.com/fxceless/victory-fork/pull/1282) `spk-c:submit/window-check-shader-read` → `main` · +13 −3 · 1 files · 2 commits · open AI-assisted change. ## Summary Transition the synthetic source buffer from COMMON to NON_PIXEL_SHADER_RESOURCE before the window-check test's first clamp read. The later COPY_DEST transition then begins from the explicitly recorded state. This change is limited to the test. ## Validation - Passed `host_list_window_check_finds_a_record_written_under_its_window` on this branch with the diagnostics feature and the D3D12 debug layer enabled, using one test thread. ## Refresh against upstream 52ac4ec New head `d7e3cb41cda905b76c2b58dfbc2278c60175e83d`. Clean isolated workspace Cargo Check, strict all-feature Clippy and the focused host-list window-check regression (WARP requested) passed. Full upstream CI remains pending.
The test left the buffer's first GPU use (the clamp's SRV read) to an implicit promotion. An implicit promotion tracks the buffer with the reserved raytracing states as well - a shader-read buffer may hold acceleration structures - so the later explicit barrier to COPY_DEST named a state the buffer was not tracked in and the debug layer objected. An explicit barrier to the read state names exactly that state, so make it before the clamp reads.

(cherry picked from commit c83b96b2f5a99e878fe352f92eb771b87f41298f)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:19:47 +00:00
AI-assisted: keep original tested commit in history; local all-feature check, strict Clippy and focused tests passed. Upstream asset-policy baseline remains open (#1357).
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1282/head:github-bot/gh-1282'
git switch 'github-bot/gh-1282'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1282'
git switch 'github-bot/gh-1282'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1282'
git switch 'github-bot/gh-1282'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1282'
git switch 'main'
git merge --squash 'github-bot/gh-1282'
git switch 'main'
git merge --ff-only 'github-bot/gh-1282'
git switch 'main'
git merge 'github-bot/gh-1282'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.