Commit 4a4fe77c by Nicolas Capens Committed by Nicolas Capens

Fix using linear layout for depth readback.

We were using a quad-layout depth format as the destination format for glReadPixels calls with GL_DEPTH_COMPONENT / GL_FLOAT format. Upload to a texture was also affected. Bug b/64542192 Change-Id: I8ad700bf86737debe3268ec6a3dbd237cd85ea1a Reviewed-on: https://swiftshader-review.googlesource.com/15548Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent 2cd00090
......@@ -537,7 +537,7 @@ namespace egl
case GL_UNSIGNED_SHORT: return sw::FORMAT_D16;
case GL_UNSIGNED_INT_24_8_OES: return sw::FORMAT_D24S8;
case GL_UNSIGNED_INT: return sw::FORMAT_D32;
case GL_FLOAT: return sw::FORMAT_D32F;
case GL_FLOAT: return sw::FORMAT_D32F_LOCKABLE;
default: UNREACHABLE(type);
}
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment