aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-11-30 11:56:25 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-30 17:32:38 +0000
commit06c8da41eb13f46534d3acf79c5635c240b2cbe0 (patch)
treeb951173c0d1b102350291964d00ddc7c8dca36f9 /src
parentb4ec10431818200a41a082cfe2e82fe58a9b1ecc (diff)
Set multitexturing image threshold for PowerVR.
Change-Id: I2fd928f79e005c73151a9b915879ac561c3fadaf Reviewed-on: https://skia-review.googlesource.com/78400 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/gpu/gl/GrGLCaps.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index 134692d7ac..a31b0c0daa 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -365,6 +365,14 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
// but it doesn't clearly align with Pascal vs Maxwell vs Kepler.
fShaderCaps->fDisableImageMultitexturingDstRectAreaThreshold = 150 * 150;
break;
+ case kImagination_GrGLVendor:
+ // Two PowerVR Rogues, Nexus Player and Chromebook Cb5-312T (PowerVR GX6250), show that
+ // it is always a win to use multitexturing.
+ if (kPowerVRRogue_GrGLRenderer == ctxInfo.renderer()) {
+ fShaderCaps->fDisableImageMultitexturingDstRectAreaThreshold =
+ std::numeric_limits<size_t>::max();
+ }
+ break;
default:
break;
}