From 4e8c581f2aa911bf49f97a246cc26134da292a8c Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Tue, 6 Jun 2017 07:50:59 -0400 Subject: Workaround Adreno driver issue with stencil clears. This also removes the "debug wire rect" which was not used and not implemented for Vulkan. Also some declared but not implemented methods are removed from GrGLGpu. Bug: skia:5587 Change-Id: I750051e90e6cfbfad6a6fe20792226182f698bcf Reviewed-on: https://skia-review.googlesource.com/18639 Reviewed-by: Chris Dalton Commit-Queue: Brian Salomon --- src/gpu/gl/GrGLCaps.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gpu/gl/GrGLCaps.cpp') diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index c672cb9a59..44d25299ae 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -55,6 +55,7 @@ GrGLCaps::GrGLCaps(const GrContextOptions& contextOptions, fClearToBoundaryValuesIsBroken = false; fClearTextureSupport = false; fDrawArraysBaseVertexIsBroken = false; + fUseDrawToClearStencilClip = false; fBlitFramebufferFlags = kNoSupport_BlitFramebufferFlag; @@ -511,6 +512,7 @@ void GrGLCaps::init(const GrContextOptions& contextOptions, if (kAdreno4xx_GrGLRenderer == ctxInfo.renderer()) { fUseDrawInsteadOfPartialRenderTargetWrite = true; + fUseDrawToClearStencilClip = true; } // Texture uploads sometimes seem to be ignored to textures bound to FBOS on Tegra3. -- cgit v1.2.3