diff options
author | 2017-11-30 11:56:25 -0500 | |
---|---|---|
committer | 2017-12-01 21:15:44 +0000 | |
commit | 64fa70ae2a76dec782914395e31b398e1ba25aa3 (patch) | |
tree | fc01bae83b970c1ce9236472f5422f99b61a8909 /src | |
parent | 0cb75879a5923ead28083face7618f44c6c8cbfb (diff) |
Reland "Set multitexturing image threshold for PowerVR."
This is a reland of 06c8da41eb13f46534d3acf79c5635c240b2cbe0
Original change's description:
> 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>
Change-Id: Ib755e57833bf22e7feb612eb434eae3cac2e3f45
Reviewed-on: https://skia-review.googlesource.com/79263
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/gl/GrGLCaps.cpp | 8 |
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; } |