The grammar for array_reference_vec4_vec4 was set up wrong, so we
weren't generating instructions if necessary for the array index.
# A reference of a variable is just a vec4 register location,
# so it can be used as an argument for pretty much anything.
-vec4: array_reference_vec4_vec4 1
+vec4: array_reference_vec4_vec4(vec4, vec4) 1
{
ir_to_mesa_dst_reg address_reg = {PROGRAM_ADDRESS, 0, WRITEMASK_X};
tree->left->src_reg);
}
-vec4: trunc_vec4(vec4) 1
-{
- ir_to_mesa_emit_scalar_op1(tree, OPCODE_TRUNC,
- tree->dst_reg,
- tree->left->src_reg);
-}
+vec4: trunc_vec4(vec4) 1 { ir_to_mesa_emit_op1(tree, OPCODE_TRUNC); }
%%