Home
last modified time | relevance | path

Searched refs:vs_b (Results 1 – 3 of 3) sorted by relevance

/external/mesa3d/src/amd/vulkan/
Dradv_meta.c505 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()
[all …]
Dradv_meta_clear.c43 nir_builder vs_b; in build_color_shaders() local
46 nir_builder_init_simple_shader(&vs_b, NULL, MESA_SHADER_VERTEX, NULL); in build_color_shaders()
49 vs_b.shader->info.name = ralloc_strdup(vs_b.shader, "meta_clear_color_vs"); in build_color_shaders()
56 nir_variable_create(vs_b.shader, nir_var_shader_out, position_type, in build_color_shaders()
75 nir_ssa_def *outvec = radv_meta_gen_rect_vertices(&vs_b); in build_color_shaders()
76 nir_store_var(&vs_b, vs_out_pos, outvec, 0xf); in build_color_shaders()
80 nir_variable_create(vs_b.shader, nir_var_shader_out, layer_type, in build_color_shaders()
84 nir_ssa_def *inst_id = nir_load_instance_id(&vs_b); in build_color_shaders()
85 nir_ssa_def *base_instance = nir_load_base_instance(&vs_b); in build_color_shaders()
87 nir_ssa_def *layer_id = nir_iadd(&vs_b, inst_id, base_instance); in build_color_shaders()
[all …]
Dradv_meta.h299 nir_ssa_def *radv_meta_gen_rect_vertices(nir_builder *vs_b);
300 nir_ssa_def *radv_meta_gen_rect_vertices_comp2(nir_builder *vs_b, nir_ssa_def *comp2);