svga: Factor out the format conversion table entry lookup.
authorEric Anholt <eric@anholt.net>
Mon, 12 Aug 2019 23:50:50 +0000 (16:50 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 19 Aug 2019 18:42:36 +0000 (11:42 -0700)
commit42efa789b5ea378e9ac7ae8466670592b40cf233
treedfde401ea3a368558156ea4f73a49a0e9e4a78e3
parent5167e94f2343d1dc7db489e7041d89a598eaa68d
svga: Factor out the format conversion table entry lookup.

Seemed like a sensible cleanup, while I was looking at whether I could
make the table sparse.

To make the svga table not require fixups on every new gallium format,
we may want to change how it's populated.

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