/third_party/mesa3d/src/gallium/drivers/freedreno/ir3/ |
H A D | ir3_cmdline.c | 157 sort_varyings(nir, nir_var_shader_out); in load_glsl() 158 nir_assign_var_locations(nir, nir_var_shader_out, &nir->num_outputs, in load_glsl() 160 fixup_varying_slots(nir, nir_var_shader_out); in load_glsl() 167 nir_assign_var_locations(nir, nir_var_shader_out, &nir->num_outputs, 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/compiler/nir/ |
H A D | nir_opt_dead_write_vars.c | 121 clear_unused_for_modes(&unused_writes, nir_var_shader_out | in remove_dead_write_vars_local() 138 clear_unused_for_modes(&unused_writes, nir_var_shader_out | in remove_dead_write_vars_local() 155 clear_unused_for_modes(&unused_writes, nir_var_shader_out); in remove_dead_write_vars_local() 168 clear_unused_for_modes(&unused_writes, nir_var_shader_out); in remove_dead_write_vars_local()
|
H A D | nir_lower_io_to_vector.c | 136 a->data.mode == nir_var_shader_out && in variables_can_merge() 148 a->data.mode == nir_var_shader_out && in variables_can_merge() 407 assert(!(modes & ~(nir_var_shader_in | nir_var_shader_out))); in nir_lower_io_to_vector_impl() 432 if (modes & nir_var_shader_out) { in nir_lower_io_to_vector_impl() 436 if (!create_new_io_vars(shader, nir_var_shader_out, in nir_lower_io_to_vector_impl() 438 modes &= ~nir_var_shader_out; in nir_lower_io_to_vector_impl() 469 if (nir_deref_mode_is(old_deref, nir_var_shader_out)) in nir_lower_io_to_vector_impl() 524 if (!nir_deref_mode_is(old_deref, nir_var_shader_out)) in nir_lower_io_to_vector_impl() 627 if (!nir_deref_mode_is(deref, nir_var_shader_out)) in nir_vectorize_tess_levels_impl()
|
H A D | nir_lower_fragcolor.c | 64 if (out->data.location != FRAG_RESULT_COLOR || out->data.mode != nir_var_shader_out) in lower_fragcolor_instr() 88 nir_variable *out_color = nir_variable_create(b->shader, nir_var_shader_out, in lower_fragcolor_instr()
|
H A D | nir_opt_combine_stores.c | 287 combine_stores_with_modes(state, nir_var_shader_out | in combine_stores_block() 320 combine_stores_with_modes(state, nir_var_shader_out | in combine_stores_block() 336 combine_stores_with_modes(state, nir_var_shader_out); in combine_stores_block() 348 combine_stores_with_modes(state, nir_var_shader_out); in combine_stores_block()
|
H A D | nir_lower_io_arrays_to_elements.c | 351 (mask & nir_var_shader_out && mode == nir_var_shader_out)) in lower_io_arrays_to_elements() 372 lower_io_arrays_to_elements(shader, nir_var_shader_out, in nir_lower_io_arrays_to_elements_no_indirects() 410 create_indirects_mask(producer, indirects, nir_var_shader_out); in nir_lower_io_arrays_to_elements() 413 lower_io_arrays_to_elements(producer, nir_var_shader_out, in nir_lower_io_arrays_to_elements()
|
H A D | nir_lower_io_to_scalar.c | 243 (mask & nir_var_shader_out)) { in nir_lower_io_to_scalar_instr() 257 mask & nir_var_shader_out) { in nir_lower_io_to_scalar_instr() 492 (state->mask & nir_var_shader_out && mode == nir_var_shader_out)) { in nir_lower_io_to_scalar_early_instr() 499 if (state->mask & nir_var_shader_out && in nir_lower_io_to_scalar_early_instr() 500 mode == nir_var_shader_out) { in nir_lower_io_to_scalar_early_instr()
|
H A D | nir_lower_point_size_mov.c | 59 new_out = nir_variable_create(shader, nir_var_shader_out, in lower_impl() 110 nir_find_variable_with_location(shader, nir_var_shader_out, in nir_lower_point_size_mov()
|
/third_party/mesa3d/src/gallium/drivers/lima/standalone/ |
H A D | lima_compiler_cmdline.c | 149 sort_varyings(nir, nir_var_shader_out); in load_glsl() 150 nir_assign_var_locations(nir, nir_var_shader_out, &nir->num_outputs, in load_glsl() 152 fixup_varying_slots(nir, nir_var_shader_out); in load_glsl() 159 nir_assign_var_locations(nir, nir_var_shader_out, &nir->num_outputs, in load_glsl()
|
/third_party/mesa3d/src/microsoft/spirv_to_dxil/ |
H A D | dxil_spirv_nir.c | 278 if (var->data.mode != nir_var_shader_out || in lower_yz_flip() 386 if (!var || var->data.mode != nir_var_shader_out || in discard_psiz_access() 504 if (!var || var->data.mode != nir_var_shader_out) in kill_unused_outputs() 553 nir_remove_dead_variables(shader, nir_var_shader_out, NULL); in dxil_spirv_nir_kill_unused_outputs() 572 dxil_reassign_driver_locations(prev_stage_nir, nir_var_shader_out, in dxil_spirv_nir_link() 588 nir_var_shader_out | in dxil_spirv_nir_passes() 590 NIR_PASS_V(nir, nir_opt_combine_stores, nir_var_shader_out); 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() 753 dxil_reassign_driver_locations(nir, nir_var_shader_out, in dxil_spirv_nir_passes() [all...] |
/third_party/mesa3d/src/imagination/rogue/ |
H A D | rogue_nir.c | 95 nir_var_shader_in | nir_var_shader_out, in rogue_nir_passes() 114 NIR_PASS_V(nir, nir_lower_io_to_scalar, nir_var_shader_out); in rogue_nir_passes() 178 nir_var_shader_out, in rogue_nir_passes()
|
/third_party/mesa3d/src/asahi/compiler/ |
H A D | cmdline.c | 115 sort_varyings(nir[i], nir_var_shader_out); in compile_shader() 116 nir_assign_var_locations(nir[i], nir_var_shader_out, &nir[i]->num_outputs, in compile_shader() 118 fixup_varying_slots(nir[i], nir_var_shader_out); in compile_shader() 124 nir_assign_var_locations(nir[i], nir_var_shader_out, &nir[i]->num_outputs, in compile_shader()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_lower_point_sprite.c | 56 nir_foreach_variable_with_modes(var, shader, nir_var_shader_out) { in find_outputs() 133 if (nir_deref_mode_is(deref, nir_var_shader_out)) { in lower_store() 273 nir_var_shader_out, in d3d12_lower_point_sprite() 282 nir_var_shader_out, in d3d12_lower_point_sprite() 291 dxil_reassign_driver_locations(shader, nir_var_shader_out, in d3d12_lower_point_sprite()
|
H A D | d3d12_tcs_variant.cpp | 98 nir_variable *out = nir_variable_create(nir, nir_var_shader_out, type, buf); in create_tess_ctrl_shader_variant() 112 nir_variable *gl_TessLevelInner = nir_variable_create(nir, nir_var_shader_out, glsl_array_type(glsl_float_type(), 2, 0), "gl_TessLevelInner"); in create_tess_ctrl_shader_variant() 116 nir_variable *gl_TessLevelOuter = nir_variable_create(nir, nir_var_shader_out, glsl_array_type(glsl_float_type(), 4, 0), "gl_TessLevelOuter"); in create_tess_ctrl_shader_variant()
|
H A D | d3d12_nir_passes.c | 76 if (var->data.mode != nir_var_shader_out || in lower_pos_write() 265 return (var->data.mode == nir_var_shader_out && in is_color_output() 447 if (var->data.mode != nir_var_shader_out) in invert_depth_instr() 674 nir_variable *out = nir_variable_create(s, nir_var_shader_out, in d3d12_add_missing_dual_src_target() 729 nir_variable *primitive_id_var = nir_variable_create(shader, nir_var_shader_out, in d3d12_lower_primitive_id() 763 if (var->data.mode != nir_var_shader_out) in lower_triangle_strip_store() 852 nir_foreach_variable_with_modes(var, shader, nir_var_shader_out) { in d3d12_lower_triangle_strip() 954 nir_foreach_variable_with_modes_safe(var, s, nir_var_shader_out) { in d3d12_disable_multisampling() 996 if (!nir_deref_mode_is(deref, nir_var_shader_out)) in split_multistream_varying_stores() 1047 nir_foreach_variable_with_modes_safe(var, s, nir_var_shader_out) { in d3d12_split_multistream_varyings() [all...] |
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_nir_builtins.c | 52 (stage < MESA_SHADER_FRAGMENT ? nir_var_shader_out : 0); in st_nir_finish_builtin_shader() 125 nir_variable_create(b.shader, nir_var_shader_out, in->type, var_name); in st_nir_make_passthrough_shader() 157 nir_variable_create(b.shader, nir_var_shader_out, glsl_vec_type(4), in st_nir_make_clearcolor_shader()
|
H A D | st_glsl_to_nir.cpp | 238 nir_variable *psiz = nir_variable_create(nir, nir_var_shader_out, glsl_float_type(), "gl_PointSizeMESA"); in st_nir_add_point_size() 312 nir_variable *clip_dist0 = nir_find_variable_with_location(nir, nir_var_shader_out, VARYING_SLOT_CLIP_DIST0); in st_nir_zero_initialize_clip_distance() 313 nir_variable *clip_dist1 = nir_find_variable_with_location(nir, nir_var_shader_out, VARYING_SLOT_CLIP_DIST1); in st_nir_zero_initialize_clip_distance() 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() 594 NIR_PASS_V(producer, nir_lower_io_to_vector, nir_var_shader_out); in st_nir_vectorize_io() 595 NIR_PASS_V(producer, nir_opt_combine_stores, nir_var_shader_out); in st_nir_vectorize_io() 790 nir_var_shader_out : (nir_variable_mode)0; in st_link_nir() 936 nir_assign_io_var_locations(nir, nir_var_shader_out, in st_nir_assign_varying_locations() 939 st_nir_fixup_varying_slots(st, nir, nir_var_shader_out); in st_nir_assign_varying_locations() [all...] |
/third_party/mesa3d/src/compiler/glsl/ |
H A D | gl_nir_linker.c | 124 NIR_PASS_V(producer, nir_lower_io_to_scalar_early, nir_var_shader_out); in gl_nir_link_opts() 136 NIR_PASS_V(producer, nir_remove_dead_variables, nir_var_shader_out, NULL); in gl_nir_link_opts() 150 NIR_PASS_V(producer, nir_remove_dead_variables, nir_var_shader_out, in gl_nir_link_opts() 207 ((var->data.mode == nir_var_shader_out && in inout_has_same_location() 242 } else if ((in->data.mode == nir_var_shader_out && in create_shader_variable() 248 } else if ((in->data.mode == nir_var_shader_out && in create_shader_variable() 459 case nir_var_shader_out: in add_vars_with_modes() 505 var->data.mode == nir_var_shader_out); in add_vars_with_modes() 542 nir, nir_var_shader_out, in add_interface_variables()
|
H A D | gl_nir_link_varyings.c | 1990 assert(io_mode == nir_var_shader_in || io_mode == nir_var_shader_out); in reserved_varying_slot() 2030 var->data.mode == nir_var_shader_out); in set_variable_io_mask() 2072 if (!nir_deref_mode_is(deref, nir_var_shader_out)) in tcs_add_output_reads() 2140 * progress = nir_remove_unused_io_vars(producer, consumer, nir_var_shader_out, 2154 assert(mode == nir_var_shader_in || mode == nir_var_shader_out); in remove_unused_io_vars() 2157 nir_shader *shader = mode == nir_var_shader_out ? producer : consumer; in remove_unused_io_vars() 2328 remove_unused_io_vars(producer, consumer, prog, nir_var_shader_out, read); in remove_unused_varyings() 2574 reserved_out_slots = reserved_varying_slot(producer, nir_var_shader_out); in assign_initial_varying_locations() 2614 NIR_PASS_V(producer, nir_lower_io_to_scalar_early, nir_var_shader_out); in link_shader_opts() 2624 NIR_PASS_V(producer, nir_remove_dead_variables, nir_var_shader_out, NUL in link_shader_opts() [all...] |
/third_party/mesa3d/src/panfrost/bifrost/ |
H A D | cmdline.c | 157 sort_varyings(nir[i], nir_var_shader_out); in compile_shader() 158 nir_assign_var_locations(nir[i], nir_var_shader_out, &nir[i]->num_outputs, in compile_shader() 160 fixup_varying_slots(nir[i], nir_var_shader_out); in compile_shader() 166 nir_assign_var_locations(nir[i], nir_var_shader_out, &nir[i]->num_outputs, in compile_shader()
|
/third_party/mesa3d/src/freedreno/vulkan/ |
H A D | tu_nir_lower_multiview.c | 46 if (!nir_deref_mode_is(deref, nir_var_shader_out)) in lower_multiview_mask() 100 nir_assign_io_var_locations(nir, nir_var_shader_out, &num_outputs, MESA_SHADER_VERTEX); in tu_nir_lower_multiview()
|
/third_party/mesa3d/src/vulkan/runtime/ |
H A D | vk_nir.c | 71 if (var->data.mode != nir_var_shader_out) in is_not_xfb_output() 145 nir_var_shader_in | nir_var_shader_out | nir_var_system_value | in vk_spirv_to_nir()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | si_shader_nir.c | 150 NIR_PASS_V(nir, nir_io_add_const_offset_to_base, nir_var_shader_in | nir_var_shader_out); in si_nir_late_opts() 291 NIR_PASS_V(nir, nir_lower_io_to_scalar, nir_var_shader_out); in si_lower_nir() 316 (nir->info.stage != MESA_SHADER_VERTEX ? nir_var_shader_in : 0) | nir_var_shader_out, in si_lower_nir()
|
/third_party/mesa3d/src/intel/vulkan/ |
H A D | anv_nir_lower_multiview.c | 204 nir_variable_create(shader, nir_var_shader_out, in anv_nir_lower_multiview() 264 nir_variable_create(shader, nir_var_shader_out, in anv_nir_lower_multiview() 271 nir_variable_create(shader, nir_var_shader_out, in anv_nir_lower_multiview()
|
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_nir.c | 476 nir_lower_io(nir, nir_var_shader_out, type_size_vec4, in brw_nir_lower_vue_outputs() 488 nir_lower_io(nir, nir_var_shader_out, type_size_vec4, in brw_nir_lower_tcs_outputs() 494 nir_io_add_const_offset_to_base(nir, nir_var_shader_out); in brw_nir_lower_tcs_outputs() 516 nir_lower_io(nir, nir_var_shader_out, type_size_dvec4, 0); in brw_nir_lower_fs_outputs() 963 NIR_PASS(_, producer, nir_lower_io_to_scalar_early, nir_var_shader_out); in brw_nir_link_shaders() 972 NIR_PASS(_, producer, nir_remove_dead_variables, nir_var_shader_out, NULL); in brw_nir_link_shaders() 1003 NIR_PASS(_, producer, nir_lower_io_to_vector, nir_var_shader_out); in brw_nir_link_shaders() 1004 NIR_PASS(_, producer, nir_opt_combine_stores, nir_var_shader_out); in brw_nir_link_shaders()
|