glsl_to_tgsi: Assert that the _mesa_sysval_to_semantic mapping is correct
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 18 Jun 2014 22:43:32 +0000 (15:43 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 7 Aug 2014 22:19:57 +0000 (15:19 -0700)
commit5d7275c350f1e05f7c9a06316e1826bf42bb769b
tree888a76748a41ba777ff5f7db29f3b9249af5fc84
parent21ef7f58e382f7a179570d157d6bb7c1241a7afe
glsl_to_tgsi: Assert that the _mesa_sysval_to_semantic mapping is correct

Future patches will rearrange the values in gl_system_value, and I want
to catch errors.  Designated initializers would make all of this
unnecessary.

v2: Don't use STATIC_ASSERT.  Not only does it not work, but GCC doesn't
tell you that it's not going to work.  Thanks for nothing!

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp