Home
last modified time | relevance | path

Searched refs:orig_deref (Results 1 – 3 of 3) sorted by relevance

/external/mesa3d/src/glsl/
Dlower_vec_index_to_cond_assign.cpp70 ir_dereference_array *orig_deref = ir->as_dereference_array(); in convert_vec_index_to_cond_assign() local
76 if (!orig_deref) in convert_vec_index_to_cond_assign()
79 if (orig_deref->array->type->is_matrix() || in convert_vec_index_to_cond_assign()
80 orig_deref->array->type->is_array()) in convert_vec_index_to_cond_assign()
85 assert(orig_deref->array_index->type->base_type == GLSL_TYPE_INT); in convert_vec_index_to_cond_assign()
95 assign = new(base_ir) ir_assignment(deref, orig_deref->array_index, NULL); in convert_vec_index_to_cond_assign()
108 orig_deref->array->type->vector_elements, in convert_vec_index_to_cond_assign()
112 for (i = 0; i < orig_deref->array->type->vector_elements; i++) { in convert_vec_index_to_cond_assign()
120 new(base_ir) ir_swizzle(orig_deref->array->clone(mem_ctx, NULL), in convert_vec_index_to_cond_assign()
174 ir_dereference_array *orig_deref = ir->lhs->as_dereference_array(); in visit_leave() local
[all …]
Dlower_variable_index_to_cond_assign.cpp389 ir_variable *convert_dereference_array(ir_dereference_array *orig_deref, in convert_dereference_array() argument
393 assert(is_array_or_matrix(orig_deref->array)); in convert_dereference_array()
395 const unsigned length = (orig_deref->array->type->is_array()) in convert_dereference_array()
396 ? orig_deref->array->type->length in convert_dereference_array()
397 : orig_deref->array->type->matrix_columns; in convert_dereference_array()
420 var = new(mem_ctx) ir_variable(orig_deref->type, in convert_dereference_array()
428 new(mem_ctx) ir_variable(orig_deref->array_index->type, in convert_dereference_array()
434 new(mem_ctx) ir_assignment(lhs, orig_deref->array_index, NULL); in convert_dereference_array()
437 orig_deref->array_index = lhs->clone(mem_ctx, NULL); in convert_dereference_array()
483 ir_dereference_array* orig_deref = (*pir)->as_dereference_array(); in handle_rvalue() local
[all …]
Dopt_function_inlining.cpp81 ir_dereference *orig_deref = (ir_dereference *) data; in replace_return_with_assignment() local
86 ir_rvalue *lhs = orig_deref->clone(ctx, NULL); in replace_return_with_assignment()