From: Ian Romanick Date: Tue, 22 Jan 2013 04:19:25 +0000 (-0500) Subject: glsl: Allow dereferencing fields of an interface instance X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f09d77b2af0e6e7553a1e2efca2f12fe2e4dcea8;p=mesa.git glsl: Allow dereferencing fields of an interface instance Signed-off-by: Ian Romanick Reviewed-by: Jordan Justen --- 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);