Lines Matching refs:tex_add
800 nir_tex_instr *tex_add = nir_tex_instr_create(b->shader, 3);
801 tex_add->sampler_dim = GLSL_SAMPLER_DIM_MS;
802 tex_add->op = nir_texop_txf_ms;
803 tex_add->src[0].src_type = nir_tex_src_coord;
804 tex_add->src[0].src = nir_src_for_ssa(img_coord);
805 tex_add->src[1].src_type = nir_tex_src_ms_index;
806 tex_add->src[1].src = nir_src_for_ssa(nir_imm_int(b, i));
807 tex_add->src[2].src_type = nir_tex_src_texture_deref;
808 tex_add->src[2].src = nir_src_for_ssa(input_img_deref);
809 tex_add->dest_type = nir_type_float32;
810 tex_add->is_array = false;
811 tex_add->coord_components = 2;
813 nir_ssa_dest_init(&tex_add->instr, &tex_add->dest, 4, 32, "tex");
814 nir_builder_instr_insert(b, &tex_add->instr);
816 tmp = nir_fadd(b, tmp, &tex_add->dest.ssa);