struct ir_instruction *
_mesa_ast_field_selection_to_hir(const ast_expression *expr,
- simple_node *instructions,
+ exec_list *instructions,
struct _mesa_glsl_parse_state *state)
{
ir_instruction *op;
YYLTYPE loc;
- op = _mesa_ast_to_hir(expr->subexpressions[0], instructions, state);
+ op = expr->subexpressions[0]->hir(instructions, state);
deref = new ir_dereference(op);
/* Initially assume that the resulting type of the field selection is an
* being applied.
*/
loc = expr->get_location();
- if (is_glsl_type_vector(op->type)) {
+ if (op->type->is_vector()) {
if (generate_swizzle(expr->primary_expression.identifier,
& deref->selector.swizzle,
op->type->vector_elements)) {