mesa: assert that key->fragprog_inputs_read value isn't too large
authorBrian Paul <brianp@vmware.com>
Sun, 4 Nov 2012 23:43:44 +0000 (16:43 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 6 Nov 2012 14:42:37 +0000 (07:42 -0700)
commit0d61f879a1f2e6bb37368731a29d5267e1c25195
treef107d7a0c05ba457b64d1ce07fe77f729fe7adac
parent406df38a6673cb7d19ce652f71fac1047b2279d0
mesa: assert that key->fragprog_inputs_read value isn't too large

fragprog_inputs_read is a 12-bit bitfield so check the assigned value.
MSVC warns on the assignment.  Not easy to fix but let's do a sanity check.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/main/ffvertex_prog.c