/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 | 298 ir_dereference_array *deref_array = (ir_dereference_array *) deref; in setup_buffer_access() local 300 if (deref_array->array->type->is_vector()) { in setup_buffer_access() 310 if (deref_array->array->type->is_64bit()) in setup_buffer_access() 312 } else if (deref_array->array->type->is_matrix() && *row_major) { in setup_buffer_access() 319 if (deref_array->array->type->is_64bit()) in setup_buffer_access() 321 *matrix_type = deref_array->array->type; in setup_buffer_access() 322 } else if (deref_array->type->without_array()->is_interface()) { in setup_buffer_access() 331 deref = deref_array->array->as_dereference(); in setup_buffer_access() 339 is_dereferenced_thing_row_major(deref_array); in setup_buffer_access() 345 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() 300 ir_dereference_array *deref_array = in handle_rvalue() local 302 if (deref_array != NULL) { in handle_rvalue() 303 *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 | 347 ir_dereference_array *deref_array = (*deref)->as_dereference_array(); in split_deref() local 348 if (!deref_array) in split_deref() 351 ir_dereference_variable *deref_var = deref_array->array->as_dereference_variable(); in split_deref() 360 ir_constant *constant = deref_array->array_index->as_constant(); in split_deref() 373 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 | 151 nir_deref_array *deref_array = nir_deref_as_array(tail); in get_deref_reg_src() local 154 src.reg.base_offset += deref_array->base_offset; in get_deref_reg_src() 174 if (deref_array->deref_array_type == nir_deref_array_type_indirect) { in get_deref_reg_src() 177 nir_src_copy(src.reg.indirect, &deref_array->indirect, in get_deref_reg_src() 183 nir_src_copy(&add->src[1].src, &deref_array->indirect, add); in get_deref_reg_src()
|
D | nir_lower_io_types.c | 90 nir_deref_array *deref_array = nir_deref_as_array(tail); in get_deref_offset() local 93 assert(deref_array->deref_array_type == nir_deref_array_type_direct); in get_deref_offset() 97 offset += size * deref_array->base_offset; in get_deref_offset()
|
D | nir_lower_io_arrays_to_elements.c | 55 nir_deref_array *deref_array = nir_deref_as_array(tail); in get_io_offset() local 56 assert(deref_array->deref_array_type != nir_deref_array_type_indirect); in get_io_offset() 59 offset += size * deref_array->base_offset; in get_io_offset() 67 *element_index += num_elements * deref_array->base_offset; in get_io_offset()
|
D | nir_serialize.c | 373 const nir_deref_array *deref_array = nir_deref_as_array(d); in write_deref_chain() local 374 blob_write_uint32(ctx->blob, deref_array->deref_array_type); in write_deref_chain() 375 blob_write_uint32(ctx->blob, deref_array->base_offset); in write_deref_chain() 376 if (deref_array->deref_array_type == nir_deref_array_type_indirect) in write_deref_chain() 377 write_src(ctx, &deref_array->indirect); in write_deref_chain() 407 nir_deref_array *deref_array = nir_deref_array_create(tail); in read_deref_chain() local 408 deref_array->deref_array_type = blob_read_uint32(ctx->blob); in read_deref_chain() 409 deref_array->base_offset = blob_read_uint32(ctx->blob); in read_deref_chain() 410 if (deref_array->deref_array_type == nir_deref_array_type_indirect) in read_deref_chain() 411 read_src(ctx, &deref_array->indirect, mem_ctx); in read_deref_chain() [all …]
|
D | nir_gather_info.c | 114 nir_deref_array *deref_array = nir_deref_as_array(tail); in get_io_offset() local 116 if (deref_array->deref_array_type == nir_deref_array_type_indirect) { in get_io_offset() 121 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 | 169 nir_deref_array *deref_array = nir_deref_as_array(deref->deref.child); in lower_tex_deref() local 171 if (deref_array->deref_array_type == nir_deref_array_type_indirect) { in lower_tex_deref() 182 nir_iadd(b, nir_imm_int(b, deref_array->base_offset), in lower_tex_deref() 183 nir_ssa_for_src(b, deref_array->indirect, 1)); in lower_tex_deref() 190 *const_index += MIN2(deref_array->base_offset, array_size - 1); in lower_tex_deref() 201 nir_deref_array *deref_array = nir_deref_as_array(deref->deref.child); in cleanup_tex_deref() local 203 if (deref_array->deref_array_type != nir_deref_array_type_indirect) in cleanup_tex_deref() 206 nir_instr_rewrite_src(&tex->instr, &deref_array->indirect, NIR_SRC_INIT); in cleanup_tex_deref()
|
D | anv_nir_lower_ycbcr_textures.c | 343 nir_deref_array *deref_array = nir_deref_as_array(tex->texture->deref.child); in try_lower_tex_ycbcr() local 344 if (deref_array->deref_array_type != nir_deref_array_type_direct) in try_lower_tex_ycbcr() 348 texture_index += MIN2(deref_array->base_offset, hw_binding_size - 1); in try_lower_tex_ycbcr()
|
/external/mesa3d/src/amd/common/ |
D | ac_nir_to_llvm.c | 2706 nir_deref_array *deref_array = nir_deref_as_array(tail); in get_deref_offset() local 2708 *vertex_index_out = deref_array->base_offset; in get_deref_offset() 2711 LLVMValueRef vtx = LLVMConstInt(ctx->ac.i32, deref_array->base_offset, false); in get_deref_offset() 2712 if (deref_array->deref_array_type == nir_deref_array_type_indirect) { in get_deref_offset() 2713 vtx = LLVMBuildAdd(ctx->ac.builder, vtx, get_src(ctx, deref_array->indirect), ""); in get_deref_offset() 2722 nir_deref_array *deref_array = nir_deref_as_array(tail->child); in get_deref_offset() local 2724 assert(deref_array->deref_array_type == nir_deref_array_type_direct); in get_deref_offset() 2726 const_offset = deref_array->base_offset; in get_deref_offset() 2735 nir_deref_array *deref_array = nir_deref_as_array(tail); in get_deref_offset() local 2739 const_offset += size * deref_array->base_offset; in get_deref_offset() [all …]
|
/external/mesa3d/src/mesa/program/ |
D | ir_to_mesa.cpp | 1626 ir_dereference_array *deref_array = ir->as_dereference_array(); in get_assignment_lhs() local 1627 if (deref_array) { in get_assignment_lhs() 1628 assert(!deref_array->array->type->is_vector()); in get_assignment_lhs()
|
/external/mesa3d/src/intel/compiler/ |
D | brw_fs_nir.cpp | 1607 const nir_deref_array *deref_array = nir_deref_as_array(tail->child); in get_nir_image_deref() local 1610 const unsigned element_size = type_size_scalar(deref_array->deref.type); in get_nir_image_deref() 1611 const unsigned base = MIN2(deref_array->base_offset, size - 1); in get_nir_image_deref() 1614 if (deref_array->deref_array_type == nir_deref_array_type_indirect) { in get_nir_image_deref() 1625 bld.emit_minmax(tmp, retype(get_nir_src(deref_array->indirect), in get_nir_image_deref()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_glsl_to_tgsi.cpp | 2760 ir_dereference_array *deref_array = ir->as_dereference_array(); in get_assignment_lhs() local 2761 if (deref_array) { in get_assignment_lhs() 2762 assert(!deref_array->array->type->is_vector()); in get_assignment_lhs()
|