svga: Remove duplication in the format table.
authorEric Anholt <eric@anholt.net>
Mon, 12 Aug 2019 23:57:52 +0000 (16:57 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 19 Aug 2019 18:42:55 +0000 (11:42 -0700)
commitef37da52c0d975edb9ae20820d4d2c7abb53827f
tree700f993f6c8aec8065ed4c1adc42d93b407a7be9
parent42efa789b5ea378e9ac7ae8466670592b40cf233
svga: Remove duplication in the format table.

By using the [ ] = {} array initializer syntax, we no longer need the
entries to be listed in PIPE_FORMAT_* value order.  This means that
people adding new gallium formats don't need to cargo-cult changes to
this driver or regress that non-unit-tested requirement.

While I'm here, drop the lines for formats that no longer exist (the
numbered ones in the table).

Acked-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_format.c