HomeSort by: relevance | last modified time | path
    Searched refs:var (Results 1 - 25 of 1015) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /xsrc/external/mit/MesaLib/dist/src/compiler/nir/
nir_lower_flatshade.c 29 lower_input(nir_shader *shader, nir_variable *var)
31 if (var->data.interpolation == INTERP_MODE_NONE &&
32 (var->data.location == VARYING_SLOT_COL0 ||
33 var->data.location == VARYING_SLOT_COL1 ||
34 var->data.location == VARYING_SLOT_BFC0 ||
35 var->data.location == VARYING_SLOT_BFC1))
36 var->data.interpolation = INTERP_MODE_FLAT;
45 nir_foreach_shader_in_variable(var, shader) {
46 progress |= lower_input(shader, var);
nir_lower_patch_vertices.c 33 nir_variable *var = local
36 var->num_state_slots = 1;
37 var->state_slots = ralloc_array(var, nir_state_slot, var->num_state_slots);
38 memcpy(var->state_slots[0].tokens, tokens, sizeof(*tokens) * STATE_LENGTH);
39 var->state_slots[0].swizzle = SWIZZLE_XXXX;
41 return var;
62 nir_variable *var = NULL; local
87 if (!var)
    [all...]
nir_lower_global_vars_to_local.c 36 register_var_use(nir_variable *var, nir_function_impl *impl,
39 if (var->data.mode != nir_var_shader_temp)
43 _mesa_hash_table_search(var_func_table, var);
49 _mesa_hash_table_insert(var_func_table, var, impl);
61 register_var_use(deref->var, impl, var_func_table);
86 nir_foreach_variable_with_modes_safe(var, shader, nir_var_shader_temp) {
87 struct hash_entry *entry = _mesa_hash_table_search(var_func_table, var);
94 exec_node_remove(&var->node);
95 var->data.mode = nir_var_function_temp;
96 exec_list_push_tail(&impl->locals, &var->node)
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/compiler/glsl/
opt_dead_builtin_variables.cpp 38 foreach_in_list_safe(ir_variable, var, instructions) {
39 if (var->ir_type != ir_type_variable || var->data.used)
42 if (var->data.mode != ir_var_uniform
43 && var->data.mode != ir_var_auto
44 && var->data.mode != ir_var_system_value
45 && var->data.mode != other)
51 if ((var->data.mode == other || var->data.mode == ir_var_system_value)
52 && var->data.how_declared != ir_var_declared_implicitly
    [all...]
opt_dead_code.cpp 68 entry->var->name, (void *) entry->var,
88 if (entry->var->data.always_active_io)
95 if (entry->var->data.mode != ir_var_function_out &&
96 entry->var->data.mode != ir_var_function_inout &&
97 entry->var->data.mode != ir_var_shader_out &&
98 entry->var->data.mode != ir_var_shader_storage) {
109 entry->var->name, (void *) entry->var);
128 if (entry->var->data.mode == ir_var_uniform |
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/compiler/glsl/tests/
invalidate_locations_test.cpp 66 ir_variable *const var = local
71 EXPECT_FALSE(var->data.explicit_location);
72 EXPECT_EQ(-1, var->data.location);
74 var->data.location = VERT_ATTRIB_GENERIC0;
75 var->data.location_frac = 2;
77 ir.push_tail(var);
81 EXPECT_EQ(-1, var->data.location);
82 EXPECT_EQ(0u, var->data.location_frac);
83 EXPECT_FALSE(var->data.explicit_location);
84 EXPECT_TRUE(var->data.is_unmatched_generic_inout)
89 ir_variable *const var = local
112 ir_variable *const var = local
136 ir_variable *const var = local
159 ir_variable *const var = local
181 ir_variable *const var = local
    [all...]
builtin_variable_test.cpp 105 ir_variable *const var = node->as_variable(); local
107 string_starts_with_prefix(var->name, "gl_");
115 ir_variable *const var = node->as_variable(); local
117 if (var->data.mode != ir_var_uniform && var->data.mode != ir_var_system_value)
120 EXPECT_FALSE(var->data.explicit_location);
121 EXPECT_EQ(-1, var->data.location);
129 ir_variable *const var = node->as_variable(); local
131 if (var->data.mode != ir_var_auto)
134 EXPECT_FALSE(var->data.explicit_location)
144 ir_variable *const var = node->as_variable(); local
181 ir_variable *const var = node->as_variable(); local
196 ir_variable *const var = node->as_variable(); local
249 ir_variable *const var = node->as_variable(); local
269 ir_variable *const var = node->as_variable(); local
320 ir_variable *const var = node->as_variable(); local
366 ir_variable *const var = node->as_variable(); local
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/
opt_dead_builtin_variables.cpp 38 foreach_in_list_safe(ir_variable, var, instructions) {
39 if (var->ir_type != ir_type_variable || var->data.used)
42 if (var->data.mode != ir_var_uniform
43 && var->data.mode != ir_var_auto
44 && var->data.mode != ir_var_system_value
45 && var->data.mode != other)
51 if ((var->data.mode == other || var->data.mode == ir_var_system_value)
52 && var->data.how_declared != ir_var_declared_implicitly
    [all...]
opt_dead_code.cpp 68 entry->var->name, (void *) entry->var,
88 if (entry->var->data.always_active_io)
95 if (entry->var->data.mode != ir_var_function_out &&
96 entry->var->data.mode != ir_var_function_inout &&
97 entry->var->data.mode != ir_var_shader_out &&
98 entry->var->data.mode != ir_var_shader_storage) {
109 entry->var->name, (void *) entry->var);
128 if (entry->var->data.mode == ir_var_uniform |
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/tests/
invalidate_locations_test.cpp 62 ir_variable *const var = local
67 EXPECT_FALSE(var->data.explicit_location);
68 EXPECT_EQ(-1, var->data.location);
70 var->data.location = VERT_ATTRIB_GENERIC0;
71 var->data.location_frac = 2;
73 ir.push_tail(var);
77 EXPECT_EQ(-1, var->data.location);
78 EXPECT_EQ(0u, var->data.location_frac);
79 EXPECT_FALSE(var->data.explicit_location);
80 EXPECT_TRUE(var->data.is_unmatched_generic_inout)
85 ir_variable *const var = local
108 ir_variable *const var = local
132 ir_variable *const var = local
155 ir_variable *const var = local
177 ir_variable *const var = local
    [all...]
builtin_variable_test.cpp 101 ir_variable *const var = node->as_variable(); local
103 string_starts_with_prefix(var->name, "gl_");
111 ir_variable *const var = node->as_variable(); local
113 if (var->data.mode != ir_var_uniform && var->data.mode != ir_var_system_value)
116 EXPECT_FALSE(var->data.explicit_location);
117 EXPECT_EQ(-1, var->data.location);
125 ir_variable *const var = node->as_variable(); local
127 if (var->data.mode != ir_var_auto)
130 EXPECT_FALSE(var->data.explicit_location)
140 ir_variable *const var = node->as_variable(); local
177 ir_variable *const var = node->as_variable(); local
192 ir_variable *const var = node->as_variable(); local
245 ir_variable *const var = node->as_variable(); local
265 ir_variable *const var = node->as_variable(); local
316 ir_variable *const var = node->as_variable(); local
362 ir_variable *const var = node->as_variable(); local
    [all...]
  /xsrc/external/mit/libXext/dist/src/
globals.c 45 #define SetZero(t,var,z) t var = z
47 #define SetZero(t,var,z) t var
54 #define ZEROINIT(t,var,val) SetZero(t,var,val); \
55 SetZero (long, _libX_##var##Flag, 0); \
56 SetZero (void *, _libX_##var##Ptr, NULL)
62 #define ZEROINIT(t,var,val) SetZero (t, var, val
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/
nir_strip.c 33 strip_variable(nir_variable *var)
35 var->name = NULL;
37 if (var->data.mode != nir_var_shader_in &&
38 var->data.mode != nir_var_shader_out) {
43 var->data.location = 0;
66 nir_foreach_variable(var, &impl->locals)
67 strip_variable(var);
89 nir_foreach_variable(var, &shader->uniforms)
90 strip_variable(var);
91 nir_foreach_variable(var, &shader->inputs
    [all...]
nir_lower_patch_vertices.c 33 nir_variable *var = local
36 var->num_state_slots = 1;
37 var->state_slots = ralloc_array(var, nir_state_slot, var->num_state_slots);
38 memcpy(var->state_slots[0].tokens, tokens, sizeof(*tokens) * STATE_LENGTH);
39 var->state_slots[0].swizzle = SWIZZLE_XXXX;
41 return var;
62 nir_variable *var = NULL; local
87 if (!var)
    [all...]
nir_lower_global_vars_to_local.c 36 register_var_use(nir_variable *var, nir_function_impl *impl,
39 if (var->data.mode != nir_var_shader_temp)
43 _mesa_hash_table_search(var_func_table, var);
49 _mesa_hash_table_insert(var_func_table, var, impl);
61 register_var_use(deref->var, impl, var_func_table);
87 nir_variable *var = (void *)entry->key; local
90 assert(var->data.mode == nir_var_shader_temp);
93 exec_node_remove(&var->node);
94 var->data.mode = nir_var_function_temp;
95 exec_list_push_tail(&impl->locals, &var->node)
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/
u_tracepoints.py 52 args=[ArgStruct(type='const struct pipe_surface *', var='psurf')],
53 tp_struct=[Arg(type='uint16_t', name='width', var='psurf->width', c_format='%u'),
54 Arg(type='uint16_t', name='height', var='psurf->height', c_format='%u'),
55 Arg(type='uint8_t', name='nr_samples', var='psurf->nr_samples', c_format='%u'),
56 Arg(type='const char *', name='format', var='util_format_short_name(psurf->format)', c_format='%s')],
66 args=[ArgStruct(type='const struct pipe_framebuffer_state *', var='pfb')],
67 tp_struct=[Arg(type='uint16_t', name='width', var='pfb->width', c_format='%u'),
68 Arg(type='uint16_t', name='height', var='pfb->height', c_format='%u'),
69 Arg(type='uint8_t', name='layers', var='pfb->layers', c_format='%u'),
70 Arg(type='uint8_t', name='samples', var='pfb->samples', c_format='%u')
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/
freedreno_tracepoints.py 54 args=[TracepointArg(type='struct fd_batch *', var='batch', c_format='%x'),
55 TracepointArg(type='uint16_t', var='cleared', c_format='%x'),
56 TracepointArg(type='uint16_t', var='gmem_reason', c_format='%x'),
57 TracepointArg(type='uint16_t', var='num_draws', c_format='%u')],
63 args=[TracepointArg(type='uint16_t', var='nbins_x', c_format='%u'),
64 TracepointArg(type='uint16_t', var='nbins_y', c_format='%u'),
65 TracepointArg(type='uint16_t', var='bin_w', c_format='%u'),
66 TracepointArg(type='uint16_t', var='bin_h', c_format='%u')],
76 args=[TracepointArg(type='uint32_t', var='submit_id', c_format='%u'),
77 TracepointArg(type='enum pipe_format', var='cbuf0_format', c_format='%s', to_prim_type='util_format_description({})->short_name')
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/nouveau/
nouveau_statebuf.h 16 #define sb_init(var) {var, var + sizeof(var) / sizeof((var)[0])}
19 #define sb_init(var) {var}
30 #define sb_len(sb, var) ((sb).p - (var))
  /xsrc/external/mit/MesaLib/dist/src/freedreno/vulkan/
tu_tracepoints.py 61 args=[ArgStruct(type='const struct tu_framebuffer *', var='fb')],
62 tp_struct=[Arg(type='uint16_t', name='width', var='fb->width', c_format='%u'),
63 Arg(type='uint16_t', name='height', var='fb->height', c_format='%u'),
64 Arg(type='uint8_t', name='MRTs', var='fb->attachment_count', c_format='%u'),
65 # Arg(type='uint8_t', name='samples', var='fb->samples', c_format='%u'),
66 Arg(type='uint16_t', name='numberOfBins', var='fb->tile_count.width * fb->tile_count.height', c_format='%u'),
67 Arg(type='uint16_t', name='binWidth', var='fb->tile0.width', c_format='%u'),
68 Arg(type='uint16_t', name='binHeight', var='fb->tile0.height', c_format='%u')],
94 args=[Arg(type='enum VkFormat', var='format', c_format='%s', to_prim_type='vk_format_description({})->short_name'),
95 Arg(type='uint8_t', var='samples', c_format='%u')]
    [all...]
  /xsrc/external/mit/libX11/dist/src/
OCWrap.c 35 va_list var; local
40 va_start(var, om);
41 _XlcCountVaList(var, &num_args);
42 va_end(var);
44 va_start(var, om);
45 _XlcVaToArgList(var, num_args, &args);
46 va_end(var);
93 va_list var; local
98 va_start(var, oc);
99 _XlcCountVaList(var, &num_args)
119 va_list var; local
    [all...]
OMWrap.c 70 va_list var; local
75 va_start(var, om);
76 _XlcCountVaList(var, &num_args);
77 va_end(var);
79 va_start(var, om);
80 _XlcVaToArgList(var, num_args, &args);
81 va_end(var);
96 va_list var; local
101 va_start(var, om);
102 _XlcCountVaList(var, &num_args)
    [all...]
  /xsrc/external/mit/libX11/dist/src/xlibi18n/
ICWrap.c 105 _XIMCountVaList(va_list var, int *total_count)
111 for (attr = va_arg(var, char*); attr; attr = va_arg(var, char*)) {
113 _XIMCountNestedList(va_arg(var, XIMArg*), total_count);
115 (void)va_arg(var, XIMArg*);
122 _XIMVaToNestedList(va_list var, int max_count, XIMArg **args_return)
136 for (attr = va_arg(var, char*); attr; attr = va_arg(var, char*)) {
138 args += _XIMNestedListToNestedList(args, va_arg(var, XIMArg*));
141 args->value = va_arg(var, XPointer)
152 va_list var; local
170 va_list var; local
198 va_list var; local
231 va_list var; local
284 va_list var; local
314 va_list var; local
    [all...]
  /xsrc/external/mit/libXt/dist/src/
VarCreate.c 65 va_list var,
72 _XtVaToTypedArgList(var, count, &typed_args, &num_args);
88 va_list var; local
95 va_start(var, parent);
96 _XtCountVaList(var, &total_count, &typed_count);
97 va_end(var);
99 va_start(var, parent);
100 widget = _XtVaCreateWidget((String) name, widget_class, parent, var,
102 va_end(var);
113 va_list var; local
140 va_list var; local
173 va_list var; local
203 va_list var; local
231 va_list var; local
350 va_list var; local
371 va_list var; local
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/
radeon_variable.c 39 * Rewrite the index and writemask for the destination register of var
41 * care of rewriting the swizzles for the sources of var.
44 struct rc_variable * var,
50 unsigned int old_mask = rc_variable_writemask_sum(var);
54 for (var_ptr = var; var_ptr; var_ptr = var_ptr->Friend) {
73 readers = rc_variable_readers_union(var);
127 rc_error(var->C, "Rewrite of inst %u failed "
131 var->Inst->IP, reader->Inst->IP, src_type, new_index, new_writemask);
145 * Compute the live intervals for var and its friends.
147 void rc_variable_compute_live_intervals(struct rc_variable * var)
301 struct rc_variable * var; local
482 struct rc_variable * var = list_ptr->Item; local
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/compiler/
radeon_variable.c 39 * Rewrite the index and writemask for the destination register of var
41 * care of rewriting the swizzles for the sources of var.
44 struct rc_variable * var,
50 unsigned int old_mask = rc_variable_writemask_sum(var);
54 for (var_ptr = var; var_ptr; var_ptr = var_ptr->Friend) {
73 readers = rc_variable_readers_union(var);
127 rc_error(var->C, "Rewrite of inst %u failed "
131 var->Inst->IP, reader->Inst->IP, src_type, new_index, new_writemask);
145 * Compute the live intervals for var and its friends.
147 void rc_variable_compute_live_intervals(struct rc_variable * var)
301 struct rc_variable * var; local
482 struct rc_variable * var = list_ptr->Item; local
    [all...]

Completed in 15 milliseconds

1 2 3 4 5 6 7 8 91011>>