OSDN Git Service

i965: Reorganize MESA_FORMAT -> BRW_SURFACEFORMAT table.
authorEric Anholt <eric@anholt.net>
Wed, 16 Nov 2011 00:16:43 +0000 (16:16 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 22 Nov 2011 21:58:38 +0000 (13:58 -0800)
commit2d159e6b365f039d9322b59e1538f3d42e8d8d8d
tree9e0f065a2f0dbba94e9af7ee98275b25b9e4b4e3
parent1b4910b3050729eabac15936ef701ef3acd4e70f
i965: Reorganize MESA_FORMAT -> BRW_SURFACEFORMAT table.

This should be a no-op change.  The initializers are reordered to
match the ordering of the enum, since there isn't a clearly sensible
ordering, but "the order they were added to the driver, sort of" is
definitely not one.

Also, the unsupported formats are explicitly initialized to 0, so it's
more obvious what we aren't claiming to support.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c