From f1c496523ff0aa10c162fd01ad606960e925a5a4 Mon Sep 17 00:00:00 2001 From: Connor Fitzgerald Date: Fri, 11 Apr 2025 14:18:43 -0400 Subject: [PATCH] [d3d12] Fix bug with committed resource allocation (#7519) --- wgpu-hal/src/dx12/suballocation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-hal/src/dx12/suballocation.rs b/wgpu-hal/src/dx12/suballocation.rs index fcb1e93b0..2c25597b9 100644 --- a/wgpu-hal/src/dx12/suballocation.rs +++ b/wgpu-hal/src/dx12/suballocation.rs @@ -369,7 +369,7 @@ impl<'a> DeviceAllocationContext<'a> { let heap_properties = Direct3D12::D3D12_HEAP_PROPERTIES { Type: Direct3D12::D3D12_HEAP_TYPE_CUSTOM, CPUPageProperty: match location { - MemoryLocation::GpuOnly => Direct3D12::D3D12_CPU_PAGE_PROPERTY_UNKNOWN, + MemoryLocation::GpuOnly => Direct3D12::D3D12_CPU_PAGE_PROPERTY_NOT_AVAILABLE, MemoryLocation::CpuToGpu => Direct3D12::D3D12_CPU_PAGE_PROPERTY_WRITE_COMBINE, MemoryLocation::GpuToCpu => Direct3D12::D3D12_CPU_PAGE_PROPERTY_WRITE_BACK, _ => unreachable!(),