tgsi/ureg: remove index parameter from ureg_DECL_system_value
authorMarek Olšák <marek.olsak@amd.com>
Thu, 7 Jan 2016 22:25:48 +0000 (23:25 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 8 Jan 2016 19:06:22 +0000 (20:06 +0100)
commitc886422656f38593e1db3700ae747058f55125d4
treee7764573683710982a0fed51b1ba496c0d63be23
parent91e8f2b0a58c1f5a00f447f60213e9ec2f5b6e6e
tgsi/ureg: remove index parameter from ureg_DECL_system_value

It can be trivially derived from the number of already declared system
values. This allows ureg users not to worry about which index to choose.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
src/gallium/auxiliary/tgsi/tgsi_ureg.c
src/gallium/auxiliary/tgsi/tgsi_ureg.h
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_mesa_to_tgsi.c