Lines Matching refs:vs_b
505 nir_ssa_def *radv_meta_gen_rect_vertices_comp2(nir_builder *vs_b, nir_ssa_def *comp2) in radv_meta_gen_rect_vertices_comp2() argument
508 …nir_intrinsic_instr *vertex_id = nir_intrinsic_instr_create(vs_b->shader, nir_intrinsic_load_verte… in radv_meta_gen_rect_vertices_comp2()
510 nir_builder_instr_insert(vs_b, &vertex_id->instr); in radv_meta_gen_rect_vertices_comp2()
518 nir_ssa_def *c0cmp = nir_ine(vs_b, &vertex_id->dest.ssa, in radv_meta_gen_rect_vertices_comp2()
519 nir_imm_int(vs_b, 2)); in radv_meta_gen_rect_vertices_comp2()
520 nir_ssa_def *c1cmp = nir_ine(vs_b, &vertex_id->dest.ssa, in radv_meta_gen_rect_vertices_comp2()
521 nir_imm_int(vs_b, 1)); in radv_meta_gen_rect_vertices_comp2()
524 comp[0] = nir_bcsel(vs_b, c0cmp, in radv_meta_gen_rect_vertices_comp2()
525 nir_imm_float(vs_b, -1.0), in radv_meta_gen_rect_vertices_comp2()
526 nir_imm_float(vs_b, 1.0)); in radv_meta_gen_rect_vertices_comp2()
528 comp[1] = nir_bcsel(vs_b, c1cmp, in radv_meta_gen_rect_vertices_comp2()
529 nir_imm_float(vs_b, -1.0), in radv_meta_gen_rect_vertices_comp2()
530 nir_imm_float(vs_b, 1.0)); in radv_meta_gen_rect_vertices_comp2()
532 comp[3] = nir_imm_float(vs_b, 1.0); in radv_meta_gen_rect_vertices_comp2()
533 nir_ssa_def *outvec = nir_vec(vs_b, comp, 4); in radv_meta_gen_rect_vertices_comp2()
538 nir_ssa_def *radv_meta_gen_rect_vertices(nir_builder *vs_b) in radv_meta_gen_rect_vertices() argument
540 return radv_meta_gen_rect_vertices_comp2(vs_b, nir_imm_float(vs_b, 0.0)); in radv_meta_gen_rect_vertices()