Searched refs:deref_instr (Results 1 – 4 of 4) sorted by relevance
/external/mesa3d/src/gallium/frontends/lavapipe/ |
D | lvp_lower_vulkan_resource.c | 113 nir_deref_instr *deref_instr = nir_src_as_deref(tex->src[deref_src_idx].src); in lower_vri_instr_tex_deref() local 114 nir_variable *var = nir_deref_instr_get_variable(deref_instr); in lower_vri_instr_tex_deref() 131 if (deref_instr->deref_type == nir_deref_type_array) { in lower_vri_instr_tex_deref() 132 if (nir_src_is_const(deref_instr->arr.index)) in lower_vri_instr_tex_deref() 133 value += nir_src_as_uint(deref_instr->arr.index); in lower_vri_instr_tex_deref() 136 nir_tex_instr_add_src(tex, nir_tex_src_sampler_offset, deref_instr->arr.index); in lower_vri_instr_tex_deref() 138 nir_tex_instr_add_src(tex, nir_tex_src_texture_offset, deref_instr->arr.index); in lower_vri_instr_tex_deref()
|
/external/mesa3d/src/compiler/nir/ |
D | nir_opt_dce.c | 55 nir_deref_instr *deref_instr; in init_instr() local 78 deref_instr = nir_instr_as_deref(instr); in init_instr() 79 if (!deref_instr->dest.is_ssa) in init_instr()
|
/external/mesa3d/src/amd/llvm/ |
D | ac_nir_to_llvm.c | 61 static LLVMValueRef get_sampler_desc_index(struct ac_nir_context *ctx, nir_deref_instr *deref_instr, 64 static LLVMValueRef get_sampler_desc(struct ac_nir_context *ctx, nir_deref_instr *deref_instr, 2263 nir_deref_instr *deref_instr = instr->src[0].ssa->parent_instr->type == nir_instr_type_deref in get_image_descriptor() local 2267 return get_sampler_desc(ctx, deref_instr, desc_type, &instr->instr, dynamic_index, true, write); in get_image_descriptor() 2379 nir_deref_instr *deref_instr = NULL; in enter_waterfall_image() local 2382 deref_instr = nir_instr_as_deref(instr->src[0].ssa->parent_instr); in enter_waterfall_image() 2384 LLVMValueRef value = get_sampler_desc_index(ctx, deref_instr, &instr->instr, true); in enter_waterfall_image() 3854 nir_deref_instr *deref_instr, in get_sampler_desc_internal() argument 3863 if (!deref_instr) { in get_sampler_desc_internal() 3883 while (deref_instr->deref_type != nir_deref_type_var) { in get_sampler_desc_internal() [all …]
|
/external/mesa3d/src/amd/compiler/ |
D | aco_instruction_selection.cpp | 5434 Temp get_sampler_desc(isel_context *ctx, nir_deref_instr *deref_instr, in get_sampler_desc() argument 5450 if (!deref_instr) { in get_sampler_desc() 5455 while(deref_instr->deref_type != nir_deref_type_var) { in get_sampler_desc() 5456 unsigned array_size = glsl_get_aoa_size(deref_instr->type); in get_sampler_desc() 5460 assert(deref_instr->deref_type == nir_deref_type_array); in get_sampler_desc() 5461 nir_const_value *const_value = nir_src_as_const_value(deref_instr->arr.index); in get_sampler_desc() 5465 Temp indirect = get_ssa_temp(ctx, deref_instr->arr.index.ssa); in get_sampler_desc() 5480 deref_instr = nir_src_as_deref(deref_instr->parent); in get_sampler_desc() 5482 descriptor_set = deref_instr->var->data.descriptor_set; in get_sampler_desc() 5483 base_index = deref_instr->var->data.binding; in get_sampler_desc() [all …]
|