diff options
author | 2016-09-20 13:00:26 -0700 | |
---|---|---|
committer | 2016-09-20 13:00:26 -0700 | |
commit | 7517e45e78f1ddae86cae255d36f54732eac4f89 (patch) | |
tree | ea6027659676b7b958a8c342509fd99b0670361e /src/gpu/gl/GrGLCaps.cpp | |
parent | d5797b3059a4037a6dce4c0a66693ba471b1588e (diff) |
Disable framebuffer fetch on the Adreno5xx devices.
This should help with some of the rendering bugs currently in GL for the
S7.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2348293004
Review-Url: https://codereview.chromium.org/2348293004
Diffstat (limited to 'src/gpu/gl/GrGLCaps.cpp')
-rw-r--r-- | src/gpu/gl/GrGLCaps.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index 511b46928a..d197fb74be 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -657,6 +657,13 @@ void GrGLCaps::initGLSL(const GrGLContextInfo& ctxInfo) { glslCaps->fUsesPrecisionModifiers = true; } + // Currently the extension is advertised but fb fetch is broken on 500 series Adrenos like the + // Galaxy S7. + // TODO: Once this is fixed we can update the check here to look at a driver version number too. + if (kAdreno5xx_GrGLRenderer == ctxInfo.renderer()) { + glslCaps->fFBFetchSupport = false; + } + glslCaps->fBindlessTextureSupport = ctxInfo.hasExtension("GL_NV_bindless_texture"); if (kGL_GrGLStandard == standard) { |