OSDN Git Service

u_vbuf: Simplify the format fallback translation.
authorEric Anholt <eric@anholt.net>
Fri, 22 Aug 2014 17:34:55 +0000 (10:34 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 25 Aug 2014 05:13:25 +0000 (22:13 -0700)
commitbbbe3b65adee44c164532d7afb4ff8fd8f88bbf4
tree69e2a96411c4e1190cf426c70559fd82765aaaa5
parent306e421887720b149be77c749108bcffcebe34f6
u_vbuf: Simplify the format fallback translation.

Individual caps made supporting new fallbacks more complicated than it
needed to be.  Instead, just make a table of fallbacks at context init
time.

v2: Fix inverted "do we need to install vbuf?" flagging caught by Marek.

Reviewed-by: Marek Olšák <marek.olsak@amd.com> (v2)
src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/util/u_vbuf.c
src/gallium/auxiliary/util/u_vbuf.h