GPU: drop draws whose fresh tables cannot be made; 2^18 dynamic slots

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 (#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 <[email protected]>
This commit is contained in:
hophaverandClaude Opus 5.5 committed 2026-11-24 04:22:41 +02:00
1 parent 35e8407c9c
commit 02348ffe70
2 files changed
+35 -8

No files matched your search

+3 -1
View File
@@ -62,7 +62,9 @@ const PORTABLE_VIEWS: u32 = 1_000_000;
/// Slots past the title's in a view heap, for tables a draw needs made
/// afresh (constant buffers copied per draw). A list holds the slots it
/// took until it is reset (its submissions have run) or released.
const DYNAMIC: u32 = 1 << 16;
/// 2^16 ran out seconds into the world (every world run on an RX 9070 XT,
/// each a device removal shortly after; #59).
const DYNAMIC: u32 = 1 << 18;
impl HostHeap {
pub(crate) fn new(sampler: bool, count: u32) -> Option<Self> {