Repository navigation
Conversation
|
Ran on Windows 11 with an RTX 3070 (Ampere, driver 616.56), debug build, at AI-assisted (Claude Code). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Explicitly initialize
Root::Uavbuffers in the shader test host before dispatch, ensuring deterministic contents for shaders that update page bitmaps using atomic OR.The change is limited to the shader test host and a synthetic regression test. Production shader lowering and GPU runtime behavior are unchanged.
Changes
CopyBufferRegion.COPY_DESTtoUNORDERED_ACCESSbefore dispatch.Regression evidence
The seeded regression was tested with initialization deliberately disabled as a negative control:
This confirms that the test host clears pre-existing bitmap contents before shader execution.
Verification
VICTORY_WARP=1: 3 passed.VICTORY_WARP=1: 14 passed.git diff --check: passed.cargo fmt -p victory-shader -- --check: reports pre-existing formatting differences; no new formatter differences were introduced in the modified files.The default D3D12 adapter model was not independently verified. An initial build attempt was blocked by Windows Application Control (OS error 4551), but the subsequent regular build and test runs succeeded without security-policy changes.
Related issue
Related to #1882.
This patch establishes deterministic UAV initialization and prevents stale bitmap bits from surviving into shader execution. Whether uninitialized contents caused the original intermittent failure reported in #1882 remains unconfirmed.
AI-assisted using OpenAI Codex.