/third_party/mesa3d/src/gallium/drivers/freedreno/ir3/ |
D | ir3_cmdline.c | 151 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() 402 NIR_PASS_V(nir, nir_lower_io, nir_var_shader_in | nir_var_shader_out, in main()
|
/third_party/mesa3d/src/gallium/drivers/lima/standalone/ |
D | lima_compiler_cmdline.c | 143 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/imagination/rogue/ |
D | rogue_nir.c | 95 nir_var_shader_in | nir_var_shader_out, in rogue_nir_passes() 100 NIR_PASS_V(nir, nir_lower_io_to_scalar, nir_var_shader_in); in rogue_nir_passes() 174 nir_var_shader_in, in rogue_nir_passes()
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_lower_two_sided_color.c | 54 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()
|
D | nir_lower_io_to_vector.c | 129 a->data.mode == nir_var_shader_in && in variables_can_merge() 190 var->data.mode == nir_var_shader_in; in get_flat_type() 381 new_var->data.mode == nir_var_shader_in; in build_array_deref_of_new_var_flat() 407 assert(!(modes & ~(nir_var_shader_in | nir_var_shader_out))); in nir_lower_io_to_vector_impl() 420 if (modes & nir_var_shader_in) { in nir_lower_io_to_vector_impl() 427 if (!create_new_io_vars(shader, nir_var_shader_in, in nir_lower_io_to_vector_impl() 429 modes &= ~nir_var_shader_in; in nir_lower_io_to_vector_impl() 476 nir_variable *new_var = old_var->data.mode == nir_var_shader_in ? in nir_lower_io_to_vector_impl() 479 bool flat = old_var->data.mode == nir_var_shader_in ? in nir_lower_io_to_vector_impl()
|
D | nir_lower_input_attachments.c | 34 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()
|
D | nir_lower_texcoord_replace.c | 78 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()
|
D | nir_lower_io_arrays_to_elements.c | 350 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()
|
D | nir_lower_bitmap.c | 59 nir_find_variable_with_location(shader, nir_var_shader_in, in get_texcoord() 64 nir_var_shader_in, in get_texcoord()
|
D | nir_lower_mediump.c | 45 *out_mode = nir_var_shader_in; in get_io_intrinsic() 46 return modes & nir_var_shader_in ? intr : NULL; in get_io_intrinsic() 87 if (mode == nir_var_shader_in) { in nir_recompute_io_bases() 112 if (mode == nir_var_shader_in) { in nir_recompute_io_bases() 165 mode == nir_var_shader_in) && in nir_lower_mediump_io() 288 mode == nir_var_shader_in) { in nir_force_mediump_io()
|
D | nir_linking_helpers.c | 47 assert(var->data.mode == nir_var_shader_in || in get_variable_io_mask() 142 assert(mode == nir_var_shader_in || mode == nir_var_shader_out); in nir_remove_unused_io_vars() 237 progress = nir_remove_unused_io_vars(consumer, nir_var_shader_in, written, in nir_remove_unused_varyings() 593 if (!nir_deref_mode_is(deref, nir_var_shader_in)) in gather_varying_component_info() 922 remap_slots_and_components(consumer, nir_var_shader_in, remap, in compact_components() 955 get_unmoveable_components_masks(consumer, nir_var_shader_in, in nir_compact_varyings() 1063 if (!nir_deref_mode_is(in_deref, nir_var_shader_in)) in replace_varying_input_by_constant_load() 1115 if (!nir_deref_mode_is(in_deref, nir_var_shader_in)) in replace_duplicate_input() 1255 if (!nir_deref_mode_is(in_deref, nir_var_shader_in)) in replace_varying_input_by_uniform_load() 1336 nir_var_shader_in, producer_var->data.location); in nir_link_varying_precision() [all …]
|
D | nir_lower_io_to_scalar.c | 237 (mask & nir_var_shader_in)) { in nir_lower_io_to_scalar_instr() 332 if (var->data.mode == nir_var_shader_in) { in lower_load_to_scalar_early() 466 mode == nir_var_shader_in) && in nir_lower_io_to_scalar_early_instr() 491 if ((state->mask & nir_var_shader_in && mode == nir_var_shader_in) || in nir_lower_io_to_scalar_early_instr()
|
D | nir_lower_sysvals_to_varyings.c | 45 var->data.mode = nir_var_shader_in; \ in nir_lower_sysvals_to_varyings()
|
/third_party/mesa3d/src/asahi/compiler/ |
D | cmdline.c | 113 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/microsoft/spirv_to_dxil/ |
D | dxil_spirv_nir.c | 484 nir_remove_dead_variables(shader, nir_var_shader_in, NULL); in dxil_spirv_nir_kill_undefined_varyings() 569 dxil_reassign_driver_locations(nir, nir_var_shader_in, in dxil_spirv_nir_link() 589 (nir->info.stage != MESA_SHADER_VERTEX ? nir_var_shader_in : 0)); in dxil_spirv_nir_passes() 651 nir_var_shader_in | nir_var_shader_out | in dxil_spirv_nir_passes() 742 nir_var_uniform | nir_var_shader_in | nir_var_shader_out, in dxil_spirv_nir_passes() 757 nir_foreach_variable_with_modes(var, nir, nir_var_shader_in) { in dxil_spirv_nir_passes() 764 dxil_sort_by_driver_location(nir, nir_var_shader_in); in dxil_spirv_nir_passes() 767 dxil_reassign_driver_locations(nir, nir_var_shader_in, 0); in dxil_spirv_nir_passes()
|
/third_party/mesa3d/src/panfrost/bifrost/ |
D | cmdline.c | 155 nir_assign_var_locations(nir[i], nir_var_shader_in, &nir[i]->num_inputs, in compile_shader() 162 sort_varyings(nir[i], nir_var_shader_in); in compile_shader() 163 nir_assign_var_locations(nir[i], nir_var_shader_in, &nir[i]->num_inputs, in compile_shader() 165 fixup_varying_slots(nir[i], nir_var_shader_in); in compile_shader()
|
/third_party/mesa3d/src/intel/compiler/ |
D | brw_nir.c | 175 nir_lower_io(nir, nir_var_shader_in, type_size_vec4, in brw_nir_lower_vs_inputs() 181 nir_io_add_const_offset_to_base(nir, nir_var_shader_in); in brw_nir_lower_vs_inputs() 305 nir_lower_io(nir, nir_var_shader_in, type_size_vec4, in brw_nir_lower_vue_inputs() 311 nir_io_add_const_offset_to_base(nir, nir_var_shader_in); in brw_nir_lower_vue_inputs() 356 nir_lower_io(nir, nir_var_shader_in, type_size_vec4, in brw_nir_lower_tes_inputs() 362 nir_io_add_const_offset_to_base(nir, nir_var_shader_in); in brw_nir_lower_tes_inputs() 451 nir_lower_io(nir, nir_var_shader_in, type_size_vec4, lower_io_options); in brw_nir_lower_fs_inputs() 466 nir_io_add_const_offset_to_base(nir, nir_var_shader_in); in brw_nir_lower_fs_inputs() 964 NIR_PASS(_, consumer, nir_lower_io_to_scalar_early, nir_var_shader_in); in brw_nir_link_shaders() 973 NIR_PASS(_, consumer, nir_remove_dead_variables, nir_var_shader_in, NULL); in brw_nir_link_shaders() [all …]
|
D | brw_shader.h | 143 indirect_mask |= nir_var_shader_in; in brw_nir_no_indirect_mask() 148 indirect_mask |= nir_var_shader_in; in brw_nir_no_indirect_mask()
|
/third_party/mesa3d/src/gallium/frontends/lavapipe/ |
D | lvp_lower_input_attachments.c | 32 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/compiler/glsl/ |
D | gl_nir_link_varyings.c | 1698 var->data.mode == nir_var_shader_in) { in var_counts_against_varying_limit() 1920 return (input_var == NULL || input_var->data.mode != nir_var_shader_in) in get_matching_input() 1990 assert(io_mode == nir_var_shader_in || io_mode == nir_var_shader_out); in reserved_varying_slot() 2007 bool is_gl_vertex_input = io_mode == nir_var_shader_in && in reserved_varying_slot() 2029 assert(var->data.mode == nir_var_shader_in || in set_variable_io_mask() 2122 if (mode == nir_var_shader_in && shader->info.stage == MESA_SHADER_FRAGMENT) { in fixup_vars_lowered_to_temp() 2154 assert(mode == nir_var_shader_in || mode == nir_var_shader_out); in remove_unused_io_vars() 2210 if (mode == nir_var_shader_in) { in remove_unused_io_vars() 2330 remove_unused_io_vars(producer, consumer, prog, nir_var_shader_in, written) || progress; in remove_unused_varyings() 2578 reserved_in_slots = reserved_varying_slot(consumer, nir_var_shader_in); in assign_initial_varying_locations() [all …]
|
D | gl_nir_linker.c | 125 NIR_PASS_V(consumer, nir_lower_io_to_scalar_early, nir_var_shader_in); in gl_nir_link_opts() 137 NIR_PASS_V(consumer, nir_remove_dead_variables, nir_var_shader_in, NULL); in gl_nir_link_opts() 152 NIR_PASS_V(consumer, nir_remove_dead_variables, nir_var_shader_in, in gl_nir_link_opts() 209 (var->data.mode == nir_var_shader_in && in inout_has_same_location() 453 case nir_var_shader_in: in add_vars_with_modes() 503 var->data.mode == nir_var_shader_in) || in add_vars_with_modes() 537 nir, nir_var_shader_in | nir_var_system_value, in add_interface_variables()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_glsl_to_nir.cpp | 384 nir_variable_mode mask = nir_var_shader_in | nir_var_shader_out; in st_nir_preprocess() 549 nir_var_shader_in | nir_var_shader_out | nir_var_function_temp; in st_glsl_to_nir_post_opts() 589 NIR_PASS_V(consumer, nir_lower_io_to_vector, nir_var_shader_in); in st_nir_vectorize_io() 788 nir_var_shader_in : (nir_variable_mode)0; in st_link_nir() 943 nir_assign_io_var_locations(nir, nir_var_shader_in, in st_nir_assign_varying_locations() 946 st_nir_fixup_varying_slots(st, nir, nir_var_shader_in); in st_nir_assign_varying_locations() 953 nir_assign_io_var_locations(nir, nir_var_shader_in, in st_nir_assign_varying_locations() 956 st_nir_fixup_varying_slots(st, nir, nir_var_shader_in); in st_nir_assign_varying_locations()
|
D | st_nir_builtins.c | 51 (stage > MESA_SHADER_VERTEX ? nir_var_shader_in : 0) | in st_nir_finish_builtin_shader() 117 in = nir_variable_create(b.shader, nir_var_shader_in, vec4, var_name); in st_nir_make_passthrough_shader()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_compiler.cpp | 466 nir_var_shader_in) { in has_flat_varyings() 515 mode == nir_var_shader_in ? "in_%d" : "out_%d", in create_varying_from_info() 561 (modes & nir_var_shader_in) && in fill_varyings() 583 nir_var_shader_in) { in fill_flat_varyings() 921 nir_var_shader_in, mask, false); in d3d12_fill_shader_key() 926 nir_var_shader_in, patch_mask, true); in d3d12_fill_shader_key() 1187 …_varyings_from_info(new_nir_variant, &key.required_varying_inputs, slot, nir_var_shader_in, false); in select_shader_variant() 1195 …_varyings_from_info(new_nir_variant, &key.ds.required_patch_inputs, slot, nir_var_shader_in, true); in select_shader_variant() 1198 dxil_reassign_driver_locations(new_nir_variant, nir_var_shader_in, in select_shader_variant() 1423 dxil_reassign_driver_locations(nir, nir_var_shader_in, in d3d12_create_shader() [all …]
|
/third_party/mesa3d/src/compiler/nir/tests/ |
D | vars_tests.cpp | 373 nir_variable *in = create_int(nir_var_shader_in, "in"); in TEST_F() 2040 nir_variable **in = create_many_int(nir_var_shader_in, "in", 4); in TEST_F() 2061 nir_variable **in = create_many_int(nir_var_shader_in, "in", 4); in TEST_F() 2106 nir_variable **in = create_many_int(nir_var_shader_in, "in", 4); in TEST_F() 2128 nir_variable **in = create_many_int(nir_var_shader_in, "in", 6); in TEST_F() 2150 nir_variable **in = create_many_int(nir_var_shader_in, "in", 2); in TEST_F() 2173 nir_variable **in = create_many_int(nir_var_shader_in, "in", 4); in TEST_F() 2199 nir_variable **in = create_many_int(nir_var_shader_in, "in", 4); in TEST_F() 2202 nir_variable *ind = create_int(nir_var_shader_in, "ind"); in TEST_F() 2224 nir_variable **in = create_many_int(nir_var_shader_in, "in", 4); in TEST_F() [all …]
|