[Mesa-dev] [PATCH 1/2] swrast: Fix fastpaths in glRead/WritePixels(GL_DEPTH_STENCIL)
brian.e.paul at gmail.com
Mon Oct 10 19:29:33 PDT 2011
On Mon, Oct 10, 2011 at 7:10 PM, Chad Versace <chad at chad-versace.us> wrote:
> For glReadPixels, the user supplied pixels have format
> GL_UNSIGNED_INT_24_8. But, when the depthstencil buffer's format was
> MESA_FORMAT_S8_Z24, the fastpath read from the buffer without reordering
> the depth and stencil bits. To fix this, this patch just skips the
> fastpath when the format is not MESA_FORMAT_Z24_S8.
> The problem and fix for glWritePixels is analagous.
> Fixes the Piglit tests below on i965/gen6 and causes no regressions.
> Signed-off-by: Chad Versace <chad at chad-versace.us>
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev