mesa: Add support to unpack depth-stencil texture in to FLOAT_32_UNSIGNED_INT_24_8_REV
authorAnuj Phogat <anuj.phogat@gmail.com>
Fri, 21 Mar 2014 18:16:00 +0000 (11:16 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Thu, 1 May 2014 17:58:40 +0000 (10:58 -0700)
commit29b8e894d15cf960c624189fad7d0cf1fdc9c405
tree620ba5bbe3fbad4d74894c18dfe5cfbaea39d6cc
parent7a8045d2f7b7f749a555dbe5f51c327ab0cd6cc8
mesa: Add support to unpack depth-stencil texture in to FLOAT_32_UNSIGNED_INT_24_8_REV

V2: Follow the new naming convention for unpack functions.
    Use double precision for converting Z24 to a float.
V3: Unpack stencil value to most significant byte.
    Use 'struct z32f_x24s8' type.
V4: Unpack stencil value to least significant byte.
    Add a comment to clarify stencil packing.

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/format_unpack.c
src/mesa/main/format_unpack.h