Crash report names the indirect executions a list stopped at; constant buffer slots hold their scratch memory

Both device losses of 2026-11-25 (play-1125-0203, n02) stopped at the same
place, found by the run of three indirect executions between barriers in the
captures: compute 0452fc2d2e2fc4c3 (meshlet culling), behind fc5e66f8f873d3bb.

- With device-removed data on (DRED=light too) each list keeps, per indirect
  execution, the pipeline and the first 16 dwords of user data; the report
  says them for the stopped commands, and what the heap slots they name hold.
- A dynamic slot that shows a constant buffer in a list's scratch chunk holds
  that chunk (n02: the fault was in the memory of three freed chunks).
  VICTORY_SLOT_HOLDS=0: not held, as before.
- A slot's resource is let go after its descriptor is written over, not
  before; the same resource again is not retired.
- indirect::tests::raw_loads_past_views (ignored, a measurement): on the RX
  7900 XTX raw loads through typed, structured and constant buffer views have
  no end: they read whatever lies after the view.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 02:34:49 -06:00
1 parent 0abcb9fd89
commit c3830a5d36
7 files changed
+411 -15

No files matched your search

+13 -2
View File
@@ -283,6 +283,10 @@ pub(crate) struct State {
/// The records clamped in a batch, if later executions may still read
/// them ([`batches`]).
batch: Option<Batch>,
/// The user data bound last, of the last stage that has some (for the
/// report of a removed device, `crate::host::indirects`).
#[cfg(feature = "diagnostics")]
user: Vec<u32>,
/// What the host list has: pipeline, root signature, heaps.
host_pipeline: usize,
/// Graphics, compute.
@@ -1246,6 +1250,11 @@ impl State {
None => self.user_value(compute, u.slot, u.root, u.dword),
};
}
#[cfg(feature = "diagnostics")]
{
self.user.clear();
self.user.extend_from_slice(&values);
}
// SAFETY: an open list; `values` covers the parameter.
unsafe {
if compute {
@@ -2869,13 +2878,13 @@ impl State {
let used = entries.iter().find(|u| u.table_offset_dwords / 8 == k);
match crate::descriptor::view(table + u64::from(k) * 32) {
Some(View::Constant(address, size)) => {
let Some((gpu, to)) = list.scratch(u64::from(size)) else {
let Some((buffer, gpu, to)) = list.scratch_held(u64::from(size)) else {
host.make_null(index);
continue;
};
let slot = (std::ptr::from_ref(heap) as usize, index);
list.defer_constants(to, address as *const u8, size as usize, slot);
host.constant_at(index, gpu, size);
host.constant_at(index, &buffer, gpu, size);
}
Some(view) => {
host.make_at(index, &view);
@@ -3383,6 +3392,8 @@ impl State {
list.note_op(|| {
self.op_text(format!("indirect kind {kind} max {max} at {arguments:#x}"), kind == DISPATCH)
});
#[cfg(feature = "diagnostics")]
list.ran_indirect(p.pso.as_raw() as usize, &p.name, kind, max, &self.user);
if kind == MESH {
self.mesh_scissor(list, true);
}