Repository navigation
Shaders: track scalar-selected root SRV addresses - #3
Open
mohammadallami75-ops wants to merge 1 commit into
Open
mohammadallami75-ops wants to merge 1 commit into
mohammadallami75-ops wants to merge 1 commit into
Conversation
Keep the common root descriptor and lower SCC selection over byte offsets. Validate each scalar carry against its matching low add. AI-assisted implementation and testing.
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.
Change
A global load can take the result of an SCC-controlled scalar select of two GPU addresses. Resource tracking now traces both address halves through the same SCC, proves that both outcomes use the same root descriptor, and lowers the selection over root-relative byte offsets. Each unsigned low add must feed the carry consumed by its corresponding high add. The existing root SRV binding serves both outcomes.
Related to Marvisak#614 and Marvisak#293. Marvisak#255 reports the wider black-world symptom. The spill-table, root UAV, root-constant address, and general arithmetic/phi cases have separate work in Marvisak#302, Marvisak#489, Marvisak#294, Marvisak#709, Marvisak#710, and Marvisak#645.
Verification
ffe310ewithan address with two computed terms. The patched shader passes DXIL validation withdxil.dll1.9.2609.5 and both SCC outcomes execute correctly.0x91020202,0x91070707,0x910a0a0a, and0x91040404. The test exercises a common immediate and a VGPR offset, and overwrites SCC after the pointer select.cargo test --workspace --locked -- --test-threads=1passed (344 passed, 6 ignored). Strict workspace Clippy passed with default and all features.cargo xtask policypassed (154 files).Could someone with the title independently compare the opening cutscene on this patch and its base, with warm caches and the same dependency stack? Please report whether any compute pipeline refusals or dropped dispatch counts change, especially in the ray-tracing builder, and whether any HDR targets gain content. The reproduction uses only synthetic inputs. The retail shader match and visual impact remain unverified.
AI-assisted implementation and testing.