Home
last modified time | relevance | path

Searched refs:ralloc_array (Results 1 – 25 of 117) sorted by relevance

12345

/aosp_15_r20/external/mesa3d/src/gallium/drivers/iris/
H A Diris_disk_cache.c228 ralloc_array(NULL, uint32_t, num_system_values); in iris_disk_cache_retrieve()
239 ralloc_array(NULL, struct brw_shader_reloc, brw->num_relocs); in iris_disk_cache_retrieve()
247 brw->param = ralloc_array(NULL, uint32_t, brw->nr_params); in iris_disk_cache_retrieve()
254 ralloc_array(NULL, struct elk_shader_reloc, elk->num_relocs); in iris_disk_cache_retrieve()
262 elk->param = ralloc_array(NULL, uint32_t, elk->nr_params); in iris_disk_cache_retrieve()
/aosp_15_r20/external/mesa3d/src/freedreno/ir3/
H A Dir3_liveness.c129 BITSET_WORD *tmp_live = ralloc_array(live, BITSET_WORD, bitset_words); in ir3_calc_liveness_for()
130 live->live_in = ralloc_array(live, BITSET_WORD *, block_count); in ir3_calc_liveness_for()
131 live->live_out = ralloc_array(live, BITSET_WORD *, block_count); in ir3_calc_liveness_for()
H A Dir3_reconvergence.c119 ralloc_array(mem_ctx, struct logical_edge, edge_count); in ir3_calc_reconvergence()
121 ralloc_array(mem_ctx, struct block_data, index); in ir3_calc_reconvergence()
/aosp_15_r20/external/mesa3d/src/compiler/nir/
H A Dnir_clone.c135 nc->elements = ralloc_array(nvar, nir_constant *, c->num_elements); in nir_constant_clone()
156 nvar->state_slots = ralloc_array(nvar, nir_state_slot, var->num_state_slots); in nir_variable_clone()
168 nvar->members = ralloc_array(nvar, struct nir_variable_data, in nir_variable_clone()
691 nfxn->params = ralloc_array(ns, nir_parameter, fxn->num_params); in nir_function_clone()
702 nfxn->subroutine_types = ralloc_array(ns, const struct glsl_type *, in nir_function_clone()
731 u_printf_info *infos = ralloc_array(mem_ctx, u_printf_info, s->printf_info_count); in clone_printf_info()
H A Dnir_lower_const_arrays_to_uniforms.c103 ret->elements = ralloc_array(mem_ctx, nir_constant *, ret->num_elements); in rebuild_const_array_initialiser()
114 ret->elements = ralloc_array(mem_ctx, nir_constant *, ret->num_elements); in rebuild_const_array_initialiser()
248 struct var_info *var_infos = ralloc_array(NULL, struct var_info, num_locals); in nir_lower_const_arrays_to_uniforms()
H A Dnir_phi_builder.c101 pb->blocks = ralloc_array(pb, nir_block *, pb->num_blocks); in nir_phi_builder_create()
110 pb->W = ralloc_array(pb, nir_block *, pb->num_blocks); in nir_phi_builder_create()
H A Dnir_serialize.c194 c->elements = ralloc_array(nvar, nir_constant *, c->num_elements); in read_constant()
384 var->state_slots = ralloc_array(var, nir_state_slot, in read_variable()
403 var->members = ralloc_array(var, struct nir_variable_data, in read_variable()
2012 fxn->params = ralloc_array(fxn, nir_parameter, fxn->num_params); in read_function()
2234 ralloc_array(mem_ctx, u_printf_info, *printf_info_count); in nir_deserialize_printf_info()
2240 info->arg_sizes = ralloc_array(mem_ctx, unsigned, info->num_args); in nir_deserialize_printf_info()
2243 info->strings = ralloc_array(mem_ctx, char, info->string_size); in nir_deserialize_printf_info()
/aosp_15_r20/external/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_reorder_uniforms.c76 uint32_t *uniform_data = ralloc_array(c, uint32_t, next_uniform); in qir_reorder_uniforms()
78 ralloc_array(c, enum quniform_contents, next_uniform); in qir_reorder_uniforms()
/aosp_15_r20/external/mesa3d/src/gallium/drivers/crocus/
H A Dcrocus_disk_cache.c178 ralloc_array(NULL, enum elk_param_builtin, num_system_values); in crocus_disk_cache_retrieve()
185 prog_data->param = ralloc_array(NULL, uint32_t, prog_data->nr_params); in crocus_disk_cache_retrieve()
/aosp_15_r20/external/mesa3d/src/gallium/drivers/v3d/
H A Dv3d_disk_cache.c162 ralloc_array(shader->prog_data.base, enum quniform_contents, ulist_count); in v3d_disk_cache_retrieve()
166 ralloc_array(shader->prog_data.base, uint32_t, ulist_count); in v3d_disk_cache_retrieve()
/aosp_15_r20/external/mesa3d/src/gallium/drivers/lima/ir/gp/
H A Dregalloc.c604 ctx.live = ralloc_array(ctx.mem_ctx, BITSET_WORD, ctx.bitset_words); in gpir_regalloc_prog()
605 ctx.worklist = ralloc_array(ctx.mem_ctx, unsigned, comp->cur_reg); in gpir_regalloc_prog()
606 ctx.stack = ralloc_array(ctx.mem_ctx, unsigned, comp->cur_reg); in gpir_regalloc_prog()
/aosp_15_r20/external/mesa3d/src/intel/compiler/elk/
H A Delk_vec4_live_variables.cpp224 start = ralloc_array(mem_ctx, int, num_vars); in vec4_live_variables()
225 end = ralloc_array(mem_ctx, int, num_vars); in vec4_live_variables()
H A Delk_fs_cse.cpp213 elk_fs_reg *payload = ralloc_array(bld.shader->mem_ctx, elk_fs_reg, in create_copy_instr()
230 elk_fs_reg *payload = ralloc_array(bld.shader->mem_ctx, elk_fs_reg, sources); in create_copy_instr()
/aosp_15_r20/external/mesa3d/src/util/
H A Dregister_allocate.c297 regs->classes[b]->q = ralloc_array(regs, unsigned int, regs->class_count); in ra_set_finalize()
450 regs->classes = ralloc_array(regs->regs, struct ra_class *, class_count); in ra_set_deserialize()
459 class->regs = ralloc_array(class, BITSET_WORD, BITSET_WORDS(reg_count)); in ra_set_deserialize()
466 class->q = ralloc_array(regs->classes[c], unsigned int, class_count); in ra_set_deserialize()
H A Dstring_buffer.c57 str->buf = ralloc_array(str, char, str->capacity); in _mesa_string_buffer_create()
/aosp_15_r20/external/mesa3d/src/asahi/compiler/
H A Dagx_spill.c782 sblock->S_exit = ralloc_array(ctx->memctx, unsigned, nS); in min_algorithm()
963 sb->S_entry = ralloc_array(ctx->memctx, unsigned, nS); in compute_s_entry()
1156 BITSET_WORD *W = ralloc_array(memctx, BITSET_WORD, BITSET_WORDS(n)); in agx_spill()
1157 BITSET_WORD *S = ralloc_array(memctx, BITSET_WORD, BITSET_WORDS(n)); in agx_spill()
H A Dagx_liveness.c82 BITSET_WORD *live = ralloc_array(blk, BITSET_WORD, words); in agx_compute_liveness()
/aosp_15_r20/external/igt-gpu-tools/assembler/
H A Dralloc.c306 ptr = ralloc_array(ctx, char, n + 1); in ralloc_strdup()
325 ptr = ralloc_array(ctx, char, n + 1); in ralloc_strndup()
H A Dralloc.h140 #define ralloc_array(ctx, type, count) \ macro
/aosp_15_r20/external/mesa3d/src/compiler/glsl/
H A Dir_clone.cpp275 …copy->subroutine_types = ralloc_array(mem_ctx, const struct glsl_type *, copy->num_subroutine_type… in clone()
359 c->const_elements = ralloc_array(c, ir_constant *, this->type->length); in clone()
H A Dgl_nir_link_uniform_blocks.c223 linked_block->Uniforms = ralloc_array(*linked_blocks, in link_cross_validate_uniform_block()
1296 ralloc_array(linked, struct gl_uniform_block *, num_ubo_blocks); in gl_nir_link_uniform_blocks()
1312 ralloc_array(linked, struct gl_uniform_block *, num_ssbo_blocks); in gl_nir_link_uniform_blocks()
/aosp_15_r20/external/mesa3d/src/microsoft/compiler/
H A Ddxil_module.c618 type->struct_def.elem.types = ralloc_array(type, struct dxil_type *, in dxil_module_get_struct_type()
946 type->function_def.args.types = ralloc_array(type, in dxil_module_add_function_type()
1810 ralloc_array(m->ralloc_ctx, struct dxil_value *, num_values); in dxil_module_get_array_const()
1837 ralloc_array(m->ralloc_ctx, struct dxil_value *, num_values); in dxil_module_get_vector_const()
1882 ralloc_array(m->ralloc_ctx, struct dxil_value *, num_values); in dxil_module_get_struct_const()
2641 uint64_t *value_ids = ralloc_array(m->ralloc_ctx, uint64_t, num_values); in emit_aggregate_values()
2886 void *tmp = ralloc_array(n, struct dxil_mdnode *, num_subnodes); in dxil_get_metadata_node()
2981 void *tmp = ralloc_array(n, struct dxil_mdnode *, num_subnodes); in dxil_add_metadata_named_node()
3309 instr->call.args = ralloc_array(instr, struct dxil_value *, num_args); in create_call_instr()
3441 instr->gep.operands = ralloc_array(instr, struct dxil_value *, in dxil_emit_gep_inbounds()
/aosp_15_r20/external/mesa3d/src/panfrost/compiler/
H A Dbi_liveness.c88 BITSET_WORD *live = ralloc_array(blk, BITSET_WORD, words); in bi_compute_liveness_ssa()
/aosp_15_r20/external/mesa3d/src/panfrost/perf/
H A Dpan_perf.c105 perf->counter_values = ralloc_array(perf, uint32_t, perf->n_counter_values); in panfrost_perf_init()
/aosp_15_r20/external/mesa3d/src/panfrost/util/
H A Dpan_liveness.c82 uint16_t *live = ralloc_array(blk, uint16_t, temp_count); in liveness_block_update()

12345