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 02f36e4440
commit 1420b07a64
5 files changed
+97 -27

No files matched your search

+3 -1
View File
@@ -1006,6 +1006,7 @@ RWByteAddressBuffer o : register(u0);
void main(uint3 id : SV_DispatchThreadID, uint g : SV_GroupIndex) {
if (step == 0) { if (id.x == 0) o.Store(at, v[which].Load(first)); }
else if (step == 1) { if (id.x == 0) o.Store(at, c[which].d[first / 16][(first / 4) & 3]); }
else if (step == 16) { o.Store(at + id.x * 4, c[which].d[first / 16 + id.x][(first / 4) & 3]); }
else { o.Store(at + id.x * 4, v[which].Load(first + id.x * step)); }
}
"#;
@@ -1071,7 +1072,7 @@ void main(uint3 id : SV_DispatchThreadID, uint g : SV_GroupIndex) {
}
let table2 = D3D12_GPU_DESCRIPTOR_HANDLE { ptr: table.ptr + 8 * step as u64 };
let offsets = [0u32, 4092, 4096, 4104, 8192, 65536, 524_288, (1 << 20) - 4];
for mode in ["one load (uniform)", "a load a thread", "constant buffer load"] {
for mode in ["one load (uniform)", "a load a thread", "constant buffer load", "Constant buffer load a thread"] {
println!("{mode}:");
for (which, name) in names.iter().enumerate() {
// SAFETY: our open list, live buffers.
@@ -1087,6 +1088,7 @@ void main(uint3 id : SV_DispatchThreadID, uint g : SV_GroupIndex) {
let step = match mode.as_bytes()[0] {
b'o' => 0u32,
b'c' => 1,
b'C' => 16,
_ => 4,
};
// (A thread's loads end at the offset.)