[Mesa-stable] [Mesa-dev] [PATCH] mesa: do depth/stencil format conversion in glGetTexImage
Eric Anholt
eric at anholt.net
Thu Feb 27 23:55:48 PST 2014
Brian Paul <brianp at vmware.com> writes:
> glGetTexImage(GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8) was just
> using memcpy() instead of _mesa_unpack_uint_24_8_depth_stencil_row()
> to convert texels from the hardware format to the GL format.
>
> Fixes issue reported by David Meng at Intel. The new piglit
> ext_packed_depth_stencil-getteximage test checks for this bug.
>
> Also, add some format/type assertions. We don't yet handle the
> GL_FLOAT_32_UNSIGNED_INT_24_8_REV type. That should be fixed in
> a follow-on patch.
Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-stable/attachments/20140227/6ed76528/attachment.pgp>
More information about the mesa-stable
mailing list