Home
last modified time | relevance | path

Searched refs:ALIGN_POT (Results 1 – 25 of 68) sorted by relevance

123

/third_party/mesa3d/src/panfrost/lib/
Dpan_layout.c240 width = ALIGN_POT(width, block_size.width); in panfrost_get_legacy_stride()
362 … unsigned effective_width = ALIGN_POT(util_format_get_nblocksx(layout->format, width), align_w); in pan_image_layout_init()
363 … unsigned effective_height = ALIGN_POT(util_format_get_nblocksy(layout->format, height), align_h); in pan_image_layout_init()
368 offset = ALIGN_POT(offset, 64); in pan_image_layout_init()
387 row_stride = ALIGN_POT(row_stride, 64); in pan_image_layout_init()
401 ALIGN_POT(slice->row_stride * (effective_height / align_h), in pan_image_layout_init()
463 layout->array_stride = ALIGN_POT(offset, 64); in pan_image_layout_init()
467 layout->data_size = ALIGN_POT(layout->array_stride * layout->array_size, 4096); in pan_image_layout_init()
Dpan_tiler.c232 unsigned aligned_width = ALIGN_POT(width, tile_width); in pan_tile_count()
233 unsigned aligned_height = ALIGN_POT(height, tile_height); in pan_tile_count()
274 return ALIGN_POT(size, 0x200); in panfrost_hierarchy_size()
Dpan_scratch.c84 util_next_power_of_two(ALIGN_POT(thread_size, 16)); in panfrost_get_total_stack_size()
/third_party/mesa3d/src/imagination/vulkan/
Dpvr_job_render.c342 info->x_tile_max = ALIGN_POT(info->num_tiles_x, 2) - 1; in pvr_rt_mtile_info_init()
343 info->y_tile_max = ALIGN_POT(info->num_tiles_y, 2) - 1; in pvr_rt_mtile_info_init()
346 info->mtile_x1 = ALIGN_POT(DIV_ROUND_UP(info->num_tiles_x, 4), 4); in pvr_rt_mtile_info_init()
347 info->mtile_y1 = ALIGN_POT(DIV_ROUND_UP(info->num_tiles_y, 4), 4); in pvr_rt_mtile_info_init()
417 vheap_size = ALIGN_POT(vheap_size, PVRX(CR_TA_RTC_ADDR_BASE_ALIGNMENT)); in pvr_rt_vheap_rtc_data_init()
495 size = ALIGN_POT(size, ROGUE_BIF_PM_PHYSICAL_PAGE_SIZE); in pvr_rt_get_tail_ptr_stride_size()
519 tpc_size = ALIGN_POT(rt_dataset->tpc_size, ROGUE_TE_TPC_CACHE_LINE_SIZE); in pvr_rt_tpc_data_init()
564 return ALIGN_POT(mlist_size, ROGUE_BIF_PM_PHYSICAL_PAGE_SIZE); in pvr_rt_get_mlist_size()
595 ALIGN_POT(rgn_headers_size, PVRX(CR_TE_PSGREGION_ADDR_BASE_ALIGNMENT)); in pvr_rt_get_region_headers_stride_size()
600 ALIGN_POT(rgn_headers_size, PVRX(CR_TE_PSG_REGION_STRIDE_UNIT_SIZE)); in pvr_rt_get_region_headers_stride_size()
[all …]
Dpvr_query.c67 ALIGN_POT(query_size, PVRX(CR_ISP_OCLQRY_BASE_ADDR_ALIGNMENT)); in pvr_CreateQueryPool()
Dpvr_descriptor_set.c309 layout->total_size_in_dwords = ALIGN_POT(layout->total_size_in_dwords, 4); in pvr_setup_in_memory_layout_sizes()
317 layout->total_size_in_dwords = ALIGN_POT(layout->total_size_in_dwords, 4); in pvr_setup_in_memory_layout_sizes()
604 ALIGN_POT(reg_usage[stage].primary, size_info.alignment); in pvr_CreateDescriptorSetLayout()
940 next_free_reg[stage] = ALIGN_POT(next_free_reg[stage], 4); in pvr_CreatePipelineLayout()
1030 const uint32_t secondary = ALIGN_POT(size_info.secondary, 4); in pvr_CreateDescriptorPool()
1031 const uint32_t primary = ALIGN_POT(size_info.primary, 4); in pvr_CreateDescriptorPool()
/third_party/mesa3d/src/gallium/drivers/panfrost/
Dpan_mempool.c130 unsigned offset = ALIGN_POT(pool->transient_offset, alignment); in panfrost_pool_alloc_aligned()
135 unsigned aligned = ALIGN_POT(sz, sysconf(_SC_PAGESIZE)); in panfrost_pool_alloc_aligned()
156 ALIGN_POT(MAX2(pool->base.slab_size, sz), 4096)); in panfrost_pool_alloc_aligned()
/third_party/mesa3d/src/imagination/vulkan/winsys/pvrsrvkm/
Dpvr_srv_bo.c169 size = ALIGN_POT(size, alignment); in pvr_srv_winsys_buffer_create()
382 size = ALIGN_POT(size, alignment); in pvr_srv_heap_alloc_reserved()
510 ALIGN_POT(virt_offset + size, vma->heap->page_size); in pvr_srv_winsys_vma_map()
520 if (offset != 0 || bo->size != ALIGN_POT(size, srv_ws->base.page_size) || in pvr_srv_winsys_vma_map()
541 if (ALIGN_POT(offset + size, vma->heap->page_size) > bo->size || in pvr_srv_winsys_vma_map()
/third_party/mesa3d/src/util/
Dbuild_id.c92 ALIGN_POT(note->nhdr.n_namesz, 4) + in build_id_find_nhdr_callback()
93 ALIGN_POT(note->nhdr.n_descsz, 4); in build_id_find_nhdr_callback()
Dslab.c110 parent->element_size = ALIGN_POT(sizeof(struct slab_element_header) + item_size, in slab_create_parent()
Dralloc.c633 size = ALIGN_POT(size, SUBALLOC_ALIGNMENT); in linear_alloc_child()
664 size = ALIGN_POT(size, SUBALLOC_ALIGNMENT); in linear_alloc_parent()
/third_party/mesa3d/src/asahi/lib/
Dpool.c89 unsigned offset = ALIGN_POT(pool->transient_offset, alignment); in agx_pool_alloc_aligned()
94 ALIGN_POT(MAX2(POOL_SLAB_SIZE, sz), 4096)); in agx_pool_alloc_aligned()
/third_party/mesa3d/src/gallium/drivers/asahi/
Dagx_pipe.c180 width = ALIGN_POT(width, tile); in agx_resource_create()
181 height = ALIGN_POT(height, tile); in agx_resource_create()
187 nresource->slices[l].line_stride = ALIGN_POT(nresource->slices[l].line_stride, 64); in agx_resource_create()
191 nresource->slices[l].size = ALIGN_POT(nresource->slices[l].line_stride * height, 0x80); in agx_resource_create()
197 nresource->array_stride = ALIGN_POT(offset, 0x4000); in agx_resource_create()
210 width0 = ALIGN_POT(width0, 64); in agx_resource_create()
211 height0 = ALIGN_POT(height0, 64); in agx_resource_create()
226 offset = nresource->slices[0].line_stride * ALIGN_POT(templ->height0, 64); in agx_resource_create()
Dagx_blit.c78 offset += ALIGN_POT(binary.size, 128); in agx_build_reload_shader()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_mempool.c81 unsigned offset = ALIGN_POT(pool->transient_offset, alignment); in panvk_pool_alloc_aligned()
86 ALIGN_POT(MAX2(pool->base.slab_size, sz), in panvk_pool_alloc_aligned()
/third_party/mesa3d/src/panfrost/shared/test/
Dtest-tiling.cpp133 unsigned tiled_width = ALIGN_POT(width, 16); in test()
134 unsigned tiled_height = ALIGN_POT(height, 16); in test()
/third_party/mesa3d/src/asahi/compiler/
Dagx_uniforms.c51 ctx->push_base = ALIGN_POT(ctx->push_base, agx_size_align_16(size)); in agx_indexed_sysval()
/third_party/mesa3d/src/compiler/nir/
Dnir_opt_preamble.c468 total_size = ALIGN_POT(total_size, state->align); in nir_opt_preamble()
500 offset = ALIGN_POT(offset, state->align); in nir_opt_preamble()
Dnir_lower_scratch.c213 var->data.location = ALIGN_POT(shader->scratch_size, var_align); in nir_lower_vars_to_scratch()
/third_party/mesa3d/src/imagination/include/hwdef/
Drogue_hw_utils.h244 ALIGN_POT(ROGUE_LLS_CDM_CONTEXT_RESUME_BUFFER_SIZE, cache_line_size); in rogue_get_cdm_context_resume_buffer_size()
/third_party/mesa3d/src/freedreno/decode/
Dcrashdec-hfi.c408 sz = ALIGN_POT(sz, 4); in is_valid_decode_start()
449 sz = ALIGN_POT(sz, 4); in decode_hfi()
/third_party/mesa3d/src/panfrost/bifrost/
Dnodearray.h74 #define NODEARRAY_DENSE_ALIGN(x) ALIGN_POT(x, 16)
/third_party/mesa3d/src/vulkan/util/
Dvk_alloc.h200 size_t offset = ALIGN_POT(ma->size, align); in vk_multialloc_add_size_align()
/third_party/mesa3d/src/compiler/
Dnir_types.cpp790 *size = type->length * ALIGN_POT(elem_size, elem_align); in glsl_size_align_handle_array_and_structs()
801 *size = ALIGN_POT(*size, elem_align) + elem_size; in glsl_size_align_handle_array_and_structs()
/third_party/mesa3d/src/panfrost/midgard/
Dmir_promote_uniforms.c281 ctx->info->push.count = ALIGN_POT(ctx->info->push.count, 4); in midgard_promote_uniforms()

123