diff --git a/src/dawn/native/d3d12/DeviceD3D12.cpp b/src/dawn/native/d3d12/DeviceD3D12.cpp index 0be01d0ec4..8ee99cfab2 100644 --- a/src/dawn/native/d3d12/DeviceD3D12.cpp +++ b/src/dawn/native/d3d12/DeviceD3D12.cpp @@ -733,6 +733,10 @@ void Device::InitTogglesFromDriver() { if ((gpu_info::IsIntelGen9(vendorId, deviceId) && !gpu_info::IsSkylake(deviceId)) || gpu_info::IsIntelGen11(vendorId, deviceId)) { SetToggle(Toggle::D3D12Allocate2DTexturewithCopyDstAsCommittedResource, true); + // Now we don't need to force clearing depth stencil textures with CopyDst as all the depth + // stencil textures (can only be 2D textures) will be created with CreateCommittedResource() + // instead of CreatePlacedResource(). + SetToggle(Toggle::D3D12ForceClearCopyableDepthStencilTextureOnCreation, false); } // Currently this toggle is only needed on Intel Gen9 and Gen9.5 GPUs.