OSDN Git Service

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:24:42 +0000 (13:24 +0200)
commitefd0ffd1b0e28d3cb118d501b63b8d92b6e95905
tree8a834b6916fe3013cac5ba0b6c7fe87ce810ec53
parentdc062db95d3b82a7bf0b5d7f88c4945fc5c9de2c
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>
(cherry picked from commit 292148dc4b18958d4447df7596311bd2f09fd44f)
src/mesa/state_tracker/st_format.c