We had missed this case where GLES3 allows glReadPixels(DEPTH, UINT_24_8),
and just got lucky by the readpixels path never asking for the matching
format from this function.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
case GL_UNSIGNED_INT_24_8:
if (format == GL_DEPTH_STENCIL)
return MESA_FORMAT_S8_UINT_Z24_UNORM;
+ else if (format == GL_DEPTH_COMPONENT)
+ return MESA_FORMAT_X8_UINT_Z24_UNORM;
break;
case GL_FLOAT_32_UNSIGNED_INT_24_8_REV:
if (format == GL_DEPTH_STENCIL)