diff options
author | Adrienne Walker <enne@chromium.org> | 2018-05-15 11:47:07 -0700 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-16 18:31:22 +0000 |
commit | 94f585ed091e252cd3cc741b19c8a226fe4a5eec (patch) | |
tree | 0dd0e0aa45ccb91f82dc9a4fe3949020ad417319 /src | |
parent | 3c6087ccf450e947309fcecb08744a7e8dbbd300 (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')
-rw-r--r-- | src/gpu/gl/GrGLCaps.cpp | 5 | ||||
-rw-r--r-- | src/gpu/gpu_workaround_list.txt | 1 |
2 files changed, 6 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 diff --git a/src/gpu/gpu_workaround_list.txt b/src/gpu/gpu_workaround_list.txt index 8425ca3d85..fb79bfc570 100644 --- a/src/gpu/gpu_workaround_list.txt +++ b/src/gpu/gpu_workaround_list.txt @@ -1,6 +1,7 @@ disable_blend_equation_advanced disable_discard_framebuffer disallow_large_instanced_draw +gl_clear_broken max_msaa_sample_count_4 max_texture_size_limit_4096 restore_scissor_on_fbo_change |