aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar Adrienne Walker <enne@chromium.org>2018-05-15 11:38:44 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-15 22:06:43 +0000
commit001cae07d386038a5602663e1ce149cc51c6ebe9 (patch)
treeaf6f8a1d51b84a45d54882e0f9432162f1165426 /src/gpu
parentcc45cc7c17a8317fba6adaf4a8ea5ebf047afd21 (diff)
Driver bug workaround: disallow_large_instanced_draw
Bug: chromium: 829614 Change-Id: I3c64cd360674f08b4ca3c4a2d0ef946e40a5c60a Reviewed-on: https://skia-review.googlesource.com/126751 Commit-Queue: Adrienne Walker <enne@chromium.org> Reviewed-by: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/gl/GrGLCaps.cpp2
-rw-r--r--src/gpu/gpu_workaround_list.txt1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index a20e049329..727db6c648 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -2473,6 +2473,8 @@ void GrGLCaps::applyDriverCorrectnessWorkarounds(const GrGLContextInfo& ctxInfo,
// given 1 << 15 or more instances.
if (kPowerVRRogue_GrGLRenderer == ctxInfo.renderer()) {
fMaxInstancesPerDrawArraysWithoutCrashing = 0x7fff;
+ } else if (fDriverBugWorkarounds.disallow_large_instanced_draw) {
+ fMaxInstancesPerDrawArraysWithoutCrashing = 0x4000000;
}
// Texture uploads sometimes seem to be ignored to textures bound to FBOS on Tegra3.
diff --git a/src/gpu/gpu_workaround_list.txt b/src/gpu/gpu_workaround_list.txt
index c9867a6b22..8c399a2f0b 100644
--- a/src/gpu/gpu_workaround_list.txt
+++ b/src/gpu/gpu_workaround_list.txt
@@ -1,3 +1,4 @@
disable_blend_equation_advanced
disable_discard_framebuffer
+disallow_large_instanced_draw
max_texture_size_limit_4096