Lines Matching refs:tex_add
657 nir_tex_instr *tex_add = nir_tex_instr_create(b->shader, 3); in radv_meta_build_resolve_shader_core() local
658 tex_add->sampler_dim = GLSL_SAMPLER_DIM_MS; in radv_meta_build_resolve_shader_core()
659 tex_add->op = nir_texop_txf_ms; in radv_meta_build_resolve_shader_core()
660 tex_add->src[0].src_type = nir_tex_src_coord; in radv_meta_build_resolve_shader_core()
661 tex_add->src[0].src = nir_src_for_ssa(img_coord); in radv_meta_build_resolve_shader_core()
662 tex_add->src[1].src_type = nir_tex_src_ms_index; in radv_meta_build_resolve_shader_core()
663 tex_add->src[1].src = nir_src_for_ssa(nir_imm_int(b, i)); in radv_meta_build_resolve_shader_core()
664 tex_add->src[2].src_type = nir_tex_src_texture_deref; in radv_meta_build_resolve_shader_core()
665 tex_add->src[2].src = nir_src_for_ssa(input_img_deref); in radv_meta_build_resolve_shader_core()
666 tex_add->dest_type = nir_type_float32; in radv_meta_build_resolve_shader_core()
667 tex_add->is_array = false; in radv_meta_build_resolve_shader_core()
668 tex_add->coord_components = 2; in radv_meta_build_resolve_shader_core()
670 nir_ssa_dest_init(&tex_add->instr, &tex_add->dest, 4, 32, "tex"); in radv_meta_build_resolve_shader_core()
671 nir_builder_instr_insert(b, &tex_add->instr); in radv_meta_build_resolve_shader_core()
673 tmp = nir_fadd(b, tmp, &tex_add->dest.ssa); in radv_meta_build_resolve_shader_core()