aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLCaps.cpp
diff options
context:
space:
mode:
authorGravatar Adrienne Walker <enne@chromium.org>2018-05-10 09:31:27 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-10 17:00:25 +0000
commit8aa0dca395d49b136ab59f6e96c4446342c9ebd2 (patch)
tree09664675cd9a46bbb0612abeef78a0cf2f29d4e3 /src/gpu/gl/GrGLCaps.cpp
parentc66eaaf2fb62b7e351c2c40d327b06c370ddf2c4 (diff)
Driver bug workaround: disable_discard_framebuffer
Bug: chromium: 829614 Change-Id: I285b39b31a370247518e3a0b56ac4ea54f38c0c0 Reviewed-on: https://skia-review.googlesource.com/126749 Commit-Queue: Adrienne Walker <enne@chromium.org> Commit-Queue: Brian Salomon <bsalomon@google.com> Auto-Submit: Adrienne Walker <enne@chromium.org> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/gl/GrGLCaps.cpp')
-rw-r--r--src/gpu/gl/GrGLCaps.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index 43f285e941..2acc7ca91f 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -2333,7 +2333,8 @@ void GrGLCaps::applyDriverCorrectnessWorkarounds(const GrGLContextInfo& ctxInfo,
GrShaderCaps* shaderCaps) {
// A driver but on the nexus 6 causes incorrect dst copies when invalidate is called beforehand.
// Thus we are blacklisting this extension for now on Adreno4xx devices.
- if (kAdreno4xx_GrGLRenderer == ctxInfo.renderer()) {
+ if (kAdreno4xx_GrGLRenderer == ctxInfo.renderer() ||
+ fDriverBugWorkarounds.disable_discard_framebuffer) {
fDiscardRenderTargetSupport = false;
fInvalidateFBType = kNone_InvalidateFBType;
}