Lines Matching defs:instr

228             nir_ssa_dest_init(&mov->instr, &mov->dest.dest, 1, 32, NULL);
232 nir_builder_instr_insert(b, &mov->instr);
250 nir_alu_instr *instr = nir_alu_instr_create(b->shader, op);
254 instr->src[i].src = nir_src_for_ssa(src[i]);
256 instr->dest = dest;
257 nir_builder_instr_insert(b, &instr->instr);
276 nir_builder_instr_insert(b, &mov->instr);
514 nir_tex_instr *instr;
550 instr = nir_tex_instr_create(b->shader, num_srcs);
551 instr->op = op;
552 instr->dest_type = nir_type_float32;
553 instr->is_shadow = prog_inst->TexShadow;
556 instr->sampler_dim = _mesa_texture_index_to_sampler_dim(prog_inst->TexSrcTarget, &is_array);
558 instr->coord_components =
559 glsl_get_sampler_dim_coordinate_components(instr->sampler_dim);
564 glsl_sampler_type(instr->sampler_dim, instr->is_shadow, false, GLSL_TYPE_FLOAT);
577 instr->src[src_number].src = nir_src_for_ssa(&deref->dest.ssa);
578 instr->src[src_number].src_type = nir_tex_src_texture_deref;
580 instr->src[src_number].src = nir_src_for_ssa(&deref->dest.ssa);
581 instr->src[src_number].src_type = nir_tex_src_sampler_deref;
584 instr->src[src_number].src =
586 instr->coord_components));
587 instr->src[src_number].src_type = nir_tex_src_coord;
591 instr->src[src_number].src = nir_src_for_ssa(ptn_channel(b, src[0], W));
592 instr->src[src_number].src_type = nir_tex_src_projector;
597 instr->src[src_number].src = nir_src_for_ssa(ptn_channel(b, src[0], W));
598 instr->src[src_number].src_type = nir_tex_src_bias;
603 instr->src[src_number].src = nir_src_for_ssa(ptn_channel(b, src[0], W));
604 instr->src[src_number].src_type = nir_tex_src_lod;
608 if (instr->is_shadow) {
609 if (instr->coord_components < 3)
610 instr->src[src_number].src = nir_src_for_ssa(ptn_channel(b, src[0], Z));
612 instr->src[src_number].src = nir_src_for_ssa(ptn_channel(b, src[0], W));
614 instr->src[src_number].src_type = nir_tex_src_comparator;
620 nir_ssa_dest_init(&instr->instr, &instr->dest, 4, 32, NULL);
621 nir_builder_instr_insert(b, &instr->instr);
624 ptn_move_dest(b, dest, &instr->dest.ssa);