Reimplement the _slang_alloc_statevar() function.
authorBrian <brian@yutani.localnet.net>
Wed, 21 Feb 2007 22:21:58 +0000 (15:21 -0700)
committerBrian <brian@yutani.localnet.net>
Wed, 21 Feb 2007 22:21:58 +0000 (15:21 -0700)
commitf94189282989c0654599731ba0a61dfd34ccd80d
tree531d35efdee558f78dfe5c351b8d4e4c7ccc35a0
parent6531952b3c979be0dc95704beb3c3b9dad1dc37b
Reimplement the _slang_alloc_statevar() function.

After several tries at making a table-based system for examining pre-defined
uniforms to find statevar indexes, give up and do it the simple way (lots of
strcmp() calls).  Not terribly elegant, but perfectly functional.
src/mesa/shader/slang/slang_builtin.c
src/mesa/shader/slang/slang_builtin.h