Exclude Mali devices from manual mip-mapping.
With manual mip-mapping, the Nexus 10 is failing the sRGB mip-map test. That suggests a failure in the sRGB implementation (decode after bilerp, possibly?). Using the driver's mip-mapper resolves the unit test issue, at least.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2036763002
Review-Url: https://codereview.chromium.org/2036763002
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index 88ed455..c0fc901 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -547,8 +547,10 @@
// Manual mip-mapping requires mip-level sampling control.
// Additionally, Adreno330 will produce empty mip-maps for the very smallest mips with
// our manual (draw-call) implementation.
+ // At least some Mali chips (T604 in Nexus10) produces incorrect (wrt sRGB) mips using draws
if (fMipMapLevelAndLodControlSupport &&
- kAdreno3xx_GrGLRenderer != ctxInfo.renderer()) {
+ kAdreno3xx_GrGLRenderer != ctxInfo.renderer() &&
+ kARM_GrGLVendor != ctxInfo.vendor()) {
fDoManualMipmapping = true;
}