Repository navigation
Conversation
When HostHeap::dynamic ran out, State::tables skipped the fresh table and the stage's user data fell back to the title's table offset. Constant buffer tables are always made fresh and never mirrored, so the shader read whatever host descriptor sat at those slots as a constant buffer; on AMD a texture or null descriptor read as a buffer gives a wild base address and the device is removed (Marvisak#59: faults at 0x7000037xxxxx, 0x8000037xxxxx, 0x33c4000, a different pipeline every run, about 60 s in). bind now reports that a table could not be made, and the draw, mesh dispatch, dispatch or indirect execution is dropped. The dynamic range grows from 2^16 to 2^18 slots, which the world did not exhaust on an RX 9070 XT. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A host that refuses the title's slots plus 2^18 dynamic ones (NVIDIA's 1,000,000-view cap) now gets 2^16 dynamic slots, as before, instead of losing mirrored title slots to the larger range: at the cap, 2^18 left 737,856 title slots against 934,464, and titles were seen to index slots up to 917,140. The cap itself is unchanged. Hosts that take the larger heap (RX 9070 XT) keep 2^18.
Reserve the host heap's full dynamic range and request a fresh constant-buffer table. Verify that table preparation reports failure without returning a host offset, then verify that normal preparation resumes when the space is released. This exercises the failure without submitting commands with an unavailable table. Based-on: Marvisak#336 Tested-on: RX 6800, Fedora Linux 45, Linux native RADV and Lavapipe Assisted-by: gpt-6.2 sol xhigh
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.
Port the two commits from Marvisak Marvisak#336 to the Linux native runtime. Both recent RX 6800 runs reported dynamic descriptor exhaustion before the graphics queue reset. A failed fresh constant-buffer table previously fell back to the title table offset even though the host table had never been written.
The original fix suppresses commands whose required fresh table could not be prepared. Its follow-up keeps the original dynamic reserve on capped heaps and uses the larger reserve when all title slots fit alongside it. Both donor commits retain hophaver's authorship.
The RX 6800 fixture reserved all dynamic slots, verified a failed table returned no offset, then released the slots and verified the table prepared successfully. This test does not submit a GPU command with an unavailable table. All 44 regular Linux native GPU tests passed on Lavapipe. Its mutable descriptor validation warnings also occur in existing descriptor initialization tests.
The integrated RX 6800 title run reached heavy 3D work at about 199 seconds and continued until a guest invalid read at 259 seconds. The kernel recorded no GPU fault or reset, Vulkan validation emitted no VUIDs, and the dynamic reserve did not run out in this run. The exhaustion path was exercised by the isolated regression. The final capture still showed the loading screen.
A later integrated RX 6800 run filled the reserve about 160 seconds in and reported at least 4,096 skipped commands whose tables were unavailable. The run continued past this point. AMDGPU reported a graphics-ring timeout and successful reset about 311 seconds in. The benchmark notes include the timing and driver breadcrumbs.
Based-on: Marvisak#336
Tested-on: RX 6800, Fedora Linux 45, Linux native RADV and Lavapipe
Assisted-by: gpt-6.2 sol xhigh