Disable baseInstance on SwiftShader
Bug: skia:10102
Change-Id: I4e11b6396574e6f86e31b658bfd2a5fe45b89489
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/281507
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index fb735ac..4c88e83 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -3551,6 +3551,11 @@
fBaseVertexBaseInstanceSupport = false;
}
+ // http://skbug.com/10102
+ if (ctxInfo.driver() == kSwiftShader_GrGLDriver) {
+ fBaseVertexBaseInstanceSupport = false;
+ }
+
// Currently the extension is advertised but fb fetch is broken on 500 series Adrenos like the
// Galaxy S7.
// TODO: Once this is fixed we can update the check here to look at a driver version number too.