From 661928894ec9d4d0024e5444bc3ab86575679400 Mon Sep 17 00:00:00 2001 From: Jiawei Shao Date: Thu, 3 Jun 2021 00:35:04 +0000 Subject: [PATCH] Re-enable the T2T copy workaround on Intel Gen9 and Gen9.5 GPUs This patch re-enables the T2T copy workaroudn on Intel Gen9 and Gen 9.5 GPUs because the latest released Intel D3D driver still cannot handle some copies correctly in some copy shapes. BUG=chromium:1161355 Change-Id: Ia96fe05c3e027f56a734331de03fe42745754cc3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/52960 Reviewed-by: Corentin Wallez Reviewed-by: Austin Eng Commit-Queue: Jiawei Shao --- src/dawn_native/d3d12/DeviceD3D12.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/dawn_native/d3d12/DeviceD3D12.cpp b/src/dawn_native/d3d12/DeviceD3D12.cpp index 3df852464d..abbc8fe84d 100644 --- a/src/dawn_native/d3d12/DeviceD3D12.cpp +++ b/src/dawn_native/d3d12/DeviceD3D12.cpp @@ -556,14 +556,9 @@ namespace dawn_native { namespace d3d12 { if (gpu_info::IsIntel(pciInfo.vendorId) && (gpu_info::IsSkylake(pciInfo.deviceId) || gpu_info::IsKabylake(pciInfo.deviceId) || gpu_info::IsCoffeelake(pciInfo.deviceId))) { - constexpr gpu_info::D3DDriverVersion kFirstDriverVersionWithFix = {27, 20, 100, 9466}; - if (gpu_info::CompareD3DDriverVersion(pciInfo.vendorId, - ToBackend(GetAdapter())->GetDriverVersion(), - kFirstDriverVersionWithFix) < 0) { SetToggle( Toggle::UseTempBufferInSmallFormatTextureToTextureCopyFromGreaterToLessMipLevel, true); - } } }