Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit d45b30b

Browse files
RafaelCintronCommit Bot
authored andcommitted
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/+/2204698 Reviewed-by: Jamie Madill <[email protected]> Reviewed-by: Geoff Lang <[email protected]> Commit-Queue: Rafael Cintron <[email protected]>
1 parent cf8422c commit d45b30b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libANGLE/renderer/d3d/d3d11/renderer11_utils.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2466,9 +2466,10 @@ void InitializeFeatures(const Renderer11DeviceCaps &deviceCaps,
24662466
ANGLE_FEATURE_CONDITION(features, selectViewInGeometryShader,
24672467
!deviceCaps.supportsVpRtIndexWriteFromVertexShader);
24682468

2469-
// NVidia drivers have no trouble clearing textures without showing corruption. AMD ones do.
2470-
// Intel drivers that have trouble have been blocklisted to the DX9 runtime by Chromium.
2471-
ANGLE_FEATURE_CONDITION(features, allowClearForRobustResourceInit, isNvidia || isIntel);
2469+
// NVidia drivers have no trouble clearing textures without showing corruption.
2470+
// Intel and AMD drivers that have trouble have been blocklisted by Chromium. In the case of
2471+
// Intel, they've been blocklisted to the DX9 runtime.
2472+
ANGLE_FEATURE_CONDITION(features, allowClearForRobustResourceInit, true);
24722473

24732474
// Don't translate uniform block to StructuredBuffer on Windows 7 and earlier. This is targeted
24742475
// to work around a bug that fails to allocate ShaderResourceView for StructuredBuffer.

0 commit comments

Comments
 (0)