Repository navigation
Shader tests: read back computed texture-table colors and marks - #7
Open
passerbyyhx wants to merge 1 commit into
Open
passerbyyhx wants to merge 1 commit into
passerbyyhx wants to merge 1 commit into
Conversation
Owner
|
Thanks for this. I replied on Marvisak#2724: I'm keeping that PR small for review, and your readback is linked there as the hardware evidence. I'm leaving this open, and I'll merge it, with your authorship kept, if the maintainer wants the end-to-end test in the PR. |
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.
This runs the shader that reads a computed texture-table entry and checks its texel and the read-mark bitmap from the same dispatch. The existing test checks whether lowering requests marks for this path, then dispatches a heap-direct shader. This fixture uses 1×1 textures and a nonzero table base so the table-relative and absolute slot indices differ.
On a GeForce RTX 4090 Laptop GPU (driver 621.14) and Microsoft WARP, one computed pipeline per device gave these results. Only the table base and entry root constants changed between the three nonempty dispatches.
VIEW_READS + 2VIEW_READS + 3VIEW_READS + 2A fixed-entry shader targeting base 2 read red for either entry and emitted no read mark. The zero-group control left both the output and bitmap clear. Restoring only
lower.rsfrom13f91capreserved all colors on both adapters and removed the computed-entry marks. The assertion failed on the first missing bit. This isolates the change in marking independently of descriptor selection.cargo test --locked -p victory-shader --lib emit::memory_tests::computed_table::computed_texture_table_entries_report_the_sampled_slots -- --exact --test-threads=1 --nocaptureThe untouched test fixture was built in separate Cargo target directories for the PR and the rollback. The WARP memory test module passed 5/5. Strict package Clippy passed with all targets and features. The test measures shader output and the read bitmap. Runtime materialization and in-game use are outside its scope.
Related: Marvisak#2724
Code and hardware testing assisted by Codex.