Lines Matching defs:old_index
225 lower_distance_visitor::create_indices(ir_rvalue *old_index,
229 void *ctx = ralloc_parent(old_index);
231 /* Make sure old_index is a signed int so that the bitwise "shift" and
234 if (old_index->type != glsl_type::int_type) {
235 assert (old_index->type == glsl_type::uint_type);
236 old_index = new(ctx) ir_expression(ir_unop_u2i, old_index);
240 old_index->constant_expression_value(ctx);
250 /* Create a variable to hold the value of old_index (so that we
257 new(ctx) ir_dereference_variable(old_index_var), old_index));