aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-12-04 08:37:44 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-04 13:59:04 +0000
commit0c56d47b7e288eacb5dae3560f478b0d8a4896a3 (patch)
tree19d3ca022b05403ac18fa972290d224cdff24fdc /src/gpu
parent4e9265253af55c2ff54d52abe5c361c85da36bf4 (diff)
Disable SkImage multitexturing for AMD GPUs.
Change-Id: Icc68b09acfadf9e1f6e8ec582d2d6b7f1d00aebe Reviewed-on: https://skia-review.googlesource.com/78403 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/gl/GrGLCaps.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index d0436a43f2..e40b56ff2e 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -373,6 +373,11 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
std::numeric_limits<size_t>::max();
}
break;
+ case kATI_GrGLVendor:
+ // So far no AMD GPU shows a performance difference. A tie goes to disabling
+ // multitexturing for simplicity's sake.
+ fShaderCaps->fDisableImageMultitexturingDstRectAreaThreshold = 0;
+ break;
default:
break;
}