Skip to content

Commit

Permalink
Enable allowClearForRobustResourceInit for Intel drivers
Browse files Browse the repository at this point in the history
NVidia drivers have no trouble clearing textures without showing
corruption. AMD ones do.

Intel drivers that have trouble have been relegated to the DX9 runtime
by Chromium.

Bug: angleproject:4460
Change-Id: I9ffbfa041e0f7ef8e05edcc14274bf9530eafae3
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2147821
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Rafael Cintron <rafael.cintron@microsoft.com>
  • Loading branch information
RafaelCintron authored and Commit Bot committed Apr 15, 2020
1 parent 1478ec3 commit 49ad8ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libANGLE/renderer/d3d/d3d11/renderer11_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2465,9 +2465,9 @@ void InitializeFeatures(const Renderer11DeviceCaps &deviceCaps,
ANGLE_FEATURE_CONDITION(features, selectViewInGeometryShader,
!deviceCaps.supportsVpRtIndexWriteFromVertexShader);

// Intel and AMD drivers have trouble clearing textures without causing corruption. NVidia,
// on the other hand, can handle.
ANGLE_FEATURE_CONDITION(features, allowClearForRobustResourceInit, isNvidia);
// NVidia drivers have no trouble clearing textures without showing corruption. AMD ones do.
// Intel drivers that have trouble have been blocklisted to the DX9 runtime by Chromium.
ANGLE_FEATURE_CONDITION(features, allowClearForRobustResourceInit, isNvidia || isIntel);

// 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.
Expand Down

0 comments on commit 49ad8ea

Please sign in to comment.