From ca75ea871e40cc4ebd19bfa26a096bec19fd464e Mon Sep 17 00:00:00 2001 From: robertphillips Date: Fri, 20 Mar 2015 06:43:11 -0700 Subject: Disable sharing of stencil buffers across differently sized rendertargets Due to revertapalooza, stencil buffers shared across differently sized rendertargets aren't getting cleared correctly. This CL disables the sharing until the clearing issues can be remedied. Note that stencil buffers should still be shared between identically sized render targets and should still be lazily allocated. Review URL: https://codereview.chromium.org/1020203002 --- src/gpu/GrGpu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp index c4b155a2d4..d7d4ae7fd4 100644 --- a/src/gpu/GrGpu.cpp +++ b/src/gpu/GrGpu.cpp @@ -82,10 +82,12 @@ bool GrGpu::attachStencilBufferToRenderTarget(GrRenderTarget* rt) { int width = rt->width(); int height = rt->height(); +#if 0 if (this->caps()->oversizedStencilSupport()) { width = SkNextPow2(width); height = SkNextPow2(height); } +#endif GrStencilBuffer::ComputeSharedStencilBufferKey(width, height, rt->numSamples(), &sbKey); SkAutoTUnref sb(static_cast( -- cgit v1.2.3