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:
1 parent
02f36e4440
commit
1420b07a64
5 files changed
+97
-27
No files matched your search
@@ -6810,11 +6810,17 @@ impl<'a> Lower<'a> {
|
||||
}
|
||||
|
||||
/// The heap index to read descriptor `src` at, `index` being the title's:
|
||||
/// for a buffer picked from the heap itself and read as raw bytes (or as
|
||||
/// a constant buffer), the host's raw twin of that slot
|
||||
/// ([`super::shader::raw_views`]), whose reads end where the view does.
|
||||
/// Everything else (tables, textures, typed buffers) stays in place.
|
||||
/// And whether it is a twin's (inside the host's heap).
|
||||
/// for a buffer read as raw bytes, through a table or picked from the
|
||||
/// heap itself (or picked and read as a constant buffer), the host's raw
|
||||
/// twin of that slot ([`super::shader::raw_views`]), whose reads end where
|
||||
/// the view does. Everything else (textures, typed buffers, tables'
|
||||
/// constant buffers) stays in place. And whether it is a twin's (inside
|
||||
/// the host's heap).
|
||||
///
|
||||
/// Tables too: a view that does not begin on 16 bytes cannot be raw, and
|
||||
/// a pixel program of the main pass (3711fdad456538a1, stopped at in the
|
||||
/// device losses of runs n03 and n04) reads a structured one of 8 byte
|
||||
/// elements at 8 as raw bytes per lane.
|
||||
fn raw_twin(&mut self, src: &Source, index: V, sampler: bool, props: (u32, u32)) -> (V, bool) {
|
||||
// Raw and constant buffers (DXIL resource kinds 11 and 13).
|
||||
const RAW: u32 = 11;
|
||||
@@ -6827,7 +6833,9 @@ impl<'a> Lower<'a> {
|
||||
self.scalar
|
||||
.get(load)
|
||||
.and_then(|a| self.x.native.layout.get(a.param))
|
||||
.is_some_and(|p| p.root == RootType::ResourceHeap)
|
||||
.is_some_and(|p| {
|
||||
p.root == RootType::ResourceHeap || (p.root == RootType::Table && props.0 & 0xFF == RAW)
|
||||
})
|
||||
};
|
||||
if first == 0 || sampler || !matches!(props.0 & 0xFF, RAW | CONSTANT) || !src.leaves().iter().all(picked) {
|
||||
return (index, false);
|
||||
|
||||
Reference in new issue
Block a user