Every buffer read as raw bytes through the heap is read at its raw twin

Runs n03 and n04 lost the device in the main pass. The pixel program
3711fdad456538a1, bound in both stopped lists, reads entry 35 of its big table
as raw bytes per lane, and that slot is a structured view of 8 byte elements
that begins at 8 mod 16 (capture play-1125-0127, all 766 draws): no raw view
begins there, so it stayed structured, and a raw load through it has no end on
AMD. So not only picked buffers: tables' buffers too, in title slots and in
the dynamic slots, which have twins now as well (a constant buffer of a fresh
table has a raw one of its bytes).

Measured with it: constant buffer loads, uniform and per lane, end with a
constant buffer's view. Loads by title address end with the raw view of the
copy, or read the null view for a page without one. VICTORY_RAW_VIEWS=0: as
before. Every shader is translated again (5 min).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 05:00:17 -06:00
1 parent 3d6cbbd527
commit 6ee5b724e5
5 files changed
+97 -27

No files matched your search

+4 -3
View File
@@ -138,9 +138,10 @@ pub fn view_heap_limit() -> u32 {
/// entry nothing wrote. On AMD a raw load through a view that is not raw (typed, structured, a
/// constant buffer's) has no end: it reads whatever lies there, up to 4 GiB on, and loses the
/// device where nothing does; and a texture's descriptor read as a buffer's is a wild address.
/// So the host keeps, for title slot `i`, a raw view of the same bytes at this place + `i`
/// (a constant buffer view of a constant buffer, a null raw view of everything else and of every
/// slot past the title's), and shaders translated while this is set read picked buffers there.
/// So the host keeps, for slot `i`, a raw view of the same bytes at this place + `i` (a constant
/// buffer view of a constant buffer in a title slot, a null raw view of everything else), and
/// shaders translated while this is set read picked buffers there, and tables' buffers that they
/// read as raw bytes.
/// A power of two above every slot index.
static RAW_VIEWS: std::sync::atomic::AtomicU32 = std::sync::atomic::AtomicU32::new(0);