Commit f7b3a2ac by shrekshao Committed by Commit Bot

Fix d3d9 intel gpu fail to create image surface issue

Set allowClearForRobustResourceInit to true on D3D9 backend, which fixes clients report issues where unity web app throws `Fail to create image surface` error on integrated-intel gpu Bug: chromium:1011627, chromium:1017076 Change-Id: I733434123a8c34671b1a33b87017367baec5623c TBR=geofflang@chromium.org Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1898701Reviewed-by: 's avatarShrek Shao <shrekshao@google.com> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 19dd51b0
......@@ -812,8 +812,8 @@ void InitializeFeatures(angle::FeaturesD3D *features)
// TODO(jmadill): Disable workaround when we have a fixed compiler DLL.
ANGLE_FEATURE_CONDITION(features, expandIntegerPowExpressions, true);
// Never clear for robust resource init. This matches Chrome's texture clearning behaviour.
ANGLE_FEATURE_CONDITION(features, allowClearForRobustResourceInit, false);
// crbug.com/1011627 Turn this on for D3D9.
ANGLE_FEATURE_CONDITION(features, allowClearForRobustResourceInit, true);
// Call platform hooks for testing overrides.
auto *platform = ANGLEPlatformCurrent();
......
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