swrast: Make the fetch funcs table sparse.
authorEric Anholt <eric@anholt.net>
Wed, 31 Jul 2019 20:30:22 +0000 (13:30 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 19 Aug 2019 18:48:03 +0000 (11:48 -0700)
commit1395503424391db4aba05bd68a8288f426992d56
tree62ac0c0b7db68833a78d58010000675435397f86
parentc45c33a5a2b75e791de14e845c994f414c77cc51
swrast: Make the fetch funcs table sparse.

This shrinks the table, avoids needing to update the table with NULL
entries on every MESA_FORMAT addition, and removes a surprising,
non-unit-tested format number ordering dependency.

Acked-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/swrast/s_texfetch.c