Repository navigation
Check formatted root reads against their actual load width - #3
Open
MichaelSmithAI wants to merge 1 commit into
Open
MichaelSmithAI wants to merge 1 commit into
MichaelSmithAI wants to merge 1 commit into
Conversation
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.
On the branch for VIctory #650, a formatted root-buffer load checks whether 16 bytes remain. A one-channel R32_UINT fetch at offset 60 of a 64-byte view only loads four bytes. On 06657a8 the GPU returned zero for that valid final field.
The change checks the byte width of the emitted raw load. For a sub-dword field it checks the aligned dword that contains the requested byte. The regression uses a 256-byte backing allocation and varies the logical view size independently.
The second row checks the complete four-byte load starting at byte 60. An RTX 4090 running D3D12 through Wine 11.22 and vkd3d-proton 3.1 produced all four expected results. The existing raw root-read test passed alongside the new formatted test. A second build from a clean checkout confirmed both GPU tests. The Linux shader suite passed 56 tests.
In a separate local integration on the bounded structured-root tester branch at
66ac451, the equivalent width correction preserves the branch around the memory instruction. All three GPU tests passed on the same adapter: the formatted SRV read, the raw SRV read, and the structured UAV load/store/atomic readback.Run both GPU controls with
cargo test --locked -p victory-shader --lib root_view_reads -- --nocapture --test-threads=1. Retail rendering impact remains unmeasured. AI-assisted implementation and review.