Repository navigation
Conversation
…-oom dxil: eliminate giant-shader IR and CFG blowup in FormatLoad and multi-window memory
…sses A root signature with CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED or SAMPLER_HEAP_DIRECTLY_INDEXED has the console put the 32-bit address of the bound view heap / sampler heap into user SGPRs after the root arguments, the view heap's first. XCL left these registers 0, so the shaders read their descriptors from address 0 on. Measured on a retail title: 110 of 153 root signatures at its first screen have one of the flags. All 540 of its compute shaders with such a root signature that were built (218 with the view heap flag, 3 with the sampler heap flag, 319 with both) have exactly one user SGPR more per flag than their arguments take; those with both load T# from the first. The pixel shaders of 49 572 pipelines with the sampler flag have one more as well (by where their m0 comes from). The pictures of its loading screen took a wrapping sampler instead of the clamping one they ask for: a flickering line at their top edge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
A root signature with
CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED(0x400) orSAMPLER_HEAP_DIRECTLY_INDEXED(0x800) has the console pass the 32-bit address of the bound view heap / sampler heap in user SGPRs after the root arguments, the view heap's first. XCL left these registers 0, so shaders that index the heaps themselves read their descriptors from address 0 on. On a retail title this showed as a flickering line at the top of the loading pictures: they ask for a clamping sampler and got a wrapping one.What is in it
console_list.rs: the root signature's two flags inLayout::heaps;with_heapsappends the addresses after the arguments; unit testconsole_heap.rs:base, the 32-bit address of a heap's slotsbind.rs,list_x.rs:SetDescriptorHeapsremembers the heaps' addresses per list (reset by Reset / ClearState), and draws and dispatches pass themTested
cargo test --workspace -- --test-threads=4: 892 passed, 0 failed, 42 ignored (run on the same tree; only the commit message was reworded after it). SKIPPED:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows)heap_addresses_follow_the_argumentsRegression run
main:
PR:
Not tested
console_list.rs) are unchanged: they still get no heap addressesAI use
🤖 Generated with Claude Code
Mirror of xcl-dev#1803 (auto-synced, do not edit).