Searched refs:nir_variable (Results 1 - 25 of 343) sorted by relevance

1234567891011>>

/xsrc/external/mit/MesaLib/dist/src/microsoft/clc/
H A Dclc_nir.h31 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);
H A Dclc_nir.c36 nir_variable *var)
54 nir_variable *var)
88 nir_variable *var)
106 nir_variable *var)
123 clc_nir_lower_system_values(nir_shader *nir, nir_variable *var)
169 nir_variable *var)
208 clc_nir_lower_kernel_input_loads(nir_shader *nir, nir_variable *var)
237 static nir_variable *
243 nir_variable *var =
254 nir_variable *printf_va
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/freedreno/ir3/
H A Dir3_image.h40 unsigned ir3_get_image_coords(const nir_variable *var, unsigned *flagsp);
41 type_t ir3_get_image_type(const nir_variable *var);
/xsrc/external/mit/MesaLib.old/dist/src/amd/common/
H A Dac_nir_to_llvm.h34 struct nir_variable;
59 struct nir_variable *variable,
/xsrc/external/mit/MesaLib/dist/src/amd/llvm/
H A Dac_nir_to_llvm.h35 struct nir_variable;
56 struct nir_shader *nir, struct nir_variable *variable,
/xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/
H A Dnir_lower_io_to_temporaries.c50 nir_variable *dest = exec_node_data(nir_variable, dest_node, node);
51 nir_variable *src = exec_node_data(nir_variable, src_node, node);
121 static nir_variable *
122 create_shadow_temp(struct lower_io_state *state, nir_variable *var)
124 nir_variable *nvar = ralloc(state->shader, nir_variable);
128 nir_variable *temp = var;
172 nir_variable *outpu
[all...]
H A Dnir_lower_io_to_vector.c51 variable_can_rewrite(const nir_variable *var)
70 const nir_variable *a, const nir_variable *b)
105 nir_variable *old_vars[MAX_VARYINGS_INCL_PATCH][4],
106 nir_variable *new_vars[MAX_VARYINGS_INCL_PATCH][4])
127 nir_variable *first_var = old_vars[loc][frac];
137 nir_variable *var = old_vars[loc][frac];
163 nir_variable *var = nir_variable_clone(old_vars[loc][first], shader);
177 build_array_deref_of_new_var(nir_builder *b, nir_variable *new_var,
200 nir_variable *old_input
[all...]
H A Dnir_lower_patch_vertices.c27 static nir_variable *
33 nir_variable *var =
62 nir_variable *var = NULL;
H A Dnir_lower_io_arrays_to_elements.c36 get_io_offset(nir_builder *b, nir_deref_instr *deref, nir_variable *var,
84 static nir_variable **
85 get_array_elements(struct hash_table *ht, nir_variable *var,
88 nir_variable **elements;
103 elements = (nir_variable **) calloc(num_elements, sizeof(nir_variable *));
106 elements = (nir_variable **) entry->data;
113 lower_array(nir_builder *b, nir_intrinsic_instr *intr, nir_variable *var,
118 nir_variable **elements =
128 nir_variable *elemen
[all...]
H A Dnir_sweep.c130 steal_list(nir, nir_variable, &impl->locals);
166 steal_list(nir, nir_variable, &nir->uniforms);
167 steal_list(nir, nir_variable, &nir->inputs);
168 steal_list(nir, nir_variable, &nir->outputs);
169 steal_list(nir, nir_variable, &nir->shared);
170 steal_list(nir, nir_variable, &nir->globals);
171 steal_list(nir, nir_variable, &nir->system_values);
H A Dnir_lower_clip.c43 static nir_variable *
47 nir_variable *var = rzalloc(shader, nir_variable);
68 store_clipdist_output(nir_builder *b, nir_variable *out, nir_ssa_def **val)
83 load_clipdist_input(nir_builder *b, nir_variable *in, nir_ssa_def **val)
166 nir_variable *position = NULL;
167 nir_variable *clipvertex = NULL;
169 nir_variable *out[2] = { NULL };
270 nir_variable **in)
307 nir_variable *i
[all...]
H A Dnir_lower_io_to_scalar.c132 static nir_variable **
133 get_channel_variables(struct hash_table *ht, nir_variable *var)
135 nir_variable **chan_vars;
138 chan_vars = (nir_variable **) calloc(4, sizeof(nir_variable *));
141 chan_vars = (nir_variable **) entry->data;
173 nir_variable *var, struct hash_table *split_inputs,
182 nir_variable **chan_vars;
190 nir_variable *chan_var = chan_vars[var->data.location_frac + i];
236 nir_variable *va
[all...]
/xsrc/external/mit/MesaLib/dist/src/compiler/nir/tests/
H A Dvars_tests.cpp36 nir_variable *create_var(nir_variable_mode mode, const glsl_type *type,
44 nir_variable *create_int(nir_variable_mode mode, const char *name) {
48 nir_variable *create_ivec2(nir_variable_mode mode, const char *name) {
52 nir_variable *create_ivec4(nir_variable_mode mode, const char *name) {
56 nir_variable **create_many_int(nir_variable_mode mode, const char *prefix, unsigned count) {
57 nir_variable **result = (nir_variable **)linear_alloc_child(lin_ctx, sizeof(nir_variable *) * count);
63 nir_variable **create_many_ivec2(nir_variable_mode mode, const char *prefix, unsigned count) {
64 nir_variable **resul
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/tests/
H A Dvars_tests.cpp36 nir_variable *create_var(nir_variable_mode mode, const glsl_type *type,
44 nir_variable *create_int(nir_variable_mode mode, const char *name) {
48 nir_variable *create_ivec2(nir_variable_mode mode, const char *name) {
52 nir_variable *create_ivec4(nir_variable_mode mode, const char *name) {
56 nir_variable **create_many_int(nir_variable_mode mode, const char *prefix, unsigned count) {
57 nir_variable **result = (nir_variable **)linear_alloc_child(lin_ctx, sizeof(nir_variable *) * count);
63 nir_variable **create_many_ivec2(nir_variable_mode mode, const char *prefix, unsigned count) {
64 nir_variable **resul
[all...]
/xsrc/external/mit/MesaLib/dist/src/compiler/nir/
H A Dnir_lower_clip.c43 static nir_variable *
47 nir_variable *var = rzalloc(shader, nir_variable);
73 create_clipdist_vars(nir_shader *shader, nir_variable **io_vars,
96 store_clipdist_output(nir_builder *b, nir_variable *out, nir_ssa_def **val)
110 load_clipdist_input(nir_builder *b, nir_variable *in, int location_offset,
180 nir_variable **clipvertex,
181 nir_variable **position)
214 nir_variable *var = nir_variable_create(b->shader,
231 lower_clip_outputs(nir_builder *b, nir_variable *positio
[all...]
H A Dnir_split_per_member_structs.c33 static nir_variable *
34 find_var_member(struct nir_variable *var, unsigned member,
42 nir_variable **members = map_entry->data;
63 split_variable(struct nir_variable *var, nir_shader *shader,
71 nir_variable **members =
72 ralloc_array(dead_ctx, nir_variable *, var->num_members);
107 build_member_deref(nir_builder *b, nir_deref_instr *deref, nir_variable *member)
140 nir_variable *member = find_var_member(base->var, deref->strct.index,
H A Dnir_lower_flatshade.c29 lower_input(nir_shader *shader, nir_variable *var)
H A Dnir_lower_patch_vertices.c27 static nir_variable *
33 nir_variable *var =
62 nir_variable *var = NULL;
H A Dnir_lower_point_size_mov.c37 nir_variable *out)
41 nir_variable *in;
75 nir_variable *out =
H A Dnir_lower_io_arrays_to_elements.c36 get_io_offset(nir_builder *b, nir_deref_instr *deref, nir_variable *var,
84 static nir_variable **
85 get_array_elements(struct hash_table *ht, nir_variable *var,
88 nir_variable **elements;
103 elements = (nir_variable **) calloc(num_elements, sizeof(nir_variable *));
106 elements = (nir_variable **) entry->data;
113 lower_array(nir_builder *b, nir_intrinsic_instr *intr, nir_variable *var,
130 nir_variable **elements =
140 nir_variable *elemen
[all...]
H A Dnir_lower_io_to_scalar.c137 static nir_variable **
138 get_channel_variables(struct hash_table *ht, nir_variable *var)
140 nir_variable **chan_vars;
143 chan_vars = (nir_variable **) calloc(4, sizeof(nir_variable *));
146 chan_vars = (nir_variable **) entry->data;
178 nir_variable *var, struct hash_table *split_inputs,
187 nir_variable **chan_vars;
195 nir_variable *chan_var = chan_vars[var->data.location_frac + i];
241 nir_variable *va
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/panfrost/
H A Dpan_blend_shaders.c108 nir_variable *c_src = nir_variable_create(shader, nir_var_shader_in, glsl_vector_type(GLSL_TYPE_FLOAT, 4), "gl_Color");
109 nir_variable *c_dst = nir_variable_create(shader, nir_var_shader_in, glsl_vector_type(GLSL_TYPE_FLOAT, 4), "gl_SecondaryColor");
110 nir_variable *c_out = nir_variable_create(shader, nir_var_shader_out, glsl_vector_type(GLSL_TYPE_FLOAT, 4), "gl_FragColor");
111 nir_variable *c_con = nir_variable_create(shader, nir_var_uniform, glsl_vector_type(GLSL_TYPE_FLOAT, 4), "constant");
/xsrc/external/mit/MesaLib/dist/src/microsoft/compiler/
H A Dnir_to_dxil.h44 nir_var_to_dxil_sysvalue_type(nir_variable *var, uint64_t other_stage_mask);
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sfn/
H A Dsfn_nir_lower_fs_out_to_vector.cpp47 nir_variable *vlhs = nir_deref_instr_get_variable(nir_src_as_deref(lhs->src[0]));
48 nir_variable *vrhs = nir_deref_instr_get_variable(nir_src_as_deref(rhs->src[0]));
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 *va
[all...]
H A Dsfn_nir_vectorize_vs_inputs.c58 r600_variable_can_rewrite(nir_variable *var)
105 nir_variable *var1 =
107 nir_variable *var2 =
134 static unsigned r600_correct_location(nir_variable *var)
140 r600_create_new_load(nir_builder *b, nir_intrinsic_instr *intr, nir_variable *var,
179 nir_variable *updated_vars[16][4])
187 nir_variable *var =
191 nir_variable *new_var;
234 nir_variable *var =
289 nir_variable *updated_var
[all...]

Completed in 21 milliseconds

1234567891011>>