From f09d77b2af0e6e7553a1e2efca2f12fe2e4dcea8 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 21 Jan 2013 23:19:25 -0500 Subject: glsl: Allow dereferencing fields of an interface instance Signed-off-by: Ian Romanick Reviewed-by: Jordan Justen --- src/glsl/hir_field_selection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/glsl/hir_field_selection.cpp') diff --git a/src/glsl/hir_field_selection.cpp b/src/glsl/hir_field_selection.cpp index ac416d5dac4..0035a5f81fd 100644 --- a/src/glsl/hir_field_selection.cpp +++ b/src/glsl/hir_field_selection.cpp @@ -61,7 +61,8 @@ _mesa_ast_field_selection_to_hir(const ast_expression *expr, _mesa_glsl_error(& loc, state, "Invalid swizzle / mask `%s'", expr->primary_expression.identifier); } - } else if (op->type->base_type == GLSL_TYPE_STRUCT) { + } else if (op->type->base_type == GLSL_TYPE_STRUCT + || op->type->base_type == GLSL_TYPE_INTERFACE) { result = new(ctx) ir_dereference_record(op, expr->primary_expression.identifier); -- cgit v1.2.3