glsl/ast: Don't perform GS input array checks on non-inputs.

Previously, we were accidentally calling
handle_geometry_shader_input_decl() on non-input interface block
declarations, resulting in bogus error checking.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Paul Berry
2013-08-12 06:39:23 -07:00
parent 91c8fea924
commit 825f9ff5d3
+1 -1
View File
@@ -4600,7 +4600,7 @@ ast_interface_block::hir(exec_list *instructions,
}
var->interface_type = block_type;
if (state->target == geometry_shader)
if (state->target == geometry_shader && var_mode == ir_var_shader_in)
handle_geometry_shader_input_decl(state, loc, var);
state->symbols->add_variable(var);
instructions->push_tail(var);