Enable reordering on newer Adreno drivers

Verified the hang is fixed on this (pre-release) driver version.

Bug: skia:11935
Change-Id: Ia841dce15da5802e9e3bf036cb1dace73304bb51
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/416737
Commit-Queue: Adlai Holler <adlai@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
This commit is contained in:
Adlai Holler 2021-06-08 13:24:04 -04:00 committed by Skia Commit-Bot
parent 3650f6d9e5
commit 29d9f1dd23

View File

@ -4132,9 +4132,10 @@ void GrGLCaps::applyDriverCorrectnessWorkarounds(const GrGLContextInfo& ctxInfo,
fReuseScratchTextures = false;
}
// skbug.com/11935. Don't reorder on these GPUs in GL.
if (ctxInfo.renderer() == GrGLRenderer::kAdreno620 ||
ctxInfo.renderer() == GrGLRenderer::kAdreno640) {
// skbug.com/11935. Don't reorder on these GPUs in GL on old drivers.
if ((ctxInfo.renderer() == GrGLRenderer::kAdreno620 ||
ctxInfo.renderer() == GrGLRenderer::kAdreno640) &&
ctxInfo.driverVersion() < GR_GL_DRIVER_VER(571, 0, 0)) {
fAvoidReorderingRenderTasks = true;
}