From 829aa98320fcd529407d16991b476b71af017479 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 25 Nov 2014 21:36:25 -0800 Subject: 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 --- src/glsl/nir/nir_validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/glsl/nir/nir_validate.c') diff --git a/src/glsl/nir/nir_validate.c b/src/glsl/nir/nir_validate.c index d4a8cd588c7..f6a55ccabd5 100644 --- a/src/glsl/nir/nir_validate.c +++ b/src/glsl/nir/nir_validate.c @@ -275,7 +275,7 @@ validate_deref_chain(nir_deref *deref, validate_state *state) case nir_deref_type_struct: assert(deref->type == glsl_get_struct_field(parent->type, - nir_deref_as_struct(deref)->elem)); + nir_deref_as_struct(deref)->index)); break; case nir_deref_type_var: -- cgit v1.2.3