mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 06:03:34 +00:00
Disable the workaround about the T2T copy issue on newer Intel drivers
This patch disables the workaround about the T2T copy issue (the Toggle UseTempBufferInSmallFormatTextureToTextureCopyFromGreaterToLessMipLevel) on the latest Intel Gen9 and Gen9.5 D3D driver (30.0.100.9864) which contains the fix for this issue. BUG=chromium:1161355 TEST=dawn_end2end_tests Change-Id: I6e62b95d1cb92358482356901c541df02998a764 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/64280 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
This commit is contained in:
parent
b2223e7ff6
commit
8626b2142d
@ -528,9 +528,14 @@ namespace dawn_native { namespace d3d12 {
|
|||||||
if (gpu_info::IsIntel(pciInfo.vendorId) &&
|
if (gpu_info::IsIntel(pciInfo.vendorId) &&
|
||||||
(gpu_info::IsSkylake(pciInfo.deviceId) || gpu_info::IsKabylake(pciInfo.deviceId) ||
|
(gpu_info::IsSkylake(pciInfo.deviceId) || gpu_info::IsKabylake(pciInfo.deviceId) ||
|
||||||
gpu_info::IsCoffeelake(pciInfo.deviceId))) {
|
gpu_info::IsCoffeelake(pciInfo.deviceId))) {
|
||||||
SetToggle(
|
constexpr gpu_info::D3DDriverVersion kFirstDriverVersionWithFix = {30, 0, 100, 9864};
|
||||||
Toggle::UseTempBufferInSmallFormatTextureToTextureCopyFromGreaterToLessMipLevel,
|
if (gpu_info::CompareD3DDriverVersion(pciInfo.vendorId,
|
||||||
true);
|
ToBackend(GetAdapter())->GetDriverVersion(),
|
||||||
|
kFirstDriverVersionWithFix) < 0) {
|
||||||
|
SetToggle(
|
||||||
|
Toggle::UseTempBufferInSmallFormatTextureToTextureCopyFromGreaterToLessMipLevel,
|
||||||
|
true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user