aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLCaps.cpp
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2016-09-20 13:00:26 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-20 13:00:26 -0700
commit7517e45e78f1ddae86cae255d36f54732eac4f89 (patch)
treeea6027659676b7b958a8c342509fd99b0670361e /src/gpu/gl/GrGLCaps.cpp
parentd5797b3059a4037a6dce4c0a66693ba471b1588e (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.cpp7
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) {