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:
1 parent
0abcb9fd89
commit
c3830a5d36
7 files changed
+411
-15
No files matched your search
@@ -333,17 +333,38 @@ pub(crate) fn release_dynamic(heap: usize, first: u32, n: u32) {
|
||||
}
|
||||
}
|
||||
|
||||
/// Runs `f` with the host heap of the title's largest view heap, if there is
|
||||
/// one (reports: nothing is waited for).
|
||||
#[cfg(all(windows, feature = "diagnostics"))]
|
||||
pub(crate) fn with_view_heap<T>(f: impl FnOnce(&host::HostHeap) -> T) -> Option<T> {
|
||||
let heaps = SHADER_HEAPS.try_read().ok()?;
|
||||
let host = heaps
|
||||
.iter()
|
||||
// SAFETY: registered heaps are live (removed when dropped).
|
||||
.map(|&(_, _, at)| unsafe { &*(at as *const Heap) })
|
||||
.filter(|heap| !heap.samplers())
|
||||
.filter_map(|heap| heap.host.get()?.as_ref())
|
||||
.max_by_key(|host| host.count())?;
|
||||
Some(f(host))
|
||||
}
|
||||
|
||||
/// Makes dynamic slot `index` of the host heap behind the title heap at
|
||||
/// `heap`, if that heap still exists, the constant buffer view of `size`
|
||||
/// bytes at `gpu`.
|
||||
/// bytes of `buffer` at `gpu`.
|
||||
#[cfg(windows)]
|
||||
pub(crate) fn constant_slot(heap: usize, index: u32, gpu: u64, size: u32) {
|
||||
pub(crate) fn constant_slot(
|
||||
heap: usize,
|
||||
index: u32,
|
||||
buffer: &windows::Win32::Graphics::Direct3D12::ID3D12Resource,
|
||||
gpu: u64,
|
||||
size: u32,
|
||||
) {
|
||||
let heaps = SHADER_HEAPS.read().unwrap_or_else(|e| e.into_inner());
|
||||
if heaps.iter().any(|&(_, _, h)| h == heap)
|
||||
// SAFETY: registered heaps are live (removed when dropped).
|
||||
&& let Some(Some(host)) = unsafe { &*(heap as *const Heap) }.host.get()
|
||||
{
|
||||
host.constant_at(index, gpu, size);
|
||||
host.constant_at(index, buffer, gpu, size);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user