Commit d45b30b5 by Rafael Cintron Committed by Commit Bot

Enable allowClearForRobustResourceInit for AMD drivers

AMD drivers that have trouble clearing textures have been blocklisted by Chromium. Since Intel and NVidia drivers were already been allowed to clear for robust resource init, we're good to enable it for all IHVs. Bug: angleproject:4460 Change-Id: If71d01a91806ffc0a78c30f0cc393e105a6c9c74 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2204698Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Rafael Cintron <rafael.cintron@microsoft.com>
parent cf8422c2
...@@ -2466,9 +2466,10 @@ void InitializeFeatures(const Renderer11DeviceCaps &deviceCaps, ...@@ -2466,9 +2466,10 @@ void InitializeFeatures(const Renderer11DeviceCaps &deviceCaps,
ANGLE_FEATURE_CONDITION(features, selectViewInGeometryShader, ANGLE_FEATURE_CONDITION(features, selectViewInGeometryShader,
!deviceCaps.supportsVpRtIndexWriteFromVertexShader); !deviceCaps.supportsVpRtIndexWriteFromVertexShader);
// NVidia drivers have no trouble clearing textures without showing corruption. AMD ones do. // NVidia drivers have no trouble clearing textures without showing corruption.
// Intel drivers that have trouble have been blocklisted to the DX9 runtime by Chromium. // Intel and AMD drivers that have trouble have been blocklisted by Chromium. In the case of
ANGLE_FEATURE_CONDITION(features, allowClearForRobustResourceInit, isNvidia || isIntel); // Intel, they've been blocklisted to the DX9 runtime.
ANGLE_FEATURE_CONDITION(features, allowClearForRobustResourceInit, true);
// Don't translate uniform block to StructuredBuffer on Windows 7 and earlier. This is targeted // Don't translate uniform block to StructuredBuffer on Windows 7 and earlier. This is targeted
// to work around a bug that fails to allocate ShaderResourceView for StructuredBuffer. // to work around a bug that fails to allocate ShaderResourceView for StructuredBuffer.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment