nir: Use an integer index for specifying structure fields
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 26 Nov 2014 05:36:25 +0000 (21:36 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:19:02 +0000 (07:19 -0800)
commit829aa98320fcd529407d16991b476b71af017479
tree5ff603507c7cded684a6ee460126b64c1e02f112
parent4f8230e247a222314ab124e348482628adb5af32
nir: Use an integer index for specifying structure fields

Previously, we used a string name.  It was nice for translating out of GLSL
IR (which also does that) but cumbersome the rest of the time.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/glsl_to_nir.cpp
src/glsl/nir/nir.c
src/glsl/nir/nir.h
src/glsl/nir/nir_lower_samplers.cpp
src/glsl/nir/nir_lower_variables_scalar.c
src/glsl/nir/nir_print.c
src/glsl/nir/nir_types.cpp
src/glsl/nir/nir_types.h
src/glsl/nir/nir_validate.c