Disable MIP mapping on PowerVR 54x. This GPU spews a lot of errors when using Generat...
authorbsalomon <bsalomon@google.com>
Mon, 26 Oct 2015 14:33:03 +0000 (07:33 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 26 Oct 2015 14:33:03 +0000 (07:33 -0700)
BUG=skia:4514

Review URL: https://codereview.chromium.org/1414743008

src/gpu/gl/GrGLCaps.cpp

index e1f3e1b..9917c1f 100644 (file)
@@ -358,6 +358,11 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
         fMipMapSupport = fNPOTTextureTileSupport || ctxInfo.hasExtension("GL_IMG_texture_npot");
     }
 
+    // Using MIPs on this GPU seems to be a source of trouble.
+    if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer()) {
+        fMipMapSupport = false;
+    }
+
     GR_GL_GetIntegerv(gli, GR_GL_MAX_TEXTURE_SIZE, &fMaxTextureSize);
     GR_GL_GetIntegerv(gli, GR_GL_MAX_RENDERBUFFER_SIZE, &fMaxRenderTargetSize);
     // Our render targets are always created with textures as the color