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
This commit is contained in:
parent
f95ff4a37a
commit
21c5ec62aa
@ -547,8 +547,10 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user