/external/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 …]
|
/external/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() 95 store_clipdist_output(nir_builder *b, nir_variable *out, nir_ssa_def **val) in store_clipdist_output() 117 load_clipdist_input(nir_builder *b, nir_variable *in, int location_offset, in load_clipdist_input() 193 nir_variable **clipvertex, in find_clipvertex_and_position_outputs() 194 nir_variable **position) in find_clipvertex_and_position_outputs() 227 nir_variable *var = nir_variable_create(b->shader, in get_ucp() 244 lower_clip_outputs(nir_builder *b, nir_variable *position, in lower_clip_outputs() 245 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() 204 deref_has_indirect(nir_builder *b, nir_variable *var, nir_deref_path *path) in deref_has_indirect() [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() 154 get_flat_type(const nir_shader *shader, nir_variable *old_vars[MAX_SLOTS][4], in get_flat_type() 155 unsigned *loc, nir_variable **first_var, unsigned *num_vertices) in get_flat_type() 167 nir_variable *var = old_vars[*loc][frac]; in get_flat_type() 210 nir_variable *new_vars[MAX_SLOTS][4], in create_new_io_vars() 213 nir_variable *old_vars[MAX_SLOTS][4] = {{0}}; in create_new_io_vars() 230 nir_variable *first_var = old_vars[loc][frac]; in create_new_io_vars() 240 nir_variable *var = old_vars[loc][frac]; in create_new_io_vars() [all …]
|
D | nir_lower_io_to_scalar.c | 138 static nir_variable ** 139 get_channel_variables(struct hash_table *ht, nir_variable *var) in get_channel_variables() 141 nir_variable **chan_vars; in get_channel_variables() 144 chan_vars = (nir_variable **) calloc(4, sizeof(nir_variable *)); in get_channel_variables() 147 chan_vars = (nir_variable **) entry->data; in get_channel_variables() 179 nir_variable *var, struct hash_table *split_inputs, in lower_load_to_scalar_early() 188 nir_variable **chan_vars; in lower_load_to_scalar_early() 196 nir_variable *chan_var = chan_vars[var->data.location_frac + i]; in lower_load_to_scalar_early() 243 nir_variable *var, in lower_store_output_to_scalar_early() 250 nir_variable **chan_vars = get_channel_variables(split_outputs, var); in lower_store_output_to_scalar_early() [all …]
|
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_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() 163 nir_variable *var = nir_intrinsic_get_var(intr, 0); in nir_lower_two_sided_color_block()
|
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() 353 nir_variable *output = create_shadow_temp(&state, var); in nir_lower_io_to_temporaries() 359 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() 63 get_num_components(nir_variable *var) in get_num_components() 91 nir_variable *var = nir_deref_instr_get_variable(deref); in tcs_add_output_reads() 215 get_interp_type(nir_variable *var, const struct glsl_type *type, in get_interp_type() 233 get_interp_loc(nir_variable *var) in get_interp_loc() 341 mark_all_used_slots(nir_variable *var, uint64_t *slots_used, in mark_all_used_slots() 351 mark_used_slot(nir_variable *var, uint64_t *slots_used, unsigned offset) in mark_used_slot() 442 nir_variable *var; 547 nir_variable *in_var = nir_deref_instr_get_variable(deref); in gather_varying_component_info() 604 nir_variable *out_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() 74 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 | 148 nir_variable *var = nir_intrinsic_get_var(store, 0); in shader_only_position_uses_view_index() 218 nir_variable *pos_var = NULL; in nir_lower_multiview() 239 nir_variable *loop_index_var = in nir_lower_multiview() 248 nir_variable *view_index_var = nir_local_variable_create( in nir_lower_multiview() 314 nir_variable *var = nir_intrinsic_get_var(intrin, 0); in nir_lower_multiview()
|
/external/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_shader_base.h | 79 const nir_variable *get_deref_location(const nir_src& src) const; 162 bool emit_load_input_deref(const nir_variable *var, nir_intrinsic_instr* instr); 163 bool emit_load_function_temp(const nir_variable *var, nir_intrinsic_instr *instr); 169 bool process_uniforms(nir_variable *uniform); 170 bool process_inputs(nir_variable *input); 171 bool process_outputs(nir_variable *output); 179 virtual bool do_process_inputs(nir_variable *input) = 0; 180 virtual bool do_process_outputs(nir_variable *output) = 0; 181 virtual bool do_emit_load_deref(const nir_variable *in_var, nir_intrinsic_instr* instr) = 0; 182 virtual bool do_emit_store_deref(const nir_variable *out_var, nir_intrinsic_instr* instr) = 0; [all …]
|
D | sfn_vertexstageexport.h | 20 virtual bool store_deref(const nir_variable *out_var, nir_intrinsic_instr* instr) = 0; 22 virtual bool do_process_outputs(nir_variable *output); 40 bool store_deref(const nir_variable *out_var, nir_intrinsic_instr* instr) override; 44 bool emit_varying_param(const nir_variable *out_var, nir_intrinsic_instr* instr); 45 bool emit_varying_pos(const nir_variable *out_var, nir_intrinsic_instr* instr, 47 bool emit_clip_vertices(const nir_variable *out_var, nir_intrinsic_instr* instr); 66 bool store_deref(const nir_variable *out_var, nir_intrinsic_instr* instr) override; 78 bool store_deref(const nir_variable *out_var, nir_intrinsic_instr* instr) override;
|
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, 197 NirLowerIOToVector::var_can_merge(const nir_variable *lhs, in var_can_merge() [all …]
|
D | sfn_shader_geometry.h | 39 bool do_emit_load_deref(const nir_variable *in_var, nir_intrinsic_instr* instr) override; 40 bool do_emit_store_deref(const nir_variable *out_var, nir_intrinsic_instr* instr) override; 46 const nir_variable *var; 50 bool do_process_inputs(nir_variable *input) override; 52 bool do_process_outputs(nir_variable *output) override;
|
D | sfn_shader_tcs.h | 19 bool do_process_inputs(nir_variable *input) override { return true;} in do_process_inputs() 20 bool do_process_outputs(nir_variable *output) override; 21 …bool do_emit_load_deref(const nir_variable *in_var, nir_intrinsic_instr* instr) override { return … in do_emit_load_deref() 22 …bool do_emit_store_deref(const nir_variable *out_var, nir_intrinsic_instr* instr) override { retur… in do_emit_store_deref()
|
D | sfn_shader_compute.h | 50 bool do_process_inputs(nir_variable *input) override; 51 bool do_process_outputs(nir_variable *output) override; 52 bool do_emit_load_deref(const nir_variable *in_var, nir_intrinsic_instr* instr) override; 53 bool do_emit_store_deref(const nir_variable *out_var, nir_intrinsic_instr* instr) override;
|
D | sfn_shader_fragment.h | 52 bool do_process_inputs(nir_variable *input) override; 54 bool do_process_outputs(nir_variable *output) override; 55 bool do_emit_load_deref(const nir_variable *in_var, nir_intrinsic_instr* instr) override; 56 bool do_emit_store_deref(const nir_variable *out_var, nir_intrinsic_instr* instr) override; 57 bool emit_export_pixel(const nir_variable *, nir_intrinsic_instr* instr, int outputs);
|
D | sfn_shader_tess_eval.h | 23 bool do_process_inputs(nir_variable *input) override; 24 bool do_process_outputs(nir_variable *output) override; 25 …bool do_emit_load_deref(const nir_variable *in_var, nir_intrinsic_instr* instr) override { return … in do_emit_load_deref() 26 bool do_emit_store_deref(const nir_variable *out_var, nir_intrinsic_instr* instr) override;
|
D | sfn_shader_vertex.h | 42 bool do_emit_load_deref(const nir_variable *in_var, nir_intrinsic_instr* instr) override; 59 bool do_emit_store_deref(const nir_variable *out_var, nir_intrinsic_instr* instr) override; 63 bool do_process_inputs(nir_variable *input) override; 65 bool do_process_outputs(nir_variable *output) override;
|
D | sfn_shader_compute.cpp | 108 bool ComputeShaderFromNir::do_process_inputs(UNUSED nir_variable *input) in do_process_inputs() 113 bool ComputeShaderFromNir::do_process_outputs(UNUSED nir_variable *output) in do_process_outputs() 118 bool ComputeShaderFromNir::do_emit_load_deref(UNUSED const nir_variable *in_var, in do_emit_load_deref() 124 bool ComputeShaderFromNir::do_emit_store_deref(UNUSED const nir_variable *out_var, in do_emit_store_deref()
|
/external/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() 134 nir_variable *tex_var = nir_variable_create(shader, nir_var_uniform, sampler2D, "stipple_tex"); in nir_lower_pstipple_fs() 153 nir_variable *line_width_input; 169 nir_variable *var = nir_intrinsic_get_var(intrin, 0); in nir_lower_aaline_block() 225 nir_variable *line_width = nir_variable_create(shader, nir_var_shader_in, in nir_lower_aaline_fs() 248 nir_variable *input; 264 nir_variable *var = nir_intrinsic_get_var(intrin, 0); in nir_lower_aapoint_block() 349 nir_variable *aapoint_input = nir_variable_create(shader, nir_var_shader_in, in nir_lower_aapoint_fs()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_nir_lower_builtin.c | 99 static nir_variable * 137 nir_variable *var = in get_variable() 165 nir_variable *var = in lower_builtin_block() 199 nir_variable *new_var = get_variable(state, &path, element); in lower_builtin_block()
|