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.c421 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
424 …nir_intrinsic_instr *vertex_id = nir_intrinsic_instr_create(vs_b->shader, nir_intrinsic_load_verte… in radv_meta_gen_rect_vertices_comp2()
426 nir_builder_instr_insert(vs_b, &vertex_id->instr); in radv_meta_gen_rect_vertices_comp2()
434 nir_ssa_def *c0cmp = nir_ine(vs_b, &vertex_id->dest.ssa, in radv_meta_gen_rect_vertices_comp2()
435 nir_imm_int(vs_b, 2)); in radv_meta_gen_rect_vertices_comp2()
436 nir_ssa_def *c1cmp = nir_ine(vs_b, &vertex_id->dest.ssa, in radv_meta_gen_rect_vertices_comp2()
437 nir_imm_int(vs_b, 1)); in radv_meta_gen_rect_vertices_comp2()
440 comp[0] = nir_bcsel(vs_b, c0cmp, in radv_meta_gen_rect_vertices_comp2()
441 nir_imm_float(vs_b, -1.0), in radv_meta_gen_rect_vertices_comp2()
442 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_system_value(&vs_b, nir_intrinsic_load_instance_id, 0); in build_color_shaders()
85 nir_ssa_def *base_instance = nir_load_system_value(&vs_b, nir_intrinsic_load_base_instance, 0); 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.h201 nir_ssa_def *radv_meta_gen_rect_vertices(nir_builder *vs_b);
202 nir_ssa_def *radv_meta_gen_rect_vertices_comp2(nir_builder *vs_b, nir_ssa_def *comp2);