/third_party/mesa3d/src/compiler/nir/tests/ |
D | vars_tests.cpp | 36 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() 57 …nir_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() 64 …nir_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() 71 …nir_variable **result = (nir_variable **)linear_alloc_child(lin_ctx, sizeof(nir_variable *) * coun… in create_many_ivec4() [all …]
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_lower_clip.c | 43 static nir_variable * 47 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() 96 store_clipdist_output(nir_builder *b, nir_variable *out, nir_ssa_def **val) in store_clipdist_output() 110 load_clipdist_input(nir_builder *b, nir_variable *in, int location_offset, in load_clipdist_input() 180 nir_variable **clipvertex, in find_clipvertex_and_position_outputs() 181 nir_variable **position) in find_clipvertex_and_position_outputs() 214 nir_variable *var = nir_variable_create(b->shader, in get_ucp() 231 lower_clip_outputs(nir_builder *b, nir_variable *position, in lower_clip_outputs() 232 nir_variable *clipvertex, nir_variable **out, in lower_clip_outputs() [all …]
|
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() 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 …]
|
D | nir_lower_io_to_scalar.c | 137 static nir_variable ** 138 get_channel_variables(struct hash_table *ht, nir_variable *var) in get_channel_variables() 140 nir_variable **chan_vars; in get_channel_variables() 143 chan_vars = (nir_variable **) calloc(4, sizeof(nir_variable *)); in get_channel_variables() 146 chan_vars = (nir_variable **) entry->data; in get_channel_variables() 178 nir_variable *var, struct hash_table *split_inputs, in lower_load_to_scalar_early() 187 nir_variable **chan_vars; in lower_load_to_scalar_early() 195 nir_variable *chan_var = chan_vars[var->data.location_frac + i]; in lower_load_to_scalar_early() 241 nir_variable *var, in lower_store_output_to_scalar_early() 248 nir_variable **chan_vars = get_channel_variables(split_outputs, var); in lower_store_output_to_scalar_early() [all …]
|
D | nir_lower_io_to_vector.c | 42 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 …]
|
D | nir_lower_two_sided_color.c | 37 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()
|
D | nir_split_per_member_structs.c | 33 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()
|
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() 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()
|
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() 99 nir_variable *var = nir_deref_instr_get_variable(deref); in tcs_add_output_reads() 232 get_interp_type(nir_variable *var, const struct glsl_type *type, in get_interp_type() 250 get_interp_loc(nir_variable *var) in get_interp_loc() 362 mark_all_used_slots(nir_variable *var, uint64_t *slots_used, in mark_all_used_slots() 372 mark_used_slot(nir_variable *var, uint64_t *slots_used, unsigned offset) in mark_used_slot() 463 nir_variable *var; 573 nir_variable *in_var = nir_deref_instr_get_variable(deref); in gather_varying_component_info() [all …]
|
D | nir_lower_point_size_mov.c | 37 nir_variable *out) in lower_impl() 41 nir_variable *in; in lower_impl() 75 nir_variable *out = in nir_lower_point_size_mov()
|
D | nir_lower_patch_vertices.c | 27 static nir_variable * 33 nir_variable *var = in make_uniform() 62 nir_variable *var = NULL; in nir_lower_patch_vertices()
|
D | nir_lower_multiview.c | 151 nir_variable *var = nir_intrinsic_get_var(store, 0); in shader_only_position_uses_view_index() 221 nir_variable *pos_var = NULL; in nir_lower_multiview() 242 nir_variable *loop_index_var = in nir_lower_multiview() 251 nir_variable *view_index_var = nir_local_variable_create( in nir_lower_multiview() 317 nir_variable *var = nir_intrinsic_get_var(intrin, 0); in nir_lower_multiview()
|
D | nir_lower_clip_cull_distance_arrays.c | 41 get_unwrapped_array_length(nir_shader *nir, nir_variable *var) in get_unwrapped_array_length() 64 nir_variable *cull = NULL; in combine_clip_cull() 65 nir_variable *clip = NULL; in combine_clip_cull()
|
D | nir_lower_bitmap.c | 55 static nir_variable * 58 nir_variable *texcoord = in get_texcoord() 86 nir_variable *tex_var = in lower_bitmap()
|
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_nir_vectorize_vs_inputs.c | 58 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 …]
|
D | sfn_nir_lower_fs_out_to_vector.cpp | 47 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 …]
|
D | sfn_shader_base.h | 79 const nir_variable *get_deref_location(const nir_src& src) const; 169 bool emit_load_function_temp(const nir_variable *var, nir_intrinsic_instr *instr); 173 bool process_uniforms(nir_variable *uniform); 188 std::set<nir_variable*> m_arrays; 193 std::map<unsigned, nir_variable*> m_var_derefs; 194 std::map<const nir_variable *, nir_variable_mode> m_var_mode;
|
D | sfn_emittexinstruction.h | 43 const nir_variable *sampler_deref; 44 const nir_variable *texture_deref; 90 SamplerId get_sampler_id(int sampler_id, const nir_variable *deref);
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_nir_passes.c | 44 nir_variable **out_var) in get_state_var() 48 nir_variable *var = nir_variable_create(b->shader, in get_state_var() 65 lower_pos_write(nir_builder *b, struct nir_instr *instr, nir_variable **flip) in lower_pos_write() 74 nir_variable *var = nir_intrinsic_get_var(intr, 0); in lower_pos_write() 95 nir_variable *flip = NULL; in d3d12_lower_yflip() 119 lower_load_face(nir_builder *b, struct nir_instr *instr, nir_variable *var) in lower_load_face() 141 nir_variable *var = nir_variable_create(nir, nir_var_shader_in, in d3d12_forward_front_face() 167 nir_variable **depth_transform_var) in lower_pos_read() 176 nir_variable *var = nir_intrinsic_get_var(intr, 0); in lower_pos_read() 205 nir_variable *depth_transform = NULL; in d3d12_lower_depth_range() [all …]
|
D | d3d12_lower_point_sprite.c | 32 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[9]; 37 nir_variable *varying_out[VARYING_SLOT_MAX]; 134 nir_variable *var = nir_deref_instr_get_variable(deref); in lower_store() 268 nir_variable *var = nir_variable_create(shader, in d3d12_lower_point_sprite()
|
/third_party/mesa3d/src/microsoft/clc/ |
D | clc_nir.c | 36 nir_variable *var) in lower_load_base_global_invocation_id() 54 nir_variable *var) in lower_load_work_dim() 88 nir_variable *var) in lower_load_num_workgroups() 106 nir_variable *var) in lower_load_base_workgroup_id() 123 clc_nir_lower_system_values(nir_shader *nir, nir_variable *var) in clc_nir_lower_system_values() 169 nir_variable *var) in lower_load_kernel_input() 208 clc_nir_lower_kernel_input_loads(nir_shader *nir, nir_variable *var) in clc_nir_lower_kernel_input_loads() 237 static nir_variable * 243 nir_variable *var = in add_printf_var() 254 nir_variable *printf_var = NULL; in clc_lower_printf_base() [all …]
|
D | clc_nir.h | 31 clc_nir_lower_system_values(nir_shader *nir, nir_variable *var); 32 bool clc_nir_lower_kernel_input_loads(nir_shader *nir, nir_variable *var);
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_compiler.c | 44 nir_variable *vs_pushconst; in create_vs_pushconst() 61 nir_variable *cs_pushconst; in create_cs_pushconst() 195 nir_variable *var = nir_deref_instr_get_variable(deref); in lower_64bit_vertex_attribs_instr() 202 nir_variable *var2 = nir_variable_clone(var, b->shader); in lower_64bit_vertex_attribs_instr() 346 …nir_variable *var = nir_find_variable_with_location(shader, nir_var_shader_out, FRAG_RESULT_DATA1); in lower_dual_blend() 466 nir_variable *var = nir_deref_instr_get_variable(nir_src_as_deref(intr->src[0])); in lower_fbfetch_instr() 470 nir_variable *fbfetch = nir_variable_clone(data, b->shader); in lower_fbfetch_instr() 489 lower_fbfetch(nir_shader *shader, nir_variable **fbfetch) in lower_fbfetch() 542 nir_variable *var = NULL; in update_so_info() 568 nir_variable **split; [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/nir/ |
D | nir_draw_helpers.c | 45 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() 151 nir_variable *line_width_input; 167 nir_variable *var = nir_intrinsic_get_var(intrin, 0); in nir_lower_aaline_block() 223 nir_variable *line_width = nir_variable_create(shader, nir_var_shader_in, in nir_lower_aaline_fs() 246 nir_variable *input; 262 nir_variable *var = nir_intrinsic_get_var(intrin, 0); in nir_lower_aapoint_block() 345 nir_variable *aapoint_input = nir_variable_create(shader, nir_var_shader_in, in nir_lower_aapoint_fs()
|
/third_party/mesa3d/src/microsoft/compiler/ |
D | dxil_signature.c | 58 get_interpolation(nir_variable *var) in get_interpolation() 81 in_sysvalue_name(nir_variable *var) in in_sysvalue_name() 100 get_additional_semantic_info(nir_shader *s, nir_variable *var, struct semantic_info *info, in get_additional_semantic_info() 160 typedef void (*semantic_info_proc)(nir_variable *var, struct semantic_info *info, bool vulkan); 163 get_semantic_vs_in_name(nir_variable *var, struct semantic_info *info, bool vulkan) in get_semantic_vs_in_name() 177 get_semantic_sv_name(nir_variable *var, struct semantic_info *info, bool _vulkan) in get_semantic_sv_name() 203 get_semantic_ps_outname(nir_variable *var, struct semantic_info *info) in get_semantic_ps_outname() 246 get_semantic_name(nir_variable *var, struct semantic_info *info, in get_semantic_name() 290 get_semantic_in_name(nir_variable *var, struct semantic_info *info, bool vulkan) in get_semantic_in_name() 297 get_semantic_gs_in_name(nir_variable *var, struct semantic_info *info, bool vulkan) in get_semantic_gs_in_name() [all …]
|