aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLCaps.cpp
diff options
context:
space:
mode:
authorGravatar Adrienne Walker <enne@chromium.org>2018-05-15 11:47:07 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-16 18:31:22 +0000
commit94f585ed091e252cd3cc741b19c8a226fe4a5eec (patch)
tree0dd0e0aa45ccb91f82dc9a4fe3949020ad417319 /src/gpu/gl/GrGLCaps.cpp
parent3c6087ccf450e947309fcecb08744a7e8dbbd300 (diff)
Driver bug workaround: gl_clear_broken
Skia does not appear to use depth buffers and this appears to be identical to ClearFramebufferResourceManager::ClearFramebuffer in Chromium code. Therefore, just hook up this workaround to turn on these internal Skia workarounds. Bug: chromium: 829614 Change-Id: Icc5f2eb981e39ffef487efa16940d2e50cdbc399 Reviewed-on: https://skia-review.googlesource.com/127220 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Adrienne Walker <enne@chromium.org>
Diffstat (limited to 'src/gpu/gl/GrGLCaps.cpp')
-rw-r--r--src/gpu/gl/GrGLCaps.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index dc4fc3130c..61f4aa0009 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -2450,6 +2450,11 @@ void GrGLCaps::applyDriverCorrectnessWorkarounds(const GrGLContextInfo& ctxInfo,
fDisallowTexSubImageForUnormConfigTexturesEverBoundToFBO = true;
}
+ if (fDriverBugWorkarounds.gl_clear_broken) {
+ fUseDrawToClearColor = true;
+ fUseDrawToClearStencilClip = true;
+ }
+
// This was reproduced on the following configurations:
// - A Galaxy J5 (Adreno 306) running Android 6 with driver 140.0
// - A Nexus 7 2013 (Adreno 320) running Android 5 with driver 104.0