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 <enga@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
8f3d7711d9
commit
72c042db41
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue