Home
last modified time | relevance | path

Searched refs:alignment_log2 (Results 1 – 23 of 23) sorted by relevance

/third_party/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_bufmgr_cache.c235 assert(pb_check_alignment(desc->alignment, 1u << buf->buffer->alignment_log2)); in pb_cache_manager_create_buffer()
239 buf->base.alignment_log2 = buf->buffer->alignment_log2; in pb_cache_manager_create_buffer()
Dpb_bufmgr_debug.c402 assert(pb_check_alignment(real_desc.alignment, 1u << buf->buffer->alignment_log2)); in pb_debug_manager_create_buffer()
407 buf->base.alignment_log2 = util_logbase2(desc->alignment); in pb_debug_manager_create_buffer()
Dpb_buffer.h124 uint8_t alignment_log2; member
Dpb_bufmgr_slab.c342 buf->base.alignment_log2 = 0; in pb_slab_create()
419 buf->base.alignment_log2 = util_logbase2(desc->alignment); in pb_slab_manager_create_buffer()
Dpb_bufmgr_mm.c196 mm_buf->base.alignment_log2 = util_logbase2(desc->alignment); in mm_bufmgr_create_buffer()
Dpb_cache.c136 if (!pb_check_alignment(alignment, 1u << buf->alignment_log2)) in pb_cache_is_buffer_compat()
Dpb_buffer_fenced.c911 fenced_buf->base.alignment_log2 = util_logbase2(desc->alignment); in fenced_bufmgr_create_buffer()
/third_party/mesa3d/src/gallium/drivers/r600/
Dradeon_video.c192 size = align(size, 1 << (*buffers[i])->alignment_log2); in rvid_join_surfaces()
194 alignment = MAX2(alignment, 1 << (*buffers[i])->alignment_log2); in rvid_join_surfaces()
Dr600_state.c990 (1 << rctx->dummy_cmask->buf->alignment_log2) % cmask.alignment != 0) { in r600_init_color_surface()
1015 (1 << rctx->dummy_fmask->buf->alignment_log2) % fmask.alignment != 0) { in r600_init_color_surface()
Dr600_texture.c980 resource->bo_alignment = 1 << buf->alignment_log2; in r600_texture_create_object()
/third_party/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_bo.c588 bo->base.alignment_log2 = util_logbase2(alignment); in amdgpu_create_bo()
652 assert(bo->base.size < (1 << bo->base.alignment_log2) || in get_slab_wasted_size()
780 bo->base.alignment_log2 = util_logbase2(get_slab_entry_alignment(ws, entry_size)); in amdgpu_bo_slab_alloc()
1141 bo->base.alignment_log2 = util_logbase2(RADEON_SPARSE_PAGE_SIZE); in amdgpu_bo_sparse_create()
1427 assert(alignment <= 1 << bo->base.alignment_log2); in amdgpu_bo_create()
1583 bo->base.alignment_log2 = util_logbase2(info.phys_alignment); in amdgpu_bo_from_handle()
1727 bo->base.alignment_log2 = 0; in amdgpu_bo_from_ptr()
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_bo.c280 bo->base.alignment_log2 = util_logbase2(alignment); in bo_create_internal()
504 bo->base.alignment_log2 = util_logbase2(ZINK_SPARSE_BUFFER_PAGE_SIZE); in bo_sparse_create()
585 assert(alignment <= 1 << bo->base.alignment_log2); in zink_bo_create()
892 bo->base.alignment_log2 = util_logbase2(get_slab_entry_alignment(screen, entry_size)); in bo_slab_alloc()
/third_party/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_buffer.c225 buf->base.alignment_log2 = util_logbase2(pb_desc->alignment); in vmw_gmr_bufmgr_create_buffer()
Dpb_buffer_simple_fenced.c734 fenced_buf->base.alignment_log2 = util_logbase2(desc->alignment); in fenced_bufmgr_create_buffer()
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_bufmgr.cpp289 buf->base.alignment_log2 = util_logbase2(pb_desc->alignment); in d3d12_bufmgr_create_buffer()
/third_party/mesa3d/src/amd/common/
Dac_surface.h355 uint8_t alignment_log2; member
Dac_surface.c2400 surf->alignment_log2 = surf->surf_alignment_log2; in ac_compute_surface()
2409 surf->alignment_log2 = MAX2(surf->alignment_log2, surf->fmask_alignment_log2); in ac_compute_surface()
2416 surf->alignment_log2 = MAX2(surf->alignment_log2, surf->cmask_alignment_log2); in ac_compute_surface()
2438 surf->alignment_log2 = MAX2(surf->alignment_log2, surf->meta_alignment_log2); in ac_compute_surface()
2454 surf->alignment_log2 = surf->surf_alignment_log2; in ac_surface_zero_dcc_fields()
2828 if (offset & ((1 << surf->alignment_log2) - 1) || in ac_surface_override_offset_stride()
/third_party/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_bo.c672 bo->base.alignment_log2 = util_logbase2(alignment); in radeon_create_bo()
807 bo->base.alignment_log2 = util_logbase2(entry_size); in radeon_bo_slab_alloc()
1133 bo->base.alignment_log2 = 0; in radeon_winsys_bo_from_ptr()
1262 bo->base.alignment_log2 = 0; in radeon_winsys_bo_from_handle()
/third_party/mesa3d/src/amd/vulkan/
Dradv_image.c1317 surf->alignment_log2 = MAX2(surf->alignment_log2, surf->cmask_alignment_log2); in radv_image_alloc_single_sample_cmask()
1570 offset = align64(image->size, 1 << image->planes[plane].surface.alignment_log2); in radv_image_create_layout()
1594 image->alignment = MAX2(image->alignment, 1 << image->planes[plane].surface.alignment_log2); in radv_image_create_layout()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_texture.c1007 resource->bo_alignment_log2 = imported_buf->alignment_log2; in si_texture_create_object()
1550 buf->alignment_log2 < tex->surface.alignment_log2) { in si_texture_from_winsys_buffer()
Dsi_buffer.c669 res->bo_alignment_log2 = imported_buf->alignment_log2; in si_buffer_from_winsys_buffer()
/third_party/mesa3d/docs/relnotes/
D21.2.0.rst3478 - radeonsi: change si_resource::alignment to alignment_log2 for better packing
D21.1.0.rst3587 - gallium/pb: change pb_buffer::alignment to alignment_log2