Enable the tessellation path renderer on (extended) es2

Bug: chromium:1220246
Change-Id: I0534da49a74218cd2561fbd008ca10674f029e98
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423776
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
This commit is contained in:
Chris Dalton 2021-07-07 10:49:40 -06:00 committed by Skia Commit-Bot
parent 4c886ee15a
commit 4e5f763491
2 changed files with 4 additions and 1 deletions

View File

@ -4037,7 +4037,8 @@ void GrGLCaps::applyDriverCorrectnessWorkarounds(const GrGLContextInfo& ctxInfo,
ctxInfo.renderer() == GrGLRenderer::kMaliT || // Some curves appear flat on GalaxyS6.
ctxInfo.renderer() == GrGLRenderer::kAdreno3xx ||
ctxInfo.renderer() == GrGLRenderer::kAdreno430 ||
ctxInfo.renderer() == GrGLRenderer::kAdreno4xx_other) { // We get garbage on Adreno405.
ctxInfo.renderer() == GrGLRenderer::kAdreno4xx_other || // We get garbage on Adreno405.
ctxInfo.angleBackend() == GrGLANGLEBackend::kD3D9) { // D3D9 conic strokes fail.
fDisableTessellationPathRenderer = true;
}

View File

@ -39,7 +39,9 @@ constexpr static int kAtlasMaxPathHeight = 128;
bool GrTessellationPathRenderer::IsSupported(const GrCaps& caps) {
return !caps.avoidStencilBuffers() &&
caps.drawInstancedSupport() &&
#ifdef GR_DISABLE_TESSELLATION_ON_ES2
caps.shaderCaps()->integerSupport() &&
#endif
GrTessellationShader::SupportsPortableInfinity(*caps.shaderCaps()) &&
!caps.disableTessellationPathRenderer();
}