/aosp_15_r20/external/mesa3d/src/compiler/nir/tests/ |
H A D | vars_tests.cpp | 34 nir_variable *create_var(nir_variable_mode mode, const glsl_type *type, in create_var() 42 nir_variable *create_int(nir_variable_mode mode, const char *name) { in create_int() 46 nir_variable *create_ivec2(nir_variable_mode mode, const char *name) { in create_ivec2() 50 nir_variable *create_ivec4(nir_variable_mode mode, const char *name) { in create_ivec4() 54 nir_variable **create_many_int(nir_variable_mode mode, const char *prefix, unsigned count) { in create_many_int() 55 …nir_variable **result = (nir_variable **)linear_alloc_child(lin_ctx, sizeof(nir_variable *) * coun… in create_many_int() 61 nir_variable **create_many_ivec2(nir_variable_mode mode, const char *prefix, unsigned count) { in create_many_ivec2() 62 …nir_variable **result = (nir_variable **)linear_alloc_child(lin_ctx, sizeof(nir_variable *) * coun… in create_many_ivec2() 68 nir_variable **create_many_ivec4(nir_variable_mode mode, const char *prefix, unsigned count) { in create_many_ivec4() 69 …nir_variable **result = (nir_variable **)linear_alloc_child(lin_ctx, sizeof(nir_variable *) * coun… in create_many_ivec4() [all …]
|
/aosp_15_r20/external/mesa3d/src/compiler/glsl/ |
H A D | gl_nir_lower_blend_equation_advanced.c | 216 static nir_variable * 219 nir_variable *var = rzalloc(b->shader, nir_variable); in add_temp_var() 239 nir_variable *color, in set_lum() 240 nir_variable *cbase, in set_lum() 241 nir_variable *clum) in set_lum() 246 nir_variable *llum = add_temp_var(b, "__blend_lum", glsl_float_type()); in set_lum() 247 nir_variable *mincol = add_temp_var(b, "__blend_mincol", glsl_float_type()); in set_lum() 248 nir_variable *maxcol = add_temp_var(b, "__blend_maxcol", glsl_float_type()); in set_lum() 277 nir_variable *color, in set_lum_sat() 278 nir_variable *cbase, in set_lum_sat() [all …]
|
H A D | gl_nir_opt_dead_builtin_varyings.c | 58 nir_variable *texcoord_array; 63 nir_variable *color[2]; 64 nir_variable *backcolor[2]; 68 nir_variable *fog; 97 nir_variable *var = nir_deref_instr_get_variable(deref); in gather_info_on_varying_deref() 228 nir_variable *new_texcoord[MAX_TEXTURE_COORD_UNITS]; 229 nir_variable *new_color[2]; 230 nir_variable *new_backcolor[2]; 231 nir_variable *new_fog; 234 static nir_variable * [all …]
|
H A D | gl_nir_link_varyings.c | 54 nir_variable *var; 77 get_varying_type(const nir_variable *var, gl_shader_stage stage) in get_varying_type() 148 const nir_variable *input, in cross_validate_types_and_qualifiers() 149 const nir_variable *output, in cross_validate_types_and_qualifiers() 355 const nir_variable *input, in cross_validate_front_and_back_color() 356 const nir_variable *front_color, in cross_validate_front_and_back_color() 357 const nir_variable *back_color, in cross_validate_front_and_back_color() 371 compute_variable_location_slot(nir_variable *var, gl_shader_stage stage) in compute_variable_location_slot() 398 nir_variable *var; 409 nir_variable *var, in check_location_aliasing() [all …]
|
H A D | gl_nir_link_interface_blocks.c | 104 is_interface_instance(nir_variable *var) in is_interface_instance() 115 intrastage_match(nir_variable *a, in intrastage_match() 116 nir_variable *b, in intrastage_match() 183 interstage_match(struct gl_shader_program *prog, nir_variable *producer, in interstage_match() 184 nir_variable *consumer, bool extra_array_level) in interstage_match() 229 nir_variable *var; 236 ifc_lookup(struct hash_table *ht, nir_variable *var) in ifc_lookup() 258 ifc_store(void *mem_ctx, struct hash_table *ht, nir_variable *var, in ifc_store() 297 is_builtin_gl_in_block(nir_variable *var, int consumer_stage) in is_builtin_gl_in_block() 406 nir_variable *producer_def = ifc_var ? ifc_var->var : NULL; in gl_nir_validate_interstage_inout_blocks() [all …]
|
H A D | gl_nir_linker.h | 78 const char * gl_nir_mode_string(const nir_variable *var); 81 nir_variable *var, 82 nir_variable *existing, 89 nir_variable * gl_nir_lower_xfb_varying(nir_shader *shader, 91 nir_variable *toplevel_var); 107 nir_variable *var, 143 bool lower_packed_varying_needs_lowering(nir_shader *shader, nir_variable *var,
|
H A D | gl_nir_lower_packed_varyings.c | 186 nir_variable **packed_varyings; 213 lower_packed_varying_needs_lowering(nir_shader *shader, nir_variable *var, in lower_packed_varying_needs_lowering() 264 nir_variable *unpacked_var, in create_or_update_packed_varying() 273 nir_variable *packed_var = rzalloc(state->shader, nir_variable); in create_or_update_packed_varying() 307 nir_variable *var = state->packed_varyings[slot]; in create_or_update_packed_varying() 332 unsigned location, nir_variable *unpacked_var, in get_packed_varying_deref() 381 nir_variable *packed_var = nir_deref_instr_get_variable(packed_deref); in bitwise_assign_pack() 455 nir_variable *packed_var = nir_deref_instr_get_variable(packed_deref); in bitwise_assign_unpack() 560 nir_variable *unpacked_var, nir_deref_instr *unpacked_var_deref, 581 nir_variable *unpacked_var, nir_deref_instr *unpacked_var_deref, in lower_arraylike() [all …]
|
/aosp_15_r20/external/mesa3d/src/compiler/nir/ |
H A D | nir_lower_clip.c | 42 static nir_variable * 46 nir_variable *var = rzalloc(shader, nir_variable); in create_clipdist_var() 73 create_clipdist_vars(nir_shader *shader, nir_variable **io_vars, in create_clipdist_vars() 98 store_clipdist_output(nir_builder *b, nir_variable *out, int location, int location_offset, in store_clipdist_output() 124 load_clipdist_input(nir_builder *b, nir_variable *in, int location_offset, in load_clipdist_input() 219 nir_variable **clipvertex, in find_clipvertex_and_position_outputs() 220 nir_variable **position) in find_clipvertex_and_position_outputs() 260 nir_variable *var = nir_state_variable_create(b->shader, in get_ucp() 282 lower_clip_outputs(nir_builder *b, nir_variable *position, in lower_clip_outputs() 283 nir_variable *clipvertex, nir_variable **out, in lower_clip_outputs() [all …]
|
H A D | nir_lower_io_arrays_to_elements.c | 36 get_io_offset(nir_builder *b, nir_deref_instr *deref, nir_variable *var, in get_io_offset() 82 static nir_variable ** 83 get_array_elements(struct hash_table *ht, nir_variable *var, in get_array_elements() 86 nir_variable **elements; in get_array_elements() 99 elements = (nir_variable **)calloc(num_elements, sizeof(nir_variable *)); in get_array_elements() 102 elements = (nir_variable **)entry->data; in get_array_elements() 109 lower_array(nir_builder *b, nir_intrinsic_instr *intr, nir_variable *var, in lower_array() 126 nir_variable **elements = in lower_array() 136 nir_variable *element = elements[elements_index]; in lower_array() 198 deref_has_indirect(nir_builder *b, nir_variable *var, nir_deref_path *path) in deref_has_indirect() [all …]
|
H A D | nir_lower_io_to_vector.c | 43 get_slot(const nir_variable *var) in get_slot() 52 get_per_vertex_type(const nir_shader *shader, const nir_variable *var, in get_per_vertex_type() 82 const nir_variable *a, const nir_variable *b, in variables_can_merge() 157 get_flat_type(const nir_shader *shader, nir_variable *old_vars[MAX_SLOTS][4], in get_flat_type() 158 unsigned *loc, nir_variable **first_var, unsigned *num_vertices) in get_flat_type() 170 nir_variable *var = old_vars[*loc][frac]; in get_flat_type() 213 nir_variable *new_vars[MAX_SLOTS][4], in create_new_io_vars() 217 nir_variable *old_vars[MAX_SLOTS][4] = { { 0 } }; in create_new_io_vars() 234 nir_variable *first_var = old_vars[loc][frac]; in create_new_io_vars() 244 nir_variable *var = old_vars[loc][frac]; in create_new_io_vars() [all …]
|
H A D | nir_linking_helpers.c | 39 get_variable_io_mask(nir_variable *var, gl_shader_stage stage) in get_variable_io_mask() 62 is_non_generic_patch_var(nir_variable *var) in is_non_generic_patch_var() 71 get_num_components(nir_variable *var) in get_num_components() 96 nir_variable *var = nir_deref_instr_get_variable(deref); in add_output_reads() 135 nir_variable *var = nir_intrinsic_get_var(intrin, srcn); in remove_unused_io_access() 270 get_interp_type(nir_variable *var, const struct glsl_type *type, in get_interp_type() 290 get_interp_loc(nir_variable *var) in get_interp_loc() 402 mark_all_used_slots(nir_variable *var, uint64_t *slots_used, in mark_all_used_slots() 412 mark_used_slot(nir_variable *var, uint64_t *slots_used, unsigned offset) in mark_used_slot() 503 nir_variable *var; [all …]
|
H A D | nir_lower_clip_cull_distance_arrays.c | 72 nir_variable *old_distance_out_var; 73 nir_variable *old_distance_in_var; 78 nir_variable *new_distance_out_var; 79 nir_variable *new_distance_in_var; 95 get_unwrapped_array_length(nir_shader *nir, nir_variable *var) in get_unwrapped_array_length() 124 nir_variable *var, const char *in_name) in replace_var_declaration() 126 nir_variable **old_var; in replace_var_declaration() 127 nir_variable **new_var; in replace_var_declaration() 154 *new_var = rzalloc(sh, nir_variable); in replace_var_declaration() 225 nir_variable *new_var) in lower_distance_deref() [all …]
|
H A D | nir_lower_io_to_temporaries.c | 56 nir_variable *dest = exec_node_data(nir_variable, dest_node, node); in emit_copies() 57 nir_variable *src = exec_node_data(nir_variable, src_node, node); in emit_copies() 236 nir_variable *input = entry->data; in fixup_interpolation_instr() 284 static nir_variable * 285 create_shadow_temp(struct lower_io_state *state, nir_variable *var) in create_shadow_temp() 287 nir_variable *nvar = ralloc(state->shader, nir_variable); in create_shadow_temp() 292 nir_variable *temp = var; in create_shadow_temp() 352 nir_variable *output = create_shadow_temp(&state, var); in nir_lower_io_to_temporaries() 358 nir_variable *input = create_shadow_temp(&state, var); in nir_lower_io_to_temporaries()
|
H A D | nir_lower_io_to_scalar.c | 343 static nir_variable ** 344 get_channel_variables(struct hash_table *ht, nir_variable *var) in get_channel_variables() 346 nir_variable **chan_vars; in get_channel_variables() 349 chan_vars = (nir_variable **)calloc(4, sizeof(nir_variable *)); in get_channel_variables() 352 chan_vars = (nir_variable **)entry->data; in get_channel_variables() 384 nir_variable *var, struct hash_table *split_inputs, in lower_load_to_scalar_early() 391 nir_variable **chan_vars; in lower_load_to_scalar_early() 399 nir_variable *chan_var = chan_vars[var->data.location_frac + i]; in lower_load_to_scalar_early() 437 nir_variable *var, in lower_store_output_to_scalar_early() 444 nir_variable **chan_vars = get_channel_variables(split_outputs, var); in lower_store_output_to_scalar_early() [all …]
|
H A D | nir_split_per_member_structs.c | 27 static nir_variable * 28 find_var_member(struct nir_variable *var, unsigned member, in find_var_member() 36 nir_variable **members = map_entry->data; in find_var_member() 57 split_variable(struct nir_variable *var, nir_shader *shader, in split_variable() 65 nir_variable **members = in split_variable() 66 ralloc_array(dead_ctx, nir_variable *, var->num_members); in split_variable() 101 build_member_deref(nir_builder *b, nir_deref_instr *deref, nir_variable *member) in build_member_deref() 139 nir_variable *member = find_var_member(base->var, deref->strct.index, in rewrite_deref_instr()
|
H A D | nir_lower_const_arrays_to_uniforms.c | 43 nir_variable *var; 136 nir_variable *var = info->var; in lower_const_array_to_uniform() 165 nir_variable *uni = rzalloc(shader, nir_variable); in lower_const_array_to_uniform() 183 nir_variable *deref_var = nir_deref_instr_get_variable(deref); in lower_const_array_to_uniform() 306 nir_variable *var = nir_deref_instr_get_variable(dst_deref); in nir_lower_const_arrays_to_uniforms() 330 nir_variable *var = nir_deref_instr_get_variable(src_deref); in nir_lower_const_arrays_to_uniforms() 373 nir_variable *var = nir_deref_instr_get_variable(deref); in nir_lower_const_arrays_to_uniforms() 382 nir_variable *uni = (nir_variable *)entry->data; in nir_lower_const_arrays_to_uniforms()
|
/aosp_15_r20/external/mesa3d/src/gallium/drivers/r600/sfn/ |
H A D | sfn_nir_lower_fs_out_to_vector.cpp | 27 nir_variable *vlhs = nir_intrinsic_get_var(lhs, 0); in operator ()() 28 nir_variable *vrhs = nir_intrinsic_get_var(rhs, 0); in operator ()() 45 bool var_can_merge(const nir_variable *lhs, const nir_variable *rhs); 46 bool var_can_rewrite(nir_variable *var) const; 64 array<array<nir_variable *, 4>, 16> m_vars; 71 virtual bool var_can_rewrite_slot(nir_variable *var) const = 0; 74 nir_variable *var, 88 bool var_can_rewrite_slot(nir_variable *var) const override; 91 nir_variable *var, 192 NirLowerIOToVector::var_can_merge(const nir_variable *lhs, const nir_variable *rhs) in var_can_merge() [all …]
|
H A D | sfn_nir_vectorize_vs_inputs.c | 40 r600_variable_can_rewrite(nir_variable *var) in r600_variable_can_rewrite() 86 nir_variable *var1 = nir_intrinsic_get_var(intr1, 0); in r600_io_access_same_var() 87 nir_variable *var2 = nir_intrinsic_get_var(intr2, 0); in r600_io_access_same_var() 114 r600_correct_location(nir_variable *var) in r600_correct_location() 122 nir_variable *var, in r600_create_new_load() 157 nir_variable *updated_vars[16][4]) in r600_vec_instr_stack_pop() 165 nir_variable *var = nir_intrinsic_get_var(intr, 0); in r600_vec_instr_stack_pop() 168 nir_variable *new_var; in r600_vec_instr_stack_pop() 209 nir_variable *var = nir_intrinsic_get_var(intr, 0); in r600_hash_instr() 265 nir_variable *updated_vars[16][4]) in r600_vec_instr_set_remove() [all …]
|
/aosp_15_r20/external/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_nir_passes.c | 45 nir_variable **out_var) in d3d12_get_state_var() 49 nir_variable *var = nir_state_variable_create(b->shader, var_type, in d3d12_get_state_var() 58 lower_pos_write(nir_builder *b, struct nir_instr *instr, nir_variable **flip) in lower_pos_write() 67 nir_variable *var = nir_intrinsic_get_var(intr, 0); in lower_pos_write() 88 nir_variable *flip = NULL; in d3d12_lower_yflip() 110 nir_variable **depth_transform_var) in lower_pos_read() 119 nir_variable *var = nir_intrinsic_get_var(intr, 0); in lower_pos_read() 147 nir_variable *depth_transform = NULL; in d3d12_lower_depth_range() 162 nir_variable *num_workgroups; 199 is_color_output(nir_variable *var) in is_color_output() [all …]
|
/aosp_15_r20/external/mesa3d/src/microsoft/clc/ |
H A D | clc_nir.c | 35 load_ubo(nir_builder *b, nir_intrinsic_instr *intr, nir_variable *var, unsigned offset) in load_ubo() 50 nir_variable *var) in lower_load_base_global_invocation_id() 62 nir_variable *var) in lower_load_work_dim() 74 nir_variable *var) in lower_load_num_workgroups() 87 nir_variable *var) in lower_load_base_workgroup_id() 99 clc_nir_lower_system_values(nir_shader *nir, nir_variable *var) in clc_nir_lower_system_values() 141 nir_variable *var) in lower_load_kernel_input() 181 clc_nir_lower_kernel_input_loads(nir_shader *nir, nir_variable *var) in clc_nir_lower_kernel_input_loads() 209 static nir_variable * 215 nir_variable *var = in add_printf_var() [all …]
|
/aosp_15_r20/external/mesa3d/src/amd/vulkan/tests/ |
H A D | radv_nir_lower_hit_attrib_derefs_tests.cpp | 89 …nir_variable *vec3_var = nir_variable_create(b->shader, nir_var_ray_hit_attrib, glsl_vec_type(3), … in TEST_F() 90 …nir_variable *uint64_var = nir_variable_create(b->shader, nir_var_ray_hit_attrib, glsl_uint64_t_ty… in TEST_F() 91 …nir_variable *uint16_var = nir_variable_create(b->shader, nir_var_ray_hit_attrib, glsl_uint16_t_ty… in TEST_F() 92 …nir_variable *uint8_var = nir_variable_create(b->shader, nir_var_ray_hit_attrib, glsl_uint8_t_type… in TEST_F() 93 …nir_variable *bool_var = nir_variable_create(b->shader, nir_var_ray_hit_attrib, glsl_bool_type(), … in TEST_F() 95 nir_variable *vars[5] = { in TEST_F() 124 nir_variable *array_var = in TEST_F() 141 nir_variable *array_var = in TEST_F() 164 …nir_variable *struct_var = nir_variable_create(b->shader, nir_var_ray_hit_attrib, var_type, "hit_a… in TEST_F() 198 …nir_variable *struct_var = nir_variable_create(b->shader, nir_var_ray_hit_attrib, var_type, "hit_a… in TEST_F() [all …]
|
/aosp_15_r20/external/mesa3d/src/mesa/state_tracker/ |
H A D | st_draw_hw_select.c | 92 nir_variable *in_pos = nir_variable_create( in get_input_vertices() 140 nir_variable *culling_config = nir_variable_create( in face_culling() 196 nir_variable *name##_index = \ 214 clip_with_plane(nir_builder *b, nir_variable *vert, nir_variable *num_vert, in clip_with_plane() 217 nir_variable *all_clipped = nir_local_variable_create( in clip_with_plane() 221 nir_variable *dist = nir_local_variable_create( in clip_with_plane() 259 nir_variable *saved = in clip_with_plane() 262 nir_variable *vert_index = in clip_with_plane() 352 nir_variable *plane = nir_variable_create( in get_user_clip_plane() 363 nir_variable *depth_scale = nir_variable_create( in get_depth_range_transform() [all …]
|
/aosp_15_r20/external/mesa3d/src/gallium/frontends/lavapipe/ |
H A D | lvp_ray_tracing_pipeline.c | 248 nir_variable *origin; 249 nir_variable *dir; 250 nir_variable *inv_dir; 251 nir_variable *bvh_base; 252 nir_variable *current_node; 253 nir_variable *stack_base; 254 nir_variable *stack_ptr; 255 nir_variable *stack; 256 nir_variable *hit; 258 nir_variable *instance_addr; [all …]
|
/aosp_15_r20/external/mesa3d/src/gallium/auxiliary/nir/ |
H A D | nir_draw_helpers.c | 45 nir_variable *stip_tex; 53 nir_variable *pos = nir_get_variable_with_location(b->shader, nir_var_shader_in, in load_frag_coord() 142 nir_variable *tex_var = nir_variable_create(shader, nir_var_uniform, sampler2D, "stipple_tex"); in nir_lower_pstipple_fs() 158 nir_variable *line_width_input; 159 nir_variable *stipple_counter; 160 nir_variable *stipple_pattern; 175 nir_variable *var = nir_intrinsic_get_var(intrin, 0); in lower_aaline_instr() 239 nir_variable *stipple_counter, in nir_lower_aaline_fs() 240 nir_variable *stipple_pattern) in nir_lower_aaline_fs() 256 nir_variable *line_width = nir_variable_create(shader, nir_var_shader_in, in nir_lower_aaline_fs() [all …]
|
/aosp_15_r20/external/mesa3d/src/microsoft/spirv_to_dxil/ |
H A D | dxil_spirv_nir.c | 188 static nir_variable * 200 nir_variable *var = nir_variable_create( in add_runtime_data_var() 307 static nir_variable * 316 nir_variable *var = nir_variable_create( in add_push_constant_var() 428 nir_variable *var = nir_intrinsic_get_var(intrin, 0); in lower_yz_flip() 534 nir_variable *var = nir_intrinsic_get_var(intrin, 0); in discard_psiz_access() 556 nir_variable *psiz = NULL; in dxil_spirv_nir_discard_point_size_var() 579 nir_variable *pntc; 591 nir_variable *var = nir_intrinsic_get_var(intr, 0); in write_pntc_with_pos() 654 nir_variable *ubo_var = nir_get_binding_variable(nir, binding); in dxil_spirv_write_pntc() [all …]
|