Home
last modified time | relevance | path

Searched refs:rzalloc_size (Results 1 – 25 of 47) sorted by relevance

12

/third_party/mesa3d/src/freedreno/ir3/
Dir3_assembler.c35 struct ir3_shader *shader = rzalloc_size(NULL, sizeof(*shader)); in ir3_parse_asm()
40 struct ir3_shader_variant *v = rzalloc_size(shader, sizeof(*v)); in ir3_parse_asm()
43 v->const_state = rzalloc_size(v, sizeof(*v->const_state)); in ir3_parse_asm()
Dir3_disk_cache.c133 v->bin = rzalloc_size(v, v->info.size); in retrieve_variant()
170 struct ir3_shader_variant *v = rzalloc_size(mem_ctx, sizeof(*v)); in ir3_retrieve_variant()
180 v->const_state = rzalloc_size(v, sizeof(*v->const_state)); in ir3_retrieve_variant()
185 v->binning = rzalloc_size(v, sizeof(*v->binning)); in ir3_retrieve_variant()
Dir3_shader.c324 struct ir3_shader_variant *v = rzalloc_size(mem_ctx, sizeof(*v)); in alloc_variant()
381 v->const_state = rzalloc_size(v, sizeof(*v->const_state)); in alloc_variant()
665 struct ir3_shader *shader = rzalloc_size(NULL, sizeof(*shader)); in ir3_shader_from_nir()
/third_party/mesa3d/src/util/
Dralloc.h79 #define rzalloc(ctx, type) ((type *) rzalloc_size(ctx, sizeof(type)))
108 void *rzalloc_size(const void *ctx, size_t size) MALLOCLIKE;
522 DECLARE_ALLOC_CXX_OPERATORS_TEMPLATE(type, rzalloc_size)
Dralloc.c145 rzalloc_size(const void *ctx, size_t size) in rzalloc_size() function
201 return rzalloc_size(ctx, new_size); in rerzalloc_size()
227 return rzalloc_size(ctx, size * count); in rzalloc_array_size()
/third_party/mesa3d/src/gallium/drivers/lima/
Dlima_disk_cache.c125 shader->shader = rzalloc_size(shader, shader->state.shader_size); in lima_vs_disk_cache_retrieve()
129 shader->constant = rzalloc_size(shader, shader->state.constant_size); in lima_vs_disk_cache_retrieve()
177 shader->shader = rzalloc_size(shader, shader->state.shader_size); in lima_fs_disk_cache_retrieve()
Dlima_program.c382 dup_key = rzalloc_size(fs, key_size); in lima_get_compiled_fs()
554 dup_key = rzalloc_size(vs, key_size); in lima_get_compiled_vs()
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_blend.c74 so = rzalloc_size(blend, sizeof(*so)); in __fd6_setup_blend_variant()
154 so = rzalloc_size(NULL, sizeof(*so)); in fd6_blend_state_create()
/third_party/mesa3d/src/gallium/drivers/freedreno/ir3/
Dir3_cmdline.c419 struct ir3_shader *shader = rzalloc_size(NULL, sizeof(*shader)); in main()
426 struct ir3_shader_variant *v = rzalloc_size(shader, sizeof(*v)); in main()
430 v->const_state = rzalloc_size(v, sizeof(*v->const_state)); in main()
/third_party/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_autotune.c66 history = rzalloc_size(at->ht, sizeof(*history)); in get_history()
106 struct fd_batch_result *result = rzalloc_size(history, sizeof(*result)); in get_result()
/third_party/mesa3d/src/imagination/rogue/
Drogue_compiler.c47 compiler = rzalloc_size(NULL, sizeof(*compiler)); in rogue_compiler_create()
Drogue_regalloc.c71 ra = rzalloc_size(mem_ctx, sizeof(*ra)); in rogue_ra_init()
172 range = rzalloc_size(reg_ht, sizeof(*range)); in rogue_ra_alloc()
Drogue_shader.c76 shader = rzalloc_size(ctx, sizeof(*shader)); in rogue_shader_create()
Drogue_instr.c85 instr = rzalloc_size(mem_ctx, sizeof(*instr)); in rogue_instr_create()
Drogue.c132 binary = rzalloc_size(ctx, sizeof(*binary) + buf_size); in rogue_to_binary()
775 ctx = rzalloc_size(compiler, sizeof(*ctx)); in rogue_create_build_context()
/third_party/mesa3d/src/compiler/isaspec/
Ddecode.c253 struct decode_scope *scope = rzalloc_size(state, sizeof(*scope)); in push_scope()
776 state = rzalloc_size(NULL, sizeof(*state)); in isa_decode()
781 state->branch_targets = rzalloc_size(state, in isa_decode()
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_cl.c31 cl->base = rzalloc_size(job, 1); /* TODO: don't use rzalloc */ in vc4_init_cl()
/third_party/mesa3d/src/compiler/nir/
Dnir_gather_xfb_info.c51 return rzalloc_size(mem_ctx, nir_xfb_info_size(output_count)); in nir_xfb_info_create()
63 return rzalloc_size(mem_ctx, nir_xfb_varyings_info_size(varying_count)); in nir_xfb_varyings_info_create()
Dnir_phi_builder.c123 val = rzalloc_size(pb, sizeof(*val)); in nir_phi_builder_add_value()
/third_party/mesa3d/src/compiler/glsl/
Dgl_nir_link_xfb.c206 rzalloc_size(mem_ctx, nir_xfb_info_size(info->NumOutputs)); in gl_to_nir_xfb_info()
/third_party/mesa3d/src/freedreno/isa/
Dencode.c332 ptr = instrs = rzalloc_size(v, info->size); in isa_assemble()
/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3d_disk_cache.c167 shader->prog_data.base = rzalloc_size(shader, prog_data_size); in v3d_disk_cache_retrieve()
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_program_cache.c134 rzalloc_size(mem_ctx, sizeof(struct iris_compiled_shader) + in iris_create_shader_variant()
/third_party/mesa3d/src/broadcom/qpu/
Dqpu_disasm.c321 .string = rzalloc_size(NULL, 1), in v3d_qpu_decode()
/third_party/mesa3d/src/gallium/drivers/crocus/
Dcrocus_program_cache.c198 rzalloc_size(cache, sizeof(struct crocus_compiled_shader)); in crocus_upload_shader()

12