New memory is resident before anything names it (VICTORY_WAIT_RESIDENT=0: as before)

Lists already on the card read our descriptor heaps as they are; only lists sent later wait for a new
heap's mapping. Run n08's loss: a page fault in a texture made that instant, in a new block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 07:40:47 -06:00
1 parent faf5687af9
commit fdbae8592e
3 files changed
+77 -9

No files matched your search

+7 -1
View File
@@ -374,13 +374,19 @@ pub(crate) unsafe fn texture(
SizeInBytes: BLOCK,
Properties: D3D12_HEAP_PROPERTIES { Type: D3D12_HEAP_TYPE_DEFAULT, ..Default::default() },
Alignment: 0,
Flags: D3D12_HEAP_FLAG_ALLOW_ONLY_NON_RT_DS_TEXTURES,
Flags: D3D12_HEAP_FLAG_ALLOW_ONLY_NON_RT_DS_TEXTURES | crate::host::not_resident(),
};
let mut heap: Option<ID3D12Heap> = None;
// SAFETY: plain creation.
if let Err(e) = unsafe { device.CreateHeap(&desc, &mut heap) } {
tracing::warn!(error = %e, "no block of texture memory");
}
if let Some(h) = &heap
&& let Err(e) = crate::host::resident(device, h)
{
tracing::warn!(error = %e, "a block of texture memory is not resident");
return None;
}
heap
})?;
let mut made: Option<ID3D12Resource> = None;