From 72c042db413c34b873125acb614399bc12f54f26 Mon Sep 17 00:00:00 2001 From: Jiawei Shao Date: Wed, 7 Sep 2022 00:57:23 +0000 Subject: [PATCH] Disable toggle D3D12DontSetClearValueOnDepthTextureCreation on Intel Gen11 This patch disables Toggle::D3D12DontSetClearValueOnDepthTextureCreation on Intel Gen11 GPUs as we find it not needed after further tests. Bug: dawn:1487 Test: dawn_end2end_tests Change-Id: I2c378568328b758e83484cff514073b052cf5004 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/101300 Reviewed-by: Austin Eng Commit-Queue: Jiawei Shao Kokoro: Kokoro Reviewed-by: Corentin Wallez --- src/dawn/native/d3d12/DeviceD3D12.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dawn/native/d3d12/DeviceD3D12.cpp b/src/dawn/native/d3d12/DeviceD3D12.cpp index 214fa67f84..7e67cecd6c 100644 --- a/src/dawn/native/d3d12/DeviceD3D12.cpp +++ b/src/dawn/native/d3d12/DeviceD3D12.cpp @@ -671,9 +671,10 @@ void Device::InitTogglesFromDriver() { true); } - // Currently this workaround is only needed on Intel GPUs. + // Currently this workaround is only needed on Intel Gen9, Gen9.5 and Gen12 GPUs. // See http://crbug.com/dawn/1487 for more information. - if (gpu_info::IsIntel(vendorId)) { + if (gpu_info::IsIntelGen9(vendorId, deviceId) || gpu_info::IsIntelGen12LP(vendorId, deviceId) || + gpu_info::IsIntelGen12HP(vendorId, deviceId)) { SetToggle(Toggle::D3D12ForceClearCopyableDepthStencilTextureOnCreation, true); }