Perf bot experiment, disable GLSL integers on ANGLE ES3

Only affects Skia tools builds, not clients.

Change-Id: I9b713b74480359c7eea8a8db7b49fb49341c7ee1
Bug: skia:10644
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/315644
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
Brian Salomon 2020-09-08 13:10:36 -04:00 committed by Skia Commit-Bot
parent 26c24eda3e
commit 27e7f77212

View File

@ -401,6 +401,13 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
shaderCaps->fIntegerSupport = version >= GR_GL_VER(3, 0) &&
ctxInfo.glslGeneration() >= k330_GrGLSLGeneration; // We use this value for GLSL ES 3.0.
#if GR_TEST_UTILS
// TODO(bsalomon): Revert this experiment to see if this affects ANGLE ES3 D3D11
// performance.
if (ctxInfo.driver() == kANGLE_GrGLDriver) {
shaderCaps->fIntegerSupport = false;
}
#endif
} else if (GR_IS_GR_WEBGL(standard)) {
shaderCaps->fShaderDerivativeSupport = version >= GR_GL_VER(2, 0) ||
ctxInfo.hasExtension("GL_OES_standard_derivatives") ||