Home
last modified time | relevance | path

Searched refs:align_malloc (Results 1 – 25 of 32) sorted by relevance

12

/third_party/mesa3d/src/util/
Du_memory.h61 #define align_malloc(_size, _alignment) os_malloc_aligned(_size, _alignment) macro
68 void *ptr = align_malloc(size, alignment); in align_calloc()
94 #define MALLOC_STRUCT_CL(T) (struct T *)align_malloc(sizeof(struct T), CACHE_LINE_SIZE)
/third_party/mesa3d/src/gallium/tests/unit/
Dtranslate_test.c137 buffer[i] = align_malloc(buffer_size, 4096); in main()
139 byte_buffer = align_malloc(buffer_size, 4096); in main()
140 float_buffer = align_malloc(buffer_size, 4096); in main()
141 double_buffer = align_malloc(buffer_size, 4096); in main()
142 half_buffer = align_malloc(buffer_size, 4096); in main()
144 elts = align_malloc(count * sizeof *elts, 4096); in main()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_test_blend.c472 src = align_malloc(stride, stride); in test_one()
473 src1 = align_malloc(stride, stride); in test_one()
474 dst = align_malloc(stride, stride); in test_one()
475 con = align_malloc(stride, stride); in test_one()
476 res = align_malloc(stride, stride); in test_one()
477 ref = align_malloc(stride, stride); in test_one()
Dlp_test_arit.c428 in = align_malloc(length * 4, length * 4); in test_unary()
429 out = align_malloc(length * 4, length * 4); in test_unary()
Dlp_context.c201 llvmpipe = align_malloc(sizeof(struct llvmpipe_context), 16); in llvmpipe_create_context()
Dlp_test_format.c371 cache_ptr = align_malloc(sizeof(struct lp_build_format_cache), 16); in test_all()
Dlp_texture.c169 lpr->tex_data = align_malloc(total_size, mip_align); in llvmpipe_texture_layout()
283 lpr->data = align_malloc(lpr->size_required, 64); in llvmpipe_resource_create_all()
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_gs.c646 align_malloc(vector_size, vector_size); in draw_geometry_shader_run()
727 draw->gs.tgsi.machine->Primitives[i] = align_malloc( in draw_gs_init()
729 draw->gs.tgsi.machine->PrimitiveOffsets[i] = align_malloc( in draw_gs_init()
873 gs->gs_input = align_malloc(sizeof(struct draw_gs_inputs), 16); in draw_create_geometry_shader()
877 gs->llvm_emitted_primitives = align_malloc(vector_size * gs->num_vertex_streams, vector_size); in draw_create_geometry_shader()
878 gs->llvm_emitted_vertices = align_malloc(vector_size * gs->num_vertex_streams, vector_size); in draw_create_geometry_shader()
Ddraw_tess.c454 tcs->tcs_input = align_malloc(sizeof(struct draw_tcs_inputs), 16); in draw_create_tess_ctrl_shader()
457 tcs->tcs_output = align_malloc(sizeof(struct draw_tcs_outputs), 16); in draw_create_tess_ctrl_shader()
582 tes->tes_input = align_malloc(sizeof(struct draw_tes_inputs), 16); in draw_create_tess_eval_shader()
Ddraw_pipe_vbuf.c432 vbuf->indices = (ushort *) align_malloc(vbuf->max_indices * in draw_vbuf_stage()
/third_party/mesa3d/src/gallium/auxiliary/tessellator/
Dp_tessellator.cpp136 mem = align_malloc(sizeof(pipe_ts), 256); in p_tess_init()
/third_party/mesa3d/src/gallium/drivers/i915/
Di915_resource_buffer.c119 buf->data = align_malloc(template->width0, 64); in i915_buffer_create()
/third_party/mesa3d/src/gallium/winsys/sw/hgl/
Dhgl_sw_winsys.cpp139 = align_malloc(haikuDisplayTarget->size, alignment); in hgl_winsys_displaytarget_create()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_resource_buffer.c285 sbuf->swbuf = align_malloc(sbuf->b.width0, 16); in svga_buffer_transfer_map()
546 sbuf->swbuf = align_malloc(sbuf->b.width0, 64); in svga_buffer_create()
/third_party/mesa3d/src/mesa/math/
Dm_vector.c113 v->storage = align_malloc( count * 4 * sizeof(GLfloat), alignment ); in _mesa_vector4f_alloc()
Dm_debug_xform.c185 mat->m = align_malloc( 16 * sizeof(GLfloat), 16 ); in test_transform_function()
Dm_debug_norm.c211 mat->m = align_malloc( 16 * sizeof(GLfloat), 16 ); in test_norm_function()
/third_party/mesa3d/src/gallium/winsys/sw/gdi/
Dgdi_sw_winsys.c148 gdt->data = align_malloc(gdt->size, alignment); in gdi_sw_displaytarget_create()
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_screen_buffer.c185 rbuf->malloced_buffer = align_malloc(templ->width0, 64); in r300_buffer_create()
/third_party/mesa3d/src/gallium/winsys/sw/dri/
Ddri_sw_winsys.c153 dri_sw_dt->data = align_malloc(size, alignment); in dri_sw_displaytarget_create()
/third_party/mesa3d/src/gallium/winsys/sw/xlib/
Dxlib_sw_winsys.c434 xlib_dt->data = align_malloc(size, alignment); in xlib_displaytarget_create()
/third_party/mesa3d/src/gallium/drivers/softpipe/
Dsp_texture.c102 spr->data = align_malloc(buffer_size, 64); in softpipe_resource_layout()
Dsp_prim_vbuf.c97 cvbr->vertex_buffer = align_malloc(size, 16); in sp_vbuf_allocate_vertices()
/third_party/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_buffer.c44 buf->data = align_malloc(buf->base.width0, NOUVEAU_MIN_BUFFER_MAP_ALIGN); in nouveau_buffer_malloc()
167 tx->map = align_malloc(size, NOUVEAU_MIN_BUFFER_MAP_ALIGN); in nouveau_transfer_staging()
/third_party/mesa3d/src/gallium/winsys/virgl/vtest/
Dvirgl_vtest_winsys.c264 res->ptr = align_malloc(size, 64); in virgl_vtest_winsys_resource_create()

12