From e72bd028d9046f42adb97eaf878e3a54f208ada8 Mon Sep 17 00:00:00 2001 From: bsalomon Date: Mon, 26 Oct 2015 07:33:03 -0700 Subject: [PATCH] Disable MIP mapping on PowerVR 54x. This GPU spews a lot of errors when using GenerateMipMaps. BUG=skia:4514 Review URL: https://codereview.chromium.org/1414743008 --- src/gpu/gl/GrGLCaps.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index e1f3e1b..9917c1f 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -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 -- 2.7.4