st/mesa: use the first non-VOID channel in st_format_datatype
authorMarek Olšák <maraeo@gmail.com>
Mon, 27 Jun 2011 17:01:25 +0000 (19:01 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 8 Jul 2011 11:02:22 +0000 (13:02 +0200)
commit292148dc4b18958d4447df7596311bd2f09fd44f
treec10c6efbbe1fb90a87580d2cb131c6b406a37d29
parenta65e9706035c0e348307e76fdeeed0910ec8c68e
st/mesa: use the first non-VOID channel in st_format_datatype

Otherwise PIPE_FORMAT_X8B8G8R8_UNORM and friends would fail.

NOTE: This is a candidate for the 7.10 and 7.11 branches.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_format.c