Skip to content

Shaders: track scalar-selected root SRV addresses - #3

Open
mohammadallami75-ops wants to merge 1 commit into
mainfrom
fix/scalar-selected-root-srv
Open

mohammadallami75-ops wants to merge 1 commit into
mainfrom
fix/scalar-selected-root-srv

Conversation

@mohammadallami75-ops

Copy link
Copy Markdown
Owner

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

  • The new synthetic compute shader fails during resource tracking on ffe310e with an address with two computed terms. The patched shader passes DXIL validation with dxil.dll 1.9.2609.5 and both SCC outcomes execute correctly.
  • RTX 2080 SUPER (driver 621.01) and WARP returned the same four exact dwords: 0x91020202, 0x91070707, 0x910a0a0a, and 0x91040404. The test exercises a common immediate and a VGPR offset, and overwrites SCC after the pointer select.
  • Negative tracker cases cover different root descriptors and an unrelated scalar carry. cargo test --workspace --locked -- --test-threads=1 passed (344 passed, 6 ignored). Strict workspace Clippy passed with default and all features. cargo xtask policy passed (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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant