st/mesa: add test_format_conversion() debug function
authorBrian Paul <brianp@vmware.com>
Thu, 6 Mar 2014 18:45:42 +0000 (11:45 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 7 Mar 2014 14:31:29 +0000 (07:31 -0700)
commit6d2dffe8b143b2f81179279d25d3ac247f4e278f
treec7742c4466316e97eea1aef47b709ef665522c6a
parentd8f7e3d79ede749e59af9092acac4405e5c7866c
st/mesa: add test_format_conversion() debug function

To check that the st_mesa_format_to_pipe_format() and
st_pipe_format_to_mesa_format() functions correctly convert
all corresponding Mesa/Gallium formats.

This found that MESA_FORMAT_YCBCR_REV was missing in
st_mesa_format_to_pipe_format().  Fixed that too.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_format.c