/* first column */
expr = new(mem_ctx) ir_expression(ir_binop_mul,
- a->type,
a,
b);
b = get_element(b_var, b_col, i);
mul_expr = new(mem_ctx) ir_expression(ir_binop_mul,
- a->type,
a,
b);
expr = new(mem_ctx) ir_expression(ir_binop_add,
- a->type,
expr,
mul_expr);
}
/* first column */
expr = new(mem_ctx) ir_expression(ir_binop_mul,
- result_var->type,
a,
b);
b = get_element(b_var, 0, i);
mul_expr = new(mem_ctx) ir_expression(ir_binop_mul,
- result_var->type,
a,
b);
- expr = new(mem_ctx) ir_expression(ir_binop_add,
- result_var->type,
- expr,
- mul_expr);
+ expr = new(mem_ctx) ir_expression(ir_binop_add, expr, mul_expr);
}
ir_rvalue *result = new(mem_ctx) ir_dereference_variable(result_var);
result = new(mem_ctx) ir_swizzle(result, i, 0, 0, 0, 1);
column_expr = new(mem_ctx) ir_expression(ir_binop_dot,
- result->type,
a,
b);
ir_assignment *column_assign;
column_expr = new(mem_ctx) ir_expression(ir_binop_mul,
- result->type,
a,
b);
ir_dereference *const op1 = get_column(b_var, i);
ir_expression *const cmp =
- new(this->mem_ctx) ir_expression(ir_binop_any_nequal,
- glsl_type::bool_type, op0, op1);
+ new(this->mem_ctx) ir_expression(ir_binop_any_nequal, op0, op1);
ir_dereference *const lhs =
new(this->mem_ctx) ir_dereference_variable(tmp_bvec);
this->base_ir->insert_before(assign);
}
- ir_rvalue *const val =
- new(this->mem_ctx) ir_dereference_variable(tmp_bvec);
-
- ir_expression *any =
- new(this->mem_ctx) ir_expression(ir_unop_any, glsl_type::bool_type,
- val, NULL);
+ ir_rvalue *const val = new(this->mem_ctx) ir_dereference_variable(tmp_bvec);
+ ir_expression *any = new(this->mem_ctx) ir_expression(ir_unop_any, val);
if (test_equal)
- any = new(this->mem_ctx) ir_expression(ir_unop_logic_not,
- glsl_type::bool_type,
- any, NULL);
+ any = new(this->mem_ctx) ir_expression(ir_unop_logic_not, any);
ir_rvalue *const result =
new(this->mem_ctx) ir_dereference_variable(result_var);
ir_expression *column_expr;
ir_assignment *column_assign;
- column_expr = new(mem_ctx) ir_expression(orig_expr->operation,
- result->type,
- op0,
- NULL);
+ column_expr = new(mem_ctx) ir_expression(orig_expr->operation, op0);
column_assign = new(mem_ctx) ir_assignment(result,
column_expr,
ir_assignment *column_assign;
column_expr = new(mem_ctx) ir_expression(orig_expr->operation,
- result->type,
op0,
op1);