| /xsrc/external/mit/MesaLib/dist/src/compiler/nir/ |
| H A D | nir_lower_flatshade.c | 29 lower_input(nir_shader *shader, nir_variable *var) argument 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);
|
| H A D | nir_lower_patch_vertices.c | 33 nir_variable *var = local in function:make_uniform 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 in function:nir_lower_patch_vertices 87 if (!var) [all...] |
| H A D | nir_lower_global_vars_to_local.c | 36 register_var_use(nir_variable *var, nir_function_impl *impl, argument 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 [all...] |
| /xsrc/external/mit/MesaLib/dist/src/compiler/glsl/ |
| H A D | 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 [all...] |
| H A D | 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 [all...] |
| /xsrc/external/mit/MesaLib/dist/src/compiler/glsl/tests/ |
| H A D | invalidate_locations_test.cpp | 66 ir_variable *const var = local in function:TEST_F 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 89 ir_variable *const var = local in function:TEST_F 112 ir_variable *const var = local in function:TEST_F 136 ir_variable *const var = local in function:TEST_F 159 ir_variable *const var = local in function:TEST_F 181 ir_variable *const var = local in function:TEST_F [all...] |
| H A D | builtin_variable_test.cpp | 105 ir_variable *const var = node->as_variable(); local in function:common_builtin::names_start_with_gl 107 string_starts_with_prefix(var->name, "gl_"); 115 ir_variable *const var = node->as_variable(); local in function:common_builtin::uniforms_and_system_values_dont_have_explicit_location 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 in function:common_builtin::constants_are_constant 131 if (var->data.mode != ir_var_auto) 134 EXPECT_FALSE(var 144 ir_variable *const var = node->as_variable(); local in function:common_builtin::no_invalid_variable_modes 181 ir_variable *const var = node->as_variable(); local in function:TEST_F 196 ir_variable *const var = node->as_variable(); local in function:TEST_F 249 ir_variable *const var = node->as_variable(); local in function:TEST_F 269 ir_variable *const var = node->as_variable(); local in function:TEST_F 320 ir_variable *const var = node->as_variable(); local in function:TEST_F 366 ir_variable *const var = node->as_variable(); local in function:TEST_F [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/ |
| H A D | 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 [all...] |
| H A D | 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 [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/tests/ |
| H A D | invalidate_locations_test.cpp | 62 ir_variable *const var = local in function:TEST_F 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 85 ir_variable *const var = local in function:TEST_F 108 ir_variable *const var = local in function:TEST_F 132 ir_variable *const var = local in function:TEST_F 155 ir_variable *const var = local in function:TEST_F 177 ir_variable *const var = local in function:TEST_F [all...] |
| H A D | builtin_variable_test.cpp | 101 ir_variable *const var = node->as_variable(); local in function:common_builtin::names_start_with_gl 103 string_starts_with_prefix(var->name, "gl_"); 111 ir_variable *const var = node->as_variable(); local in function:common_builtin::uniforms_and_system_values_dont_have_explicit_location 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 in function:common_builtin::constants_are_constant 127 if (var->data.mode != ir_var_auto) 130 EXPECT_FALSE(var 140 ir_variable *const var = node->as_variable(); local in function:common_builtin::no_invalid_variable_modes 177 ir_variable *const var = node->as_variable(); local in function:TEST_F 192 ir_variable *const var = node->as_variable(); local in function:TEST_F 245 ir_variable *const var = node->as_variable(); local in function:TEST_F 265 ir_variable *const var = node->as_variable(); local in function:TEST_F 316 ir_variable *const var = node->as_variable(); local in function:TEST_F 362 ir_variable *const var = node->as_variable(); local in function:TEST_F [all...] |
| /xsrc/external/mit/libXext/dist/src/ |
| H A D | 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, va [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/ |
| H A D | nir_strip.c | 33 strip_variable(nir_variable *var) argument 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, [all...] |
| H A D | nir_lower_patch_vertices.c | 33 nir_variable *var = local in function:make_uniform 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 in function:nir_lower_patch_vertices 87 if (!var) [all...] |
| H A D | nir_lower_global_vars_to_local.c | 36 register_var_use(nir_variable *var, nir_function_impl *impl, argument 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 in function:nir_lower_global_vars_to_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 [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/ |
| H A D | 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 [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ |
| H A D | 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 [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/nouveau/ |
| H A D | 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/ |
| H A D | 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 [all...] |
| /xsrc/external/mit/libX11/dist/src/ |
| H A D | OCWrap.c | 35 va_list var; local in function:XCreateOC 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 in function:XSetOCValues 98 va_start(var, oc); 99 _XlcCountVaList(var, 119 va_list var; local in function:XGetOCValues [all...] |
| H A D | OMWrap.c | 70 va_list var; local in function:XSetOMValues 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 in function:XGetOMValues 101 va_start(var, om); 102 _XlcCountVaList(var, [all...] |
| /xsrc/external/mit/libXt/dist/src/ |
| H A D | VarCreate.c | 65 va_list var, 72 _XtVaToTypedArgList(var, count, &typed_args, &num_args); 88 va_list var; local in function:XtVaCreateWidget 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 in function:XtVaCreateManagedWidget 62 _XtVaCreateWidget(String name,WidgetClass widget_class,Widget parent,va_list var,int count) argument 140 va_list var; local in function:XtVaAppCreateShell 173 va_list var; local in function:XtVaCreatePopupShell 203 va_list var; local in function:XtVaSetValues 231 va_list var; local in function:XtVaSetSubvalues 350 va_list var; local in function:XtVaOpenApplication 371 va_list var; local in function:XtVaAppInitialize [all...] |
| /xsrc/external/mit/libX11/dist/src/xlibi18n/ |
| H A D | ICWrap.c | 105 _XIMCountVaList(va_list var, int *total_count) argument 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) argument 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, XPointe 152 va_list var; local in function:XVaCreateNestedList 170 va_list var; local in function:XSetIMValues 198 va_list var; local in function:XGetIMValues 231 va_list var; local in function:XCreateIC 284 va_list var; local in function:XGetICValues 314 va_list var; local in function:XSetICValues [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/compiler/ |
| H A D | 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) argument 43 rc_variable_change_dst(struct rc_variable * var,unsigned int new_index,unsigned int new_writemask) argument 262 rc_variable_add_friend(struct rc_variable * var,struct rc_variable * friend) argument 301 struct rc_variable * var; local in function:get_variable_helper 391 rc_variable_writemask_sum(struct rc_variable * var) argument 406 rc_variable_readers_union(struct rc_variable * var) argument 459 variable_writes_src(struct rc_variable * var,unsigned int src_type,void * src) argument 482 struct rc_variable * var = list_ptr->Item; local in function:rc_variable_list_get_writers 521 rc_variable_print(struct rc_variable * var) argument [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/ |
| H A D | 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) argument 43 rc_variable_change_dst(struct rc_variable * var,unsigned int new_index,unsigned int new_writemask) argument 262 rc_variable_add_friend(struct rc_variable * var,struct rc_variable * friend) argument 301 struct rc_variable * var; local in function:get_variable_helper 391 rc_variable_writemask_sum(struct rc_variable * var) argument 406 rc_variable_readers_union(struct rc_variable * var) argument 459 variable_writes_src(struct rc_variable * var,unsigned int src_type,void * src) argument 482 struct rc_variable * var = list_ptr->Item; local in function:rc_variable_list_get_writers 521 rc_variable_print(struct rc_variable * var) argument [all...] |