/external/mesa3d/src/compiler/nir/ |
D | nir_lower_clip_cull_distance_arrays.c | 134 } else if (var->data.mode == nir_var_shader_in) { in replace_var_declaration() 162 assert((var->data.mode == nir_var_shader_in && in replace_var_declaration() 178 assert((var->data.mode == nir_var_shader_in && in replace_var_declaration() 310 nir_variable_mode mask = nir_var_shader_in | nir_var_shader_out; in replace_with_derefs_to_vec4() 333 if (var->data.mode != nir_var_shader_in && in replace_with_derefs_to_vec4() 341 if (var->data.mode == nir_var_shader_in && in replace_with_derefs_to_vec4() 345 nir_variable *new_var = var->data.mode == nir_var_shader_in ? in replace_with_derefs_to_vec4() 358 nir_var_shader_in | nir_var_shader_out) { in lower_distance_to_vec4() 391 nir_variable_mode mode = nir_var_shader_in | nir_var_shader_out; in nir_lower_clip_cull_distance_to_vec4s() 393 if ((var->data.mode == nir_var_shader_in && in nir_lower_clip_cull_distance_to_vec4s() [all …]
|
D | nir_lower_io_to_vector.c | 130 a->data.mode == nir_var_shader_in && in variables_can_merge() 191 var->data.mode == nir_var_shader_in; in get_flat_type() 387 new_var->data.mode == nir_var_shader_in; in build_array_deref_of_new_var_flat() 413 assert(!(modes & ~(nir_var_shader_in | nir_var_shader_out))); in nir_lower_io_to_vector_impl() 428 if (modes & nir_var_shader_in) { in nir_lower_io_to_vector_impl() 435 if (!create_new_io_vars(shader, nir_var_shader_in, in nir_lower_io_to_vector_impl() 437 modes &= ~nir_var_shader_in; in nir_lower_io_to_vector_impl() 484 …nir_variable *new_var = old_var->data.mode == nir_var_shader_in ? new_inputs[loc][old_frac] : new_… in nir_lower_io_to_vector_impl() 485 … bool flat = old_var->data.mode == nir_var_shader_in ? flat_inputs[loc] : flat_outputs[loc]; in nir_lower_io_to_vector_impl() 635 mode = nir_var_shader_in; in nir_vectorize_tess_levels()
|
D | nir_lower_two_sided_color.c | 52 nir_variable *var = nir_create_variable_with_location(shader, nir_var_shader_in, in create_input() 137 if (var->data.mode != nir_var_shader_in) in nir_lower_two_sided_color_instr() 168 nir_variable *var = nir_get_variable_with_location(b->shader, nir_var_shader_in, in nir_lower_two_sided_color_instr()
|
D | nir_lower_io_arrays_to_elements.c | 341 if ((mask & nir_var_shader_in && mode == nir_var_shader_in) || in lower_io_arrays_to_elements() 366 lower_io_arrays_to_elements(shader, nir_var_shader_in, in nir_lower_io_arrays_to_elements_no_indirects() 402 create_indirects_mask(consumer, indirects, nir_var_shader_in); in nir_lower_io_arrays_to_elements() 407 lower_io_arrays_to_elements(consumer, nir_var_shader_in, in nir_lower_io_arrays_to_elements()
|
D | nir_lower_texcoord_replace.c | 75 nir_variable *pntc = nir_get_variable_with_location(b.shader, nir_var_shader_in, in nir_lower_texcoord_replace_impl() 103 if (var->data.mode != nir_var_shader_in || in nir_lower_texcoord_replace_impl()
|
D | nir_linking_helpers.c | 46 assert(var->data.mode == nir_var_shader_in || in get_variable_io_mask() 129 srcn = mode == nir_var_shader_in ? 1 : 0; in remove_unused_io_access() 171 assert(mode == nir_var_shader_in || mode == nir_var_shader_out); in nir_remove_unused_io_vars() 262 progress = nir_remove_unused_io_vars(consumer, nir_var_shader_in, written, in nir_remove_unused_varyings() 616 if (!nir_deref_mode_is(deref, nir_var_shader_in)) in gather_varying_component_info() 913 remap_slots_and_components(consumer, nir_var_shader_in, remap, in compact_components() 946 get_unmoveable_components_masks(consumer, nir_var_shader_in, in nir_compact_varyings() 1053 if (!nir_deref_mode_is(in_deref, nir_var_shader_in)) in replace_varying_input_by_constant_load() 1103 if (!nir_deref_mode_is(in_deref, nir_var_shader_in)) in replace_duplicate_input() 1259 if (!nir_deref_mode_is(in_deref, nir_var_shader_in)) in replace_varying_input_by_uniform_load() [all …]
|
D | nir_passthrough_gs.c | 180 in->data.mode = nir_var_shader_in; in nir_create_passthrough_gs() 218 nir, nir_var_shader_in, VARYING_SLOT_PRIMITIVE_ID, glsl_int_type()); in nir_create_passthrough_gs() 242 …nir_variable *edge_var = nir_find_variable_with_location(nir, nir_var_shader_in, VARYING_SLOT_EDGE… in nir_create_passthrough_gs()
|
D | nir_lower_mediump.c | 46 *out_mode = nir_var_shader_in; in get_io_intrinsic() 47 return modes & nir_var_shader_in ? intr : NULL; in get_io_intrinsic() 94 if (mode == nir_var_shader_in) { in nir_recompute_io_bases() 128 if (mode == nir_var_shader_in) { in nir_recompute_io_bases() 156 if (modes & nir_var_shader_in) in nir_recompute_io_bases() 192 mode == nir_var_shader_in) && in nir_lower_mediump_io() 334 mode == nir_var_shader_in) { in nir_force_mediump_io()
|
/external/mesa3d/src/imagination/pco/ |
D | pco_nir.c | 90 nir_var_shader_in | nir_var_shader_out, in pco_preprocess_nir() 174 nir_var_shader_in | nir_var_shader_out, in pco_lower_nir() 183 nir_var_shader_in | nir_var_shader_out); in pco_lower_nir() 195 nir_var_shader_in | nir_var_shader_out, in pco_lower_nir() 219 nir_variable_mode vec_modes = nir_var_shader_in; in pco_lower_nir() 235 nir_var_shader_in, in pco_lower_nir()
|
/external/mesa3d/src/gallium/drivers/freedreno/ir3/ |
D | ir3_cmdline.c | 134 nir_assign_var_locations(nir, nir_var_shader_in, &nir->num_inputs, in load_glsl() 146 sort_varyings(nir, nir_var_shader_in); in load_glsl() 147 nir_assign_var_locations(nir, nir_var_shader_in, &nir->num_inputs, in load_glsl() 149 fixup_varying_slots(nir, nir_var_shader_in); in load_glsl() 168 nir_var_shader_in | nir_var_shader_out | nir_var_uniform, in load_glsl() 387 NIR_PASS_V(nir, nir_lower_io, nir_var_shader_in | nir_var_shader_out, in main()
|
/external/mesa3d/src/amd/vulkan/nir/ |
D | radv_nir_lower_io.c | 52 …NIR_PASS(_, nir, nir_remove_dead_variables, nir_var_function_temp | nir_var_shader_in | nir_var_sh… in radv_nir_lower_io_to_scalar_early() 141 NIR_PASS(_, nir, nir_lower_io, nir_var_shader_in, type_size_vec4, 0); in radv_nir_lower_io() 144 NIR_PASS(_, nir, nir_lower_io, nir_var_shader_in | nir_var_shader_out, type_size_vec4, in radv_nir_lower_io() 151 NIR_PASS(_, nir, nir_io_add_const_offset_to_base, nir_var_shader_in | nir_var_shader_out); in radv_nir_lower_io() 175 NIR_PASS_V(nir, nir_remove_dead_variables, nir_var_shader_in | nir_var_shader_out, NULL); in radv_nir_lower_io()
|
/external/mesa3d/src/imagination/rogue/ |
D | rogue_nir.c | 86 nir_var_shader_in | nir_var_shader_out, in rogue_nir_passes() 92 NIR_PASS_V(nir, nir_lower_io_to_scalar, nir_var_shader_in, NULL, NULL); in rogue_nir_passes() 164 nir_var_shader_in, in rogue_nir_passes()
|
/external/mesa3d/src/compiler/glsl/ |
D | gl_nir_lower_named_interface_blocks.c | 136 var->data.mode == nir_var_shader_in ? "in" : "out", in create_ifc_field_name_str() 150 nir_variable_mode mask = nir_var_shader_in | nir_var_shader_out; in flatten_named_interface_deref() 255 nir_var_shader_in | nir_var_shader_out) { in lower_named_interface_blocks() 317 nir_var_shader_in | nir_var_shader_out) { in lower_named_interface_blocks() 319 if (var->data.mode == nir_var_shader_in) { in lower_named_interface_blocks()
|
D | gl_nir_link_varyings.c | 377 if (var->data.mode == nir_var_shader_in) in compute_variable_location_slot() 459 var->data.mode == nir_var_shader_in ? "in" : "out", in check_location_aliasing() 469 var->data.mode == nir_var_shader_in ? "in" : "out", in check_location_aliasing() 493 var->data.mode == nir_var_shader_in ? in check_location_aliasing() 505 var->data.mode == nir_var_shader_in ? in check_location_aliasing() 517 var->data.mode == nir_var_shader_in ? in check_location_aliasing() 531 var->data.mode == nir_var_shader_in ? in check_location_aliasing() 690 assert(var->data.mode == nir_var_shader_in); in validate_explicit_variable_location() 760 nir_variable_mode var_mode[2] = { nir_var_shader_in, nir_var_shader_out }; in gl_nir_validate_first_and_last_interface_explicit_locations() 866 nir_foreach_variable_with_modes(input, consumer->Program->nir, nir_var_shader_in) { in gl_nir_cross_validate_outputs_to_inputs() [all …]
|
/external/mesa3d/src/freedreno/ir3/ |
D | ir3_nir_lower_layer_id.c | 20 …nir_variable *layer = nir_find_variable_with_location(b->shader, nir_var_shader_in, VARYING_SLOT_L… in nir_lower_layer_id() 23 layer = nir_variable_create(b->shader, nir_var_shader_in, glsl_int_type(), "layer"); in nir_lower_layer_id()
|
/external/mesa3d/src/microsoft/spirv_to_dxil/ |
D | dxil_spirv_nir.c | 142 nir_var_shader_in | nir_var_shader_out | nir_var_system_value | in dxil_spirv_nir_prep() 695 nir_variable *pos = nir_find_variable_with_location(nir, nir_var_shader_in, VARYING_SLOT_POS); in dxil_spirv_compute_pntc() 697 pos = nir_variable_create(nir, nir_var_shader_in, glsl_vec4_type(), "gl_FragCoord"); in dxil_spirv_compute_pntc() 699 …pos->data.sample = nir_find_variable_with_location(nir, nir_var_shader_in, VARYING_SLOT_PNTC)->dat… in dxil_spirv_compute_pntc() 794 …dxil_reassign_driver_locations(nir, nir_var_shader_in, prev_stage_nir->info.outputs_written, NULL); in dxil_spirv_nir_link() 804 nir_variable *var = nir_find_variable_with_location(nir, nir_var_shader_in, loc); in dxil_spirv_nir_link() 806 …var = nir_variable_create(nir, nir_var_shader_in, glsl_array_type(glsl_float_type(), i == 0 ? 4 : … in dxil_spirv_nir_link() 895 (nir->info.stage != MESA_SHADER_VERTEX ? nir_var_shader_in : 0)); in dxil_spirv_nir_passes() 990 nir_var_shader_in | nir_var_shader_out | in dxil_spirv_nir_passes() 1107 nir_var_uniform | nir_var_shader_in | nir_var_shader_out, in dxil_spirv_nir_passes() [all …]
|
/external/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()
|
/external/mesa3d/src/intel/blorp/ |
D | blorp_brw.c | 34 nir_remove_dead_variables(nir, nir_var_shader_in, NULL); in blorp_compile_fs_brw() 212 nir_variable *a_header = nir_variable_create(b.shader, nir_var_shader_in, in blorp_params_get_layer_offset_vs_brw() 227 nir_variable *a_vertex = nir_variable_create(b.shader, nir_var_shader_in, in blorp_params_get_layer_offset_vs_brw() 239 nir_variable *a_in = nir_variable_create(b.shader, nir_var_shader_in, in blorp_params_get_layer_offset_vs_brw()
|
D | blorp_elk.c | 35 nir_remove_dead_variables(nir, nir_var_shader_in, NULL); in blorp_compile_fs_elk() 284 nir_variable *a_header = nir_variable_create(b.shader, nir_var_shader_in, in blorp_params_get_layer_offset_vs_elk() 299 nir_variable *a_vertex = nir_variable_create(b.shader, nir_var_shader_in, in blorp_params_get_layer_offset_vs_elk() 311 nir_variable *a_in = nir_variable_create(b.shader, nir_var_shader_in, in blorp_params_get_layer_offset_vs_elk()
|
/external/mesa3d/src/intel/compiler/elk/ |
D | elk_shader.h | 142 indirect_mask |= nir_var_shader_in; in elk_nir_no_indirect_mask() 147 indirect_mask |= nir_var_shader_in; in elk_nir_no_indirect_mask()
|
D | elk_nir.c | 251 nir_lower_io(nir, nir_var_shader_in, elk_type_size_vec4, in elk_nir_lower_vs_inputs() 257 nir_io_add_const_offset_to_base(nir, nir_var_shader_in); in elk_nir_lower_vs_inputs() 375 nir_lower_io(nir, nir_var_shader_in, elk_type_size_vec4, in elk_nir_lower_vue_inputs() 381 nir_io_add_const_offset_to_base(nir, nir_var_shader_in); in elk_nir_lower_vue_inputs() 423 nir_lower_io(nir, nir_var_shader_in, elk_type_size_vec4, in elk_nir_lower_tes_inputs() 429 nir_io_add_const_offset_to_base(nir, nir_var_shader_in); in elk_nir_lower_tes_inputs() 523 nir_lower_io(nir, nir_var_shader_in, elk_type_size_vec4, in elk_nir_lower_fs_inputs() 542 nir_io_add_const_offset_to_base(nir, nir_var_shader_in); in elk_nir_lower_fs_inputs() 1021 if (!nir_deref_mode_is(deref, nir_var_shader_in)) in elk_nir_zero_inputs_instr() 1065 NIR_PASS(_, consumer, nir_lower_io_to_scalar_early, nir_var_shader_in); in elk_nir_link_shaders() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_nir_unlower_io_to_vars.c | 31 var->data.mode & nir_var_shader_in) || in var_is_per_vertex() 33 (stage == MESA_SHADER_TESS_EVAL && var->data.mode & nir_var_shader_in)) && in var_is_per_vertex() 121 desc->mode = desc->is_output ? nir_var_shader_out : nir_var_shader_in; in parse_intrinsic() 715 nir_foreach_variable_with_modes(var, nir, nir_var_shader_in | nir_var_shader_out) { in st_nir_unlower_io_to_vars() 724 (nir->info.stage != MESA_SHADER_VERTEX ? nir_var_shader_in : 0); in st_nir_unlower_io_to_vars() 751 nir_foreach_variable_with_modes(var, nir, nir_var_shader_in) { in st_nir_unlower_io_to_vars() 768 nir_var_shader_in | in st_nir_unlower_io_to_vars() 780 nir_foreach_variable_with_modes(var, nir, nir_var_shader_in) { in st_nir_unlower_io_to_vars()
|
D | st_glsl_to_nir.cpp | 367 nir_var_shader_in | nir_var_shader_out | nir_var_function_temp; in st_glsl_to_nir_post_opts() 412 NIR_PASS(_, consumer, nir_lower_io_to_vector, nir_var_shader_in); in st_nir_vectorize_io() 588 nir_var_shader_in | nir_var_shader_out, NULL); in st_link_glsl_to_nir() 601 nir_var_shader_in : (nir_variable_mode)0; in st_link_glsl_to_nir() 801 nir_assign_io_var_locations(nir, nir_var_shader_in, in st_nir_assign_varying_locations() 804 st_nir_fixup_varying_slots(st, nir, nir_var_shader_in); in st_nir_assign_varying_locations() 811 nir_assign_io_var_locations(nir, nir_var_shader_in, in st_nir_assign_varying_locations() 814 st_nir_fixup_varying_slots(st, nir, nir_var_shader_in); in st_nir_assign_varying_locations()
|
D | st_nir_builtins.c | 55 (stage > MESA_SHADER_VERTEX ? nir_var_shader_in : 0) | in st_nir_finish_builtin_nir() 67 nir_recompute_io_bases(nir, nir_var_shader_in | nir_var_shader_out); in st_nir_finish_builtin_nir()
|
/external/mesa3d/src/vulkan/runtime/ |
D | vk_meta_draw_rects.c | 68 nir_variable *in = nir_variable_create(b->shader, nir_var_shader_in, in vk_meta_draw_rects_vs_nir() 105 nir_variable_create(b->shader, nir_var_shader_in, in vk_meta_draw_rects_gs_nir() 110 nir_variable_create(b->shader, nir_var_shader_in, in vk_meta_draw_rects_gs_nir()
|