Home
last modified time | relevance | path

Searched refs:orig_deref (Results 1 – 2 of 2) 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
78 if (!orig_deref) in convert_vec_index_to_cond_assign()
81 if (orig_deref->array->type->is_matrix() || in convert_vec_index_to_cond_assign()
82 orig_deref->array->type->is_array()) in convert_vec_index_to_cond_assign()
87 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()
104 for (i = 0; i < orig_deref->array->type->vector_elements; i++) { in convert_vec_index_to_cond_assign()
114 swizzle = new(base_ir) ir_swizzle(orig_deref->array->clone(mem_ctx, NULL), in convert_vec_index_to_cond_assign()
163 ir_dereference_array *orig_deref = ir->lhs->as_dereference_array(); in visit_leave() local
165 if (!orig_deref || in visit_leave()
[all …]
Dlower_variable_index_to_cond_assign.cpp264 ir_variable *convert_dereference_array(ir_dereference_array *orig_deref, in convert_dereference_array() argument
267 assert(is_array_or_matrix(orig_deref->array)); in convert_dereference_array()
269 const unsigned length = (orig_deref->array->type->is_array()) in convert_dereference_array()
270 ? orig_deref->array->type->length in convert_dereference_array()
271 : orig_deref->array->type->matrix_columns; in convert_dereference_array()
275 new(mem_ctx) ir_variable(orig_deref->type, "dereference_array_value", in convert_dereference_array()
288 new(mem_ctx) ir_variable(orig_deref->array_index->type, in convert_dereference_array()
294 new(mem_ctx) ir_assignment(lhs, orig_deref->array_index, NULL); in convert_dereference_array()
298 ag.array = orig_deref->array; in convert_dereference_array()
317 ir_dereference_array* orig_deref = (*pir)->as_dereference_array(); in handle_rvalue() local
[all …]