Home
last modified time | relevance | path

Searched refs:desc_load (Results 1 – 2 of 2) sorted by relevance

/external/mesa3d/src/intel/vulkan/
Danv_nir_apply_pipeline_layout.c533 nir_intrinsic_instr *desc_load = in build_ssbo_descriptor_load() local
535 desc_load->src[0] = nir_src_for_ssa(desc_buffer_index); in build_ssbo_descriptor_load()
536 desc_load->src[1] = nir_src_for_ssa(desc_offset); in build_ssbo_descriptor_load()
537 nir_intrinsic_set_align(desc_load, 8, 0); in build_ssbo_descriptor_load()
538 desc_load->num_components = 4; in build_ssbo_descriptor_load()
539 nir_ssa_dest_init(&desc_load->instr, &desc_load->dest, 4, 32, NULL); in build_ssbo_descriptor_load()
540 nir_builder_instr_insert(b, &desc_load->instr); in build_ssbo_descriptor_load()
541 nir_intrinsic_set_range_base(desc_load, 0); in build_ssbo_descriptor_load()
542 nir_intrinsic_set_range(desc_load, ~0); in build_ssbo_descriptor_load()
544 return &desc_load->dest.ssa; in build_ssbo_descriptor_load()
[all …]
/external/mesa3d/src/compiler/spirv/
Dvtn_variables.c292 nir_intrinsic_instr *desc_load = in vtn_descriptor_load() local
295 desc_load->src[0] = nir_src_for_ssa(desc_index); in vtn_descriptor_load()
296 nir_intrinsic_set_desc_type(desc_load, vk_desc_type_for_mode(b, mode)); in vtn_descriptor_load()
299 nir_ssa_dest_init(&desc_load->instr, &desc_load->dest, in vtn_descriptor_load()
302 desc_load->num_components = desc_load->dest.ssa.num_components; in vtn_descriptor_load()
303 nir_builder_instr_insert(&b->nb, &desc_load->instr); in vtn_descriptor_load()
305 return &desc_load->dest.ssa; in vtn_descriptor_load()