/external/mesa3d/src/compiler/glsl/tests/ |
D | array_refcount_test.cpp | 123 deref_array(operand array, operand index) in deref_array() function 417 body->emit(assign(var_a, deref_array(var_c, var_b))); in TEST_F() 452 body->emit(assign(var_a, deref_array(var_c, var_b))); in TEST_F() 493 deref_array( in TEST_F() 524 deref_array( in TEST_F() 525 deref_array( in TEST_F() 526 deref_array(var_b, body->constant(int(2))), in TEST_F() 559 deref_array( in TEST_F() 560 deref_array( in TEST_F() 561 deref_array(var_b, body->constant(int(2))), in TEST_F() [all …]
|
/external/mesa3d/src/compiler/glsl/ |
D | lower_buffer_access.cpp | 348 ir_dereference_array *deref_array = (ir_dereference_array *) deref; in setup_buffer_access() local 350 if (deref_array->array->type->is_vector()) { in setup_buffer_access() 360 if (deref_array->array->type->is_64bit()) in setup_buffer_access() 362 } else if (deref_array->array->type->is_matrix() && *row_major) { in setup_buffer_access() 369 if (deref_array->array->type->is_64bit()) in setup_buffer_access() 371 *matrix_columns = deref_array->array->type->matrix_columns; in setup_buffer_access() 372 } else if (deref_array->type->without_array()->is_interface()) { in setup_buffer_access() 381 deref = deref_array->array->as_dereference(); in setup_buffer_access() 389 is_dereferenced_thing_row_major(deref_array); in setup_buffer_access() 395 array_stride = deref_array->type->std430_array_stride(array_row_major); in setup_buffer_access() [all …]
|
D | lower_named_interface_blocks.cpp | 86 ir_dereference_array *deref_array = in process_array_ir() local 89 if (deref_array == NULL) { in process_array_ir() 93 deref_array = (ir_dereference_array *) process_array_ir(mem_ctx, in process_array_ir() 94 deref_array, in process_array_ir() 96 return new(mem_ctx) ir_dereference_array(deref_array, in process_array_ir() 283 ir_dereference_array *deref_array = in handle_rvalue() local 285 if (deref_array != NULL) { in handle_rvalue() 286 *rvalue = process_array_ir(mem_ctx, deref_array, in handle_rvalue()
|
D | ast_array_index.cpp | 78 ir_dereference_array *deref_array = in update_max_array_access() local 81 while (deref_array != NULL) { in update_max_array_access() 82 deref_array_prev = deref_array; in update_max_array_access() 83 deref_array = deref_array->array->as_dereference_array(); in update_max_array_access()
|
D | opt_array_splitting.cpp | 324 ir_dereference_array *deref_array = (*deref)->as_dereference_array(); in split_deref() local 325 if (!deref_array) in split_deref() 328 ir_dereference_variable *deref_var = deref_array->array->as_dereference_variable(); in split_deref() 337 ir_constant *constant = deref_array->array_index->as_constant(); in split_deref() 350 ir_variable *temp = new(entry->mem_ctx) ir_variable(deref_array->type, in split_deref()
|
/external/mesa3d/src/compiler/nir/ |
D | nir_lower_samplers.c | 48 nir_deref_array *deref_array = nir_deref_as_array(tail->child); in calc_sampler_offsets() local 50 assert(deref_array->deref_array_type != nir_deref_array_type_wildcard); in calc_sampler_offsets() 54 instr->texture_index += deref_array->base_offset * *array_elements; in calc_sampler_offsets() 56 if (deref_array->deref_array_type == nir_deref_array_type_indirect) { in calc_sampler_offsets() 59 nir_ssa_for_src(b, deref_array->indirect, 1)); in calc_sampler_offsets() 61 nir_instr_rewrite_src(&instr->instr, &deref_array->indirect, in calc_sampler_offsets()
|
D | nir_lower_io.c | 100 nir_deref_array *deref_array = nir_deref_as_array(tail); in get_io_offset() local 102 nir_ssa_def *vtx = nir_imm_int(b, deref_array->base_offset); in get_io_offset() 103 if (deref_array->deref_array_type == nir_deref_array_type_indirect) { in get_io_offset() 104 vtx = nir_iadd(b, vtx, nir_ssa_for_src(b, deref_array->indirect, 1)); in get_io_offset() 112 nir_deref_array *deref_array = nir_deref_as_array(tail->child); in get_io_offset() local 114 assert(deref_array->deref_array_type == nir_deref_array_type_direct); in get_io_offset() 116 const unsigned total_offset = *component + deref_array->base_offset; in get_io_offset() 130 nir_deref_array *deref_array = nir_deref_as_array(tail); in get_io_offset() local 134 nir_imm_int(b, size * deref_array->base_offset)); in get_io_offset() 136 if (deref_array->deref_array_type == nir_deref_array_type_indirect) { in get_io_offset() [all …]
|
D | nir_lower_atomics.c | 115 nir_deref_array *deref_array = nir_deref_as_array(tail->child); in lower_instr() local 121 offset_const->value.u32[0] += deref_array->base_offset * in lower_instr() 124 if (deref_array->deref_array_type == nir_deref_array_type_indirect) { in lower_instr() 133 nir_src_copy(&mul->src[0].src, &deref_array->indirect, mul); in lower_instr()
|
D | nir_lower_locals_to_regs.c | 152 nir_deref_array *deref_array = nir_deref_as_array(tail); in get_deref_reg_src() local 155 src.reg.base_offset += deref_array->base_offset; in get_deref_reg_src() 175 if (deref_array->deref_array_type == nir_deref_array_type_indirect) { in get_deref_reg_src() 178 nir_src_copy(src.reg.indirect, &deref_array->indirect, in get_deref_reg_src() 184 nir_src_copy(&add->src[1].src, &deref_array->indirect, add); in get_deref_reg_src()
|
D | nir_lower_io_types.c | 94 nir_deref_array *deref_array = nir_deref_as_array(tail); in get_deref_offset() local 97 assert(deref_array->deref_array_type == nir_deref_array_type_direct); in get_deref_offset() 101 offset += size * deref_array->base_offset; in get_deref_offset()
|
D | nir_gather_info.c | 104 nir_deref_array *deref_array = nir_deref_as_array(tail); in get_io_offset() local 106 if (deref_array->deref_array_type == nir_deref_array_type_indirect) { in get_io_offset() 111 deref_array->base_offset; in get_io_offset()
|
D | nir_loop_analyze.c | 647 nir_deref_array *deref_array = nir_deref_as_array(tail); in force_unroll_array_access() local 648 if (deref_array->deref_array_type != nir_deref_array_type_indirect) in force_unroll_array_access() 652 get_loop_var(deref_array->indirect.ssa, state); in force_unroll_array_access()
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_nir_apply_pipeline_layout.c | 141 nir_deref_array *deref_array = nir_deref_as_array(deref->deref.child); in lower_tex_deref() local 143 if (deref_array->deref_array_type == nir_deref_array_type_indirect) { in lower_tex_deref() 145 nir_iadd(b, nir_imm_int(b, deref_array->base_offset), in lower_tex_deref() 146 nir_ssa_for_src(b, deref_array->indirect, 1)); in lower_tex_deref() 170 *const_index += MIN2(deref_array->base_offset, array_size - 1); in lower_tex_deref() 181 nir_deref_array *deref_array = nir_deref_as_array(deref->deref.child); in cleanup_tex_deref() local 183 if (deref_array->deref_array_type != nir_deref_array_type_indirect) in cleanup_tex_deref() 186 nir_instr_rewrite_src(&tex->instr, &deref_array->indirect, NIR_SRC_INIT); in cleanup_tex_deref()
|
/external/mesa3d/src/mesa/program/ |
D | ir_to_mesa.cpp | 1588 ir_dereference_array *deref_array = ir->as_dereference_array(); in get_assignment_lhs() local 1589 if (deref_array) { in get_assignment_lhs() 1590 assert(!deref_array->array->type->is_vector()); in get_assignment_lhs()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_fs_nir.cpp | 1450 const nir_deref_array *deref_array = nir_deref_as_array(tail->child); in get_nir_image_deref() local 1453 const unsigned element_size = type_size_scalar(deref_array->deref.type); in get_nir_image_deref() 1454 const unsigned base = MIN2(deref_array->base_offset, size - 1); in get_nir_image_deref() 1457 if (deref_array->deref_array_type == nir_deref_array_type_indirect) { in get_nir_image_deref() 1468 bld.emit_minmax(tmp, retype(get_nir_src(deref_array->indirect), in get_nir_image_deref()
|
/external/mesa3d/src/amd/common/ |
D | ac_nir_to_llvm.c | 1977 nir_deref_array *deref_array = nir_deref_as_array(tail); in radv_get_deref_offset() local 1981 const_offset += size * deref_array->base_offset; in radv_get_deref_offset() 1982 if (deref_array->deref_array_type == nir_deref_array_type_direct) in radv_get_deref_offset() 1985 assert(deref_array->deref_array_type == nir_deref_array_type_indirect); in radv_get_deref_offset() 1986 index = get_src(ctx, deref_array->indirect); in radv_get_deref_offset()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_glsl_to_tgsi.cpp | 2768 ir_dereference_array *deref_array = ir->as_dereference_array(); in get_assignment_lhs() local 2769 if (deref_array) { in get_assignment_lhs() 2770 assert(!deref_array->array->type->is_vector()); in get_assignment_lhs()
|