Commit 9e263aa8 by Rafael Cintron Committed by Commit Bot

Enable allowClearForRobustResourceInit for NVidia hardware

Intel and AMD drivers have trouble clearing textures without causing corruption. NVidia, on the other hand, can handle. Bug: angleproject:1074 Change-Id: Id9d293eba92f80e2af3a0d2e40cbeccb127763b9 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2092838Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Rafael Cintron <rafael.cintron@microsoft.com>
parent 4f10b113
...@@ -2456,8 +2456,9 @@ void InitializeFeatures(const Renderer11DeviceCaps &deviceCaps, ...@@ -2456,8 +2456,9 @@ void InitializeFeatures(const Renderer11DeviceCaps &deviceCaps,
ANGLE_FEATURE_CONDITION(features, selectViewInGeometryShader, ANGLE_FEATURE_CONDITION(features, selectViewInGeometryShader,
!deviceCaps.supportsVpRtIndexWriteFromVertexShader); !deviceCaps.supportsVpRtIndexWriteFromVertexShader);
// Never clear for robust resource init. This matches Chrome's texture clearning behaviour. // Intel and AMD drivers have trouble clearing textures without causing corruption. NVidia,
ANGLE_FEATURE_CONDITION(features, allowClearForRobustResourceInit, false); // on the other hand, can handle.
ANGLE_FEATURE_CONDITION(features, allowClearForRobustResourceInit, isNvidia);
// 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