Home
last modified time | relevance | path

Searched refs:nir_variable (Results 1 – 25 of 251) sorted by relevance

1234567891011

/third_party/mesa3d/src/compiler/nir/tests/
Dvars_tests.cpp36 nir_variable *create_var(nir_variable_mode mode, const glsl_type *type, in create_var()
44 nir_variable *create_int(nir_variable_mode mode, const char *name) { in create_int()
48 nir_variable *create_ivec2(nir_variable_mode mode, const char *name) { in create_ivec2()
52 nir_variable *create_ivec4(nir_variable_mode mode, const char *name) { in create_ivec4()
56 nir_variable **create_many_int(nir_variable_mode mode, const char *prefix, unsigned count) { in create_many_int()
57nir_variable **result = (nir_variable **)linear_alloc_child(lin_ctx, sizeof(nir_variable *) * coun… in create_many_int()
63 nir_variable **create_many_ivec2(nir_variable_mode mode, const char *prefix, unsigned count) { in create_many_ivec2()
64nir_variable **result = (nir_variable **)linear_alloc_child(lin_ctx, sizeof(nir_variable *) * coun… in create_many_ivec2()
70 nir_variable **create_many_ivec4(nir_variable_mode mode, const char *prefix, unsigned count) { in create_many_ivec4()
71nir_variable **result = (nir_variable **)linear_alloc_child(lin_ctx, sizeof(nir_variable *) * coun… in create_many_ivec4()
[all …]
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_clip.c43 static nir_variable *
47 nir_variable *var = rzalloc(shader, nir_variable); in create_clipdist_var()
74 create_clipdist_vars(nir_shader *shader, nir_variable **io_vars, in create_clipdist_vars()
97 store_clipdist_output(nir_builder *b, nir_variable *out, int location_offset, in store_clipdist_output()
113 load_clipdist_input(nir_builder *b, nir_variable *in, int location_offset, in load_clipdist_input()
196 nir_variable **clipvertex, in find_clipvertex_and_position_outputs()
197 nir_variable **position) in find_clipvertex_and_position_outputs()
230 nir_variable *var = nir_variable_create(b->shader, in get_ucp()
247 lower_clip_outputs(nir_builder *b, nir_variable *position, in lower_clip_outputs()
248 nir_variable *clipvertex, nir_variable **out, in lower_clip_outputs()
[all …]
Dnir_lower_io_arrays_to_elements.c36 get_io_offset(nir_builder *b, nir_deref_instr *deref, nir_variable *var, in get_io_offset()
84 static nir_variable **
85 get_array_elements(struct hash_table *ht, nir_variable *var, in get_array_elements()
88 nir_variable **elements; in get_array_elements()
103 elements = (nir_variable **) calloc(num_elements, sizeof(nir_variable *)); in get_array_elements()
106 elements = (nir_variable **) entry->data; in get_array_elements()
113 lower_array(nir_builder *b, nir_intrinsic_instr *intr, nir_variable *var, in lower_array()
130 nir_variable **elements = in lower_array()
140 nir_variable *element = elements[elements_index]; in lower_array()
202 deref_has_indirect(nir_builder *b, nir_variable *var, nir_deref_path *path) in deref_has_indirect()
[all …]
Dnir_lower_io_to_vector.c42 get_slot(const nir_variable *var) in get_slot()
51 get_per_vertex_type(const nir_shader *shader, const nir_variable *var, in get_per_vertex_type()
81 const nir_variable *a, const nir_variable *b, in variables_can_merge()
156 get_flat_type(const nir_shader *shader, nir_variable *old_vars[MAX_SLOTS][4], in get_flat_type()
157 unsigned *loc, nir_variable **first_var, unsigned *num_vertices) in get_flat_type()
169 nir_variable *var = old_vars[*loc][frac]; in get_flat_type()
212 nir_variable *new_vars[MAX_SLOTS][4], in create_new_io_vars()
215 nir_variable *old_vars[MAX_SLOTS][4] = {{0}}; in create_new_io_vars()
232 nir_variable *first_var = old_vars[loc][frac]; in create_new_io_vars()
242 nir_variable *var = old_vars[loc][frac]; in create_new_io_vars()
[all …]
Dnir_lower_two_sided_color.c37 nir_variable *front; /* COLn */
38 nir_variable *back; /* BFCn */
40 nir_variable *face;
50 static nir_variable *
54 nir_variable *var = nir_variable_create(shader, nir_var_shader_in, in create_input()
66 static nir_variable *
69 nir_variable *var = in create_face_input()
87 load_input(nir_builder *b, nir_variable *in) in load_input()
155 nir_variable *var = nir_intrinsic_get_var(intr, 0); in nir_lower_two_sided_color_block()
Dnir_split_per_member_structs.c33 static nir_variable *
34 find_var_member(struct nir_variable *var, unsigned member, in find_var_member()
42 nir_variable **members = map_entry->data; in find_var_member()
63 split_variable(struct nir_variable *var, nir_shader *shader, in split_variable()
71 nir_variable **members = in split_variable()
72 ralloc_array(dead_ctx, nir_variable *, var->num_members); in split_variable()
107 build_member_deref(nir_builder *b, nir_deref_instr *deref, nir_variable *member) in build_member_deref()
140 nir_variable *member = find_var_member(base->var, deref->strct.index, in rewrite_deref_instr()
Dnir_lower_io_to_temporaries.c56 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()
238 nir_variable *input = entry->data; in fixup_interpolation_instr()
289 static nir_variable *
290 create_shadow_temp(struct lower_io_state *state, nir_variable *var) in create_shadow_temp()
292 nir_variable *nvar = ralloc(state->shader, nir_variable); in create_shadow_temp()
297 nir_variable *temp = var; in create_shadow_temp()
355 nir_variable *output = create_shadow_temp(&state, var); in nir_lower_io_to_temporaries()
361 nir_variable *input = create_shadow_temp(&state, var); in nir_lower_io_to_temporaries()
Dnir_lower_io_to_scalar.c281 static nir_variable **
282 get_channel_variables(struct hash_table *ht, nir_variable *var) in get_channel_variables()
284 nir_variable **chan_vars; in get_channel_variables()
287 chan_vars = (nir_variable **) calloc(4, sizeof(nir_variable *)); in get_channel_variables()
290 chan_vars = (nir_variable **) entry->data; in get_channel_variables()
322 nir_variable *var, struct hash_table *split_inputs, in lower_load_to_scalar_early()
331 nir_variable **chan_vars; in lower_load_to_scalar_early()
339 nir_variable *chan_var = chan_vars[var->data.location_frac + i]; in lower_load_to_scalar_early()
381 nir_variable *var, in lower_store_output_to_scalar_early()
388 nir_variable **chan_vars = get_channel_variables(split_outputs, var); in lower_store_output_to_scalar_early()
[all …]
Dnir_linking_helpers.c39 get_variable_io_mask(nir_variable *var, gl_shader_stage stage) in get_variable_io_mask()
63 is_non_generic_patch_var(nir_variable *var) in is_non_generic_patch_var()
72 get_num_components(nir_variable *var) in get_num_components()
100 nir_variable *var = nir_deref_instr_get_variable(deref); in tcs_add_output_reads()
244 get_interp_type(nir_variable *var, const struct glsl_type *type, in get_interp_type()
264 get_interp_loc(nir_variable *var) in get_interp_loc()
379 mark_all_used_slots(nir_variable *var, uint64_t *slots_used, in mark_all_used_slots()
389 mark_used_slot(nir_variable *var, uint64_t *slots_used, unsigned offset) in mark_used_slot()
480 nir_variable *var;
597 nir_variable *in_var = nir_deref_instr_get_variable(deref); in gather_varying_component_info()
[all …]
Dnir_lower_const_arrays_to_uniforms.c43 nir_variable *var;
137 nir_variable *var = info->var; in lower_const_array_to_uniform()
166 nir_variable *uni = rzalloc(shader, nir_variable); in lower_const_array_to_uniform()
184 nir_variable *deref_var = nir_deref_instr_get_variable(deref); in lower_const_array_to_uniform()
307 nir_variable *var = nir_deref_instr_get_variable(dst_deref); in nir_lower_const_arrays_to_uniforms()
331 nir_variable *var = nir_deref_instr_get_variable(src_deref); in nir_lower_const_arrays_to_uniforms()
375 nir_variable *var = nir_deref_instr_get_variable(deref); in nir_lower_const_arrays_to_uniforms()
384 nir_variable *uni = (nir_variable *) entry->data; in nir_lower_const_arrays_to_uniforms()
Dnir_lower_point_size_mov.c37 nir_variable *out) in lower_impl()
41 nir_variable *in, *new_out = NULL; in lower_impl()
77 nir_variable *var = nir_intrinsic_get_var(intr, 0); in lower_impl()
109 nir_variable *out = in nir_lower_point_size_mov()
Dnir_split_64bit_vec3_and_vec4.c53 nir_variable *var = nir_intrinsic_get_var(intr, 0); in nir_split_64bit_vec3_and_vec4_filter()
61 nir_variable *var = nir_intrinsic_get_var(intr, 0); in nir_split_64bit_vec3_and_vec4_filter()
83 nir_variable *xy;
84 nir_variable *zw;
133 get_var_pair(nir_builder *b, nir_variable *old_var, in get_var_pair()
171 nir_variable *old_var = nir_intrinsic_get_var(intr, 0); in split_load_deref()
196 nir_variable *old_var = nir_intrinsic_get_var(intr, 0); in split_store_deref()
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_nir_vectorize_vs_inputs.c58 r600_variable_can_rewrite(nir_variable *var) in r600_variable_can_rewrite()
105 nir_variable *var1 = in r600_io_access_same_var()
107 nir_variable *var2 = in r600_io_access_same_var()
134 static unsigned r600_correct_location(nir_variable *var) in r600_correct_location()
140 r600_create_new_load(nir_builder *b, nir_intrinsic_instr *intr, nir_variable *var, in r600_create_new_load()
179 nir_variable *updated_vars[16][4]) in r600_vec_instr_stack_pop()
187 nir_variable *var = in r600_vec_instr_stack_pop()
191 nir_variable *new_var; in r600_vec_instr_stack_pop()
234 nir_variable *var = in r600_hash_instr()
289 nir_variable *updated_vars[16][4]) in r600_vec_instr_set_remove()
[all …]
Dsfn_nir_lower_fs_out_to_vector.cpp47 nir_variable *vlhs = nir_deref_instr_get_variable(nir_src_as_deref(lhs->src[0])); in operator ()()
48 nir_variable *vrhs = nir_deref_instr_get_variable(nir_src_as_deref(rhs->src[0])); in operator ()()
65 bool var_can_merge(const nir_variable *lhs, const nir_variable *rhs);
66 bool var_can_rewrite(nir_variable *var) const;
83 array<array<nir_variable *, 4>, 16> m_vars;
89 virtual bool var_can_rewrite_slot(nir_variable *var) const = 0;
90 virtual void create_new_io(nir_builder *b, nir_intrinsic_instr *intr, nir_variable *var,
102 bool var_can_rewrite_slot(nir_variable *var) const override;
103 void create_new_io(nir_builder *b, nir_intrinsic_instr *intr, nir_variable *var,
199 NirLowerIOToVector::var_can_merge(const nir_variable *lhs, in var_can_merge()
[all …]
/third_party/mesa3d/src/microsoft/clc/
Dclc_nir.c36 nir_variable *var) in lower_load_base_global_invocation_id()
54 nir_variable *var) in lower_load_work_dim()
72 nir_variable *var) in lower_load_num_workgroups()
90 nir_variable *var) in lower_load_base_workgroup_id()
107 clc_nir_lower_system_values(nir_shader *nir, nir_variable *var) in clc_nir_lower_system_values()
150 nir_variable *var) in lower_load_kernel_input()
189 clc_nir_lower_kernel_input_loads(nir_shader *nir, nir_variable *var) in clc_nir_lower_kernel_input_loads()
218 static nir_variable *
224 nir_variable *var = in add_printf_var()
235 nir_variable *printf_var = NULL; in clc_lower_printf_base()
[all …]
/third_party/mesa3d/src/compiler/glsl/
Dgl_nir_opt_dead_builtin_varyings.c59 nir_variable *texcoord_array;
64 nir_variable *color[2];
65 nir_variable *backcolor[2];
69 nir_variable *fog;
107 nir_variable *var = nir_deref_instr_get_variable(deref); in gather_info_on_varying_deref()
238 nir_variable *new_texcoord[MAX_TEXTURE_COORD_UNITS];
239 nir_variable *new_color[2];
240 nir_variable *new_backcolor[2];
241 nir_variable *new_fog;
244 static nir_variable *
[all …]
Dgl_nir_link_varyings.c52 get_varying_type(const nir_variable *var, gl_shader_stage stage) in get_varying_type()
64 varying_has_user_specified_location(const nir_variable *var) in varying_has_user_specified_location()
969 nir_variable *producer_var;
974 nir_variable *consumer_var;
1186 const struct glsl_type *type, const nir_variable *var) in is_varying_packing_safe()
1198 const nir_variable *var) in is_packing_disabled()
1212 varying_matches_compute_packing_class(const nir_variable *var) in varying_matches_compute_packing_class()
1253 varying_matches_compute_packing_order(const nir_variable *var) in varying_matches_compute_packing_order()
1295 nir_variable *producer_var, nir_variable *consumer_var) in varying_matches_record()
1367 const nir_variable *const var = (consumer_var != NULL) in varying_matches_record()
[all …]
Dgl_nir_lower_packed_varyings.c186 nir_variable **packed_varyings;
213 needs_lowering(struct lower_packed_varyings_state *state, nir_variable *var) in needs_lowering()
262 nir_variable *unpacked_var, in create_or_update_packed_varying()
271 nir_variable *packed_var = rzalloc(state->shader, nir_variable); in create_or_update_packed_varying()
305 nir_variable *var = state->packed_varyings[slot]; in create_or_update_packed_varying()
330 unsigned location, nir_variable *unpacked_var, in get_packed_varying_deref()
401 nir_variable *packed_var = nir_deref_instr_get_variable(packed_deref); in bitwise_assign_pack()
486 nir_variable *packed_var = nir_deref_instr_get_variable(packed_deref); in bitwise_assign_unpack()
600 nir_variable *unpacked_var, nir_deref_instr *unpacked_var_deref,
621 nir_variable *unpacked_var, nir_deref_instr *unpacked_var_deref, in lower_arraylike()
[all …]
Dgl_nir_lower_xfb_varying.c78 get_deref(nir_builder *b, const char *name, nir_variable *toplevel_var, in get_deref()
152 nir_variable *
154 nir_variable *toplevel_var) in gl_nir_lower_xfb_varying()
167 nir_variable *new_variable = rzalloc(shader, nir_variable); in gl_nir_lower_xfb_varying()
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_nir_passes.c45 nir_variable **out_var) in d3d12_get_state_var()
49 nir_variable *var = nir_variable_create(b->shader, in d3d12_get_state_var()
66 lower_pos_write(nir_builder *b, struct nir_instr *instr, nir_variable **flip) in lower_pos_write()
75 nir_variable *var = nir_intrinsic_get_var(intr, 0); in lower_pos_write()
96 nir_variable *flip = NULL; in d3d12_lower_yflip()
121 lower_load_face(nir_builder *b, struct nir_instr *instr, nir_variable *var) in lower_load_face()
143 nir_variable *var = nir_variable_create(nir, nir_var_shader_in, in d3d12_forward_front_face()
169 nir_variable **depth_transform_var) in lower_pos_read()
178 nir_variable *var = nir_intrinsic_get_var(intr, 0); in lower_pos_read()
207 nir_variable *depth_transform = NULL; in d3d12_lower_depth_range()
[all …]
Dd3d12_lower_point_sprite.c32 nir_variable *uniform; /* (1/w, 1/h, pt_sz, max_sz) */
33 nir_variable *pos_out;
34 nir_variable *psiz_out;
35 nir_variable *point_coord_out[10];
37 nir_variable *varying_out[VARYING_SLOT_MAX];
134 nir_variable *var = nir_deref_instr_get_variable(deref); in lower_store()
272 nir_variable *var = nir_variable_create(shader, in d3d12_lower_point_sprite()
281 nir_variable *pntcoord_var = nir_variable_create(shader, in d3d12_lower_point_sprite()
Dd3d12_compute_transforms.cpp40 nir_variable *count_ubo = nir_variable_create(b.shader, nir_var_mem_ubo, in get_indirect_draw_base_vertex_transform()
45 nir_variable *input_ssbo = nir_variable_create(b.shader, nir_var_mem_ssbo, in get_indirect_draw_base_vertex_transform()
47 nir_variable *output_ssbo = nir_variable_create(b.shader, nir_var_mem_ssbo, in get_indirect_draw_base_vertex_transform()
59 nir_variable *stride_ubo = NULL; in get_indirect_draw_base_vertex_transform()
108 nir_variable *output_so_data_var = nir_variable_create(b.shader, nir_var_mem_ssbo, in get_fake_so_buffer_copy_back()
110nir_variable *input_so_data_var = nir_variable_create(b.shader, nir_var_mem_ssbo, output_so_data_v… in get_fake_so_buffer_copy_back()
115 nir_variable *input_ubo = nir_variable_create(b.shader, nir_var_mem_ubo, in get_fake_so_buffer_copy_back()
122 nir_variable *state_var = nullptr; in get_fake_so_buffer_copy_back()
163 nir_variable *real_so_var = nir_variable_create(b.shader, nir_var_mem_ssbo, in get_fake_so_buffer_vertex_count()
168 nir_variable *state_var = nullptr; in get_fake_so_buffer_vertex_count()
[all …]
/third_party/mesa3d/src/mesa/state_tracker/
Dst_draw_hw_select.c93 nir_variable *in_pos = nir_variable_create( in get_input_vertices()
141 nir_variable *culling_config = nir_variable_create( in face_culling()
197 nir_variable *name##_index = \
215 clip_with_plane(nir_builder *b, nir_variable *vert, nir_variable *num_vert, in clip_with_plane()
218 nir_variable *all_clipped = nir_local_variable_create( in clip_with_plane()
222 nir_variable *dist = nir_local_variable_create( in clip_with_plane()
260 nir_variable *saved = in clip_with_plane()
263 nir_variable *vert_index = in clip_with_plane()
353 nir_variable *plane = nir_variable_create( in get_user_clip_plane()
364 nir_variable *depth_scale = nir_variable_create( in get_depth_range_transform()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/nir/
Dnir_draw_helpers.c45 nir_variable *stip_tex;
57 nir_variable *pos = nir_variable_create(b->shader, nir_var_shader_in, in load_frag_coord()
132 nir_variable *tex_var = nir_variable_create(shader, nir_var_uniform, sampler2D, "stipple_tex"); in nir_lower_pstipple_fs()
152 nir_variable *line_width_input;
168 nir_variable *var = nir_intrinsic_get_var(intrin, 0); in nir_lower_aaline_block()
224 nir_variable *line_width = nir_variable_create(shader, nir_var_shader_in, in nir_lower_aaline_fs()
247 nir_variable *input;
263 nir_variable *var = nir_intrinsic_get_var(intrin, 0); in nir_lower_aapoint_block()
346 nir_variable *aapoint_input = nir_variable_create(shader, nir_var_shader_in, in nir_lower_aapoint_fs()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shaderlib_nir.c75 deref_ssa(nir_builder *b, nir_variable *var) in deref_ssa()
122 nir_variable *img_src = nir_variable_create(b.shader, nir_var_image, src_img_type, "img_src"); in si_create_copy_image_cs()
125 nir_variable *img_dst = nir_variable_create(b.shader, nir_var_image, dst_img_type, "img_dst"); in si_create_copy_image_cs()
287 nir_variable *in_inner = in si_create_passthrough_tcs()
292 nir_variable *out_inner = in si_create_passthrough_tcs()
301 nir_variable *in_outer = in si_create_passthrough_tcs()
306 nir_variable *out_outer = in si_create_passthrough_tcs()
329 nir_variable *in = nir_variable_create(b.shader, nir_var_shader_in, type, name); in si_create_passthrough_tcs()
334 nir_variable *out = nir_variable_create(b.shader, nir_var_shader_out, type, name); in si_create_passthrough_tcs()

1234567891011