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
This commit is contained in:
bsalomon 2015-10-26 07:33:03 -07:00 committed by Commit bot
parent 3c8ceb7350
commit e72bd028d9

View 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