commit | babafcc681de86801b15b4fe0ab856ce32048ff6 | [log] [tgz] |
---|---|---|
author | bsalomon <bsalomon@google.com> | Tue Feb 16 11:36:47 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Tue Feb 16 11:36:47 2016 -0800 |
tree | 321c3f86acf2a301ea283aa6e365a49e5c52008c | |
parent | 8e84a1ed07ad5d529d381d43302e597f31723076 [diff] [blame] |
Workaround for bug in Tegra 3 when uploading to a render target BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1703603002 Review URL: https://codereview.chromium.org/1703603002
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index 6dc5ee8..fd888d6 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp
@@ -456,6 +456,12 @@ fUseDrawInsteadOfPartialRenderTargetWrite = true; } + // Texture uploads sometimes seem to be ignored to textures bound to FBOS on Tegra3. + if (kTegra3_GrGLRenderer == ctxInfo.renderer()) { + fUseDrawInsteadOfPartialRenderTargetWrite = true; + fUseDrawInsteadOfAllRenderTargetWrites = true; + } + #ifdef SK_BUILD_FOR_WIN // On ANGLE deferring flushes can lead to GPU starvation fPreferVRAMUseOverFlushes = !isANGLE;