Home
last modified time | relevance | path

Searched refs:nir_var_shader_in (Results 1 – 25 of 117) sorted by relevance

12345

/third_party/mesa3d/src/gallium/drivers/lima/standalone/
Dlima_compiler_cmdline.c143 nir_assign_var_locations(nir, nir_var_shader_in, &nir->num_inputs, in load_glsl()
155 sort_varyings(nir, nir_var_shader_in); in load_glsl()
156 nir_assign_var_locations(nir, nir_var_shader_in, &nir->num_inputs, in load_glsl()
158 fixup_varying_slots(nir, nir_var_shader_in); in load_glsl()
/third_party/mesa3d/src/gallium/drivers/freedreno/ir3/
Dir3_cmdline.c151 nir_assign_var_locations(nir, nir_var_shader_in, &nir->num_inputs, in load_glsl()
163 sort_varyings(nir, nir_var_shader_in); in load_glsl()
164 nir_assign_var_locations(nir, nir_var_shader_in, &nir->num_inputs, in load_glsl()
166 fixup_varying_slots(nir, nir_var_shader_in); in load_glsl()
185 nir_var_shader_in | nir_var_shader_out | nir_var_uniform, in load_glsl()
401 NIR_PASS_V(nir, nir_lower_io, nir_var_shader_in | nir_var_shader_out, in main()
/third_party/mesa3d/src/asahi/compiler/
Dcmdline.c113 nir_assign_var_locations(nir[i], nir_var_shader_in, &nir[i]->num_inputs, in compile_shader()
120 sort_varyings(nir[i], nir_var_shader_in); in compile_shader()
121 nir_assign_var_locations(nir[i], nir_var_shader_in, &nir[i]->num_inputs, in compile_shader()
123 fixup_varying_slots(nir[i], nir_var_shader_in); in compile_shader()
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_two_sided_color.c54 nir_variable *var = nir_variable_create(shader, nir_var_shader_in, in create_input()
70 nir_find_variable_with_location(shader, nir_var_shader_in, in create_face_input()
74 var = nir_variable_create(shader, nir_var_shader_in, in create_face_input()
156 if (var->data.mode != nir_var_shader_in) in nir_lower_two_sided_color_block()
Dnir_lower_io_to_vector.c129 a->data.mode == nir_var_shader_in && in variables_can_merge()
190 var->data.mode == nir_var_shader_in; in get_flat_type()
380 new_var->data.mode == nir_var_shader_in; in build_array_deref_of_new_var_flat()
406 assert(!(modes & ~(nir_var_shader_in | nir_var_shader_out))); in nir_lower_io_to_vector_impl()
419 if (modes & nir_var_shader_in) { in nir_lower_io_to_vector_impl()
426 if (!create_new_io_vars(shader, nir_var_shader_in, in nir_lower_io_to_vector_impl()
428 modes &= ~nir_var_shader_in; in nir_lower_io_to_vector_impl()
475 nir_variable *new_var = old_var->data.mode == nir_var_shader_in ? in nir_lower_io_to_vector_impl()
478 bool flat = old_var->data.mode == nir_var_shader_in ? in nir_lower_io_to_vector_impl()
Dnir_lower_input_attachments.c34 nir_find_variable_with_location(b->shader, nir_var_shader_in, in load_frag_coord()
37 pos = nir_variable_create(b->shader, nir_var_shader_in, in load_frag_coord()
66 nir_find_variable_with_location(b->shader, nir_var_shader_in, slot); in load_layer_id()
69 layer_id = nir_variable_create(b->shader, nir_var_shader_in, in load_layer_id()
Dnir_lower_texcoord_replace.c78 nir_var_shader_in, in nir_lower_texcoord_replace_impl()
81 pntc = nir_variable_create(b.shader, nir_var_shader_in, in nir_lower_texcoord_replace_impl()
113 if (var->data.mode != nir_var_shader_in || in nir_lower_texcoord_replace_impl()
Dnir_lower_io_to_scalar.c113 (mask & nir_var_shader_in)) { in nir_lower_io_to_scalar_instr()
188 if (var->data.mode == nir_var_shader_in) { in lower_load_to_scalar_early()
330 mode == nir_var_shader_in) && in nir_lower_io_to_scalar_early_instr()
352 if ((state->mask & nir_var_shader_in && mode == nir_var_shader_in) || in nir_lower_io_to_scalar_early_instr()
Dnir_lower_io_arrays_to_elements.c350 if ((mask & nir_var_shader_in && mode == nir_var_shader_in) || in lower_io_arrays_to_elements()
376 lower_io_arrays_to_elements(shader, nir_var_shader_in, in nir_lower_io_arrays_to_elements_no_indirects()
411 create_indirects_mask(consumer, indirects, nir_var_shader_in); in nir_lower_io_arrays_to_elements()
416 lower_io_arrays_to_elements(consumer, nir_var_shader_in, in nir_lower_io_arrays_to_elements()
Dnir_lower_mediump.c45 *out_mode = nir_var_shader_in; in get_io_intrinsic()
46 return modes & nir_var_shader_in ? intr : NULL; in get_io_intrinsic()
85 if (mode == nir_var_shader_in) { in nir_recompute_io_bases()
110 if (mode == nir_var_shader_in) { in nir_recompute_io_bases()
163 mode == nir_var_shader_in) && in nir_lower_mediump_io()
286 mode == nir_var_shader_in) { in nir_force_mediump_io()
Dnir_lower_bitmap.c59 nir_find_variable_with_location(shader, nir_var_shader_in, in get_texcoord()
64 nir_var_shader_in, in get_texcoord()
Dnir_linking_helpers.c47 assert(var->data.mode == nir_var_shader_in || in get_variable_io_mask()
141 assert(mode == nir_var_shader_in || mode == nir_var_shader_out); in nir_remove_unused_io_vars()
225 progress = nir_remove_unused_io_vars(consumer, nir_var_shader_in, written, in nir_remove_unused_varyings()
569 if (!nir_deref_mode_is(deref, nir_var_shader_in)) in gather_varying_component_info()
889 remap_slots_and_components(consumer, nir_var_shader_in, remap, in compact_components()
922 get_unmoveable_components_masks(consumer, nir_var_shader_in, in nir_compact_varyings()
1030 if (!nir_deref_mode_is(in_deref, nir_var_shader_in)) in replace_varying_input_by_constant_load()
1082 if (!nir_deref_mode_is(in_deref, nir_var_shader_in)) in replace_duplicate_input()
1222 if (!nir_deref_mode_is(in_deref, nir_var_shader_in)) in replace_varying_input_by_uniform_load()
1303 nir_var_shader_in, producer_var->data.location); in nir_link_varying_precision()
[all …]
Dnir_lower_sysvals_to_varyings.c45 var->data.mode = nir_var_shader_in; \ in nir_lower_sysvals_to_varyings()
/third_party/mesa3d/src/panfrost/bifrost/
Dcmdline.c154 nir_assign_var_locations(nir[i], nir_var_shader_in, &nir[i]->num_inputs, in compile_shader()
161 sort_varyings(nir[i], nir_var_shader_in); in compile_shader()
162 nir_assign_var_locations(nir[i], nir_var_shader_in, &nir[i]->num_inputs, in compile_shader()
164 fixup_varying_slots(nir[i], nir_var_shader_in); in compile_shader()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_glsl_to_nir.cpp390 nir_variable_mode mask = nir_var_shader_in | nir_var_shader_out; in st_nir_preprocess()
568 nir_var_shader_in | nir_var_shader_out | nir_var_function_temp; in st_glsl_to_nir_post_opts()
597 NIR_PASS_V(consumer, nir_lower_io_to_vector, nir_var_shader_in); in st_nir_vectorize_io()
626 NIR_PASS_V(consumer, nir_lower_io_to_scalar_early, nir_var_shader_in); in st_nir_link_shaders()
638 NIR_PASS_V(consumer, nir_remove_dead_variables, nir_var_shader_in, NULL); in st_nir_link_shaders()
653 NIR_PASS_V(consumer, nir_remove_dead_variables, nir_var_shader_in, in st_nir_link_shaders()
954 nir_assign_io_var_locations(nir, nir_var_shader_in, in st_nir_assign_varying_locations()
957 st_nir_fixup_varying_slots(st, nir, nir_var_shader_in); in st_nir_assign_varying_locations()
964 nir_assign_io_var_locations(nir, nir_var_shader_in, in st_nir_assign_varying_locations()
967 st_nir_fixup_varying_slots(st, nir, nir_var_shader_in); in st_nir_assign_varying_locations()
Dst_nir_builtins.c50 (stage > MESA_SHADER_VERTEX ? nir_var_shader_in : 0) | in st_nir_finish_builtin_shader()
116 in = nir_variable_create(b.shader, nir_var_shader_in, vec4, var_name); in st_nir_make_passthrough_shader()
/third_party/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_lower_input_attachments.c32 nir_find_variable_with_location(b->shader, nir_var_shader_in, in load_frag_coord()
35 pos = nir_variable_create(b->shader, nir_var_shader_in, in load_frag_coord()
/third_party/mesa3d/src/intel/compiler/
Dbrw_nir.c174 nir_lower_io(nir, nir_var_shader_in, type_size_vec4, in brw_nir_lower_vs_inputs()
180 nir_io_add_const_offset_to_base(nir, nir_var_shader_in); in brw_nir_lower_vs_inputs()
304 nir_lower_io(nir, nir_var_shader_in, type_size_vec4, in brw_nir_lower_vue_inputs()
310 nir_io_add_const_offset_to_base(nir, nir_var_shader_in); in brw_nir_lower_vue_inputs()
355 nir_lower_io(nir, nir_var_shader_in, type_size_vec4, in brw_nir_lower_tes_inputs()
361 nir_io_add_const_offset_to_base(nir, nir_var_shader_in); in brw_nir_lower_tes_inputs()
450 nir_lower_io(nir, nir_var_shader_in, type_size_vec4, lower_io_options); in brw_nir_lower_fs_inputs()
462 nir_io_add_const_offset_to_base(nir, nir_var_shader_in); in brw_nir_lower_fs_inputs()
890 NIR_PASS_V(consumer, nir_lower_io_to_scalar_early, nir_var_shader_in); in brw_nir_link_shaders()
899 NIR_PASS_V(consumer, nir_remove_dead_variables, nir_var_shader_in, NULL); in brw_nir_link_shaders()
[all …]
Dbrw_shader.h142 indirect_mask |= nir_var_shader_in; in brw_nir_no_indirect_mask()
147 indirect_mask |= nir_var_shader_in; in brw_nir_no_indirect_mask()
/third_party/mesa3d/src/gallium/drivers/lima/
Dlima_program.c64 .force_indirect_unrolling = (nir_var_shader_in | nir_var_shader_out | nir_var_function_temp),
84 .force_indirect_unrolling = (nir_var_shader_in | nir_var_shader_out | nir_var_function_temp),
114 nir_var_shader_in | nir_var_shader_out, type_size, 0); in lima_program_optimize_vs_nir()
118 nir_var_shader_in|nir_var_shader_out); in lima_program_optimize_vs_nir()
216 nir_var_shader_in | nir_var_shader_out, type_size, 0); in lima_program_optimize_fs_nir()
/third_party/mesa3d/src/compiler/nir/tests/
Dvars_tests.cpp373 nir_variable *in = create_int(nir_var_shader_in, "in"); in TEST_F()
1818 nir_variable **in = create_many_int(nir_var_shader_in, "in", 4); in TEST_F()
1839 nir_variable **in = create_many_int(nir_var_shader_in, "in", 4); in TEST_F()
1884 nir_variable **in = create_many_int(nir_var_shader_in, "in", 4); in TEST_F()
1906 nir_variable **in = create_many_int(nir_var_shader_in, "in", 6); in TEST_F()
1928 nir_variable **in = create_many_int(nir_var_shader_in, "in", 2); in TEST_F()
1951 nir_variable **in = create_many_int(nir_var_shader_in, "in", 4); in TEST_F()
1977 nir_variable **in = create_many_int(nir_var_shader_in, "in", 4); in TEST_F()
1980 nir_variable *ind = create_int(nir_var_shader_in, "ind"); in TEST_F()
2002 nir_variable **in = create_many_int(nir_var_shader_in, "in", 4); in TEST_F()
[all …]
/third_party/mesa3d/src/amd/common/
Dac_nir.c51 indirect_mask |= nir_var_shader_in; in ac_nir_lower_indirect_derefs()
/third_party/mesa3d/src/compiler/glsl/
Dgl_nir_linker.c84 (var->data.mode == nir_var_shader_in && in inout_has_same_location()
326 case nir_var_shader_in: in add_vars_with_modes()
375 var->data.mode == nir_var_shader_in) || in add_vars_with_modes()
409 nir, nir_var_shader_in | nir_var_system_value, in add_interface_variables()
/third_party/mesa3d/src/gallium/auxiliary/nir/
Dnir_draw_helpers.c57 nir_variable *pos = nir_variable_create(b->shader, nir_var_shader_in, in load_frag_coord()
223 nir_variable *line_width = nir_variable_create(shader, nir_var_shader_in, in nir_lower_aaline_fs()
345 nir_variable *aapoint_input = nir_variable_create(shader, nir_var_shader_in, in nir_lower_aapoint_fs()
/third_party/mesa3d/src/panfrost/midgard/
Dmidgard_compile.h100 … .force_indirect_unrolling = (nir_var_shader_in | nir_var_shader_out | nir_var_function_temp),

12345