swrast: use STATIC_ASSERT to make sure texfetch table isn't missing entries
authorBrian Paul <brianp@vmware.com>
Tue, 29 Nov 2011 01:13:44 +0000 (18:13 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 30 Nov 2011 13:57:36 +0000 (06:57 -0700)
commitea472ffe67571d868f22a949e989c748b433ddbc
treee1321573b4097acdecbcfed2bf64db6866bb917c
parent15be8b4bf01a4f01b2afcea82bd042f3a98b9ac1
swrast: use STATIC_ASSERT to make sure texfetch table isn't missing entries

When new MESA_FORMAT_x enums are added we need to add a new entry in
the table of texture fetch functions.  In the past this has been
missed if swrast isn't actually tested.  Using a static assertion
should help with that.
src/mesa/swrast/s_texfetch.c