/third_party/mesa3d/src/panfrost/lib/ |
D | pan_layout.c | 240 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()
|
D | pan_tiler.c | 232 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()
|
D | pan_scratch.c | 84 util_next_power_of_two(ALIGN_POT(thread_size, 16)); in panfrost_get_total_stack_size()
|
/third_party/mesa3d/src/imagination/vulkan/ |
D | pvr_job_render.c | 342 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 …]
|
D | pvr_query.c | 67 ALIGN_POT(query_size, PVRX(CR_ISP_OCLQRY_BASE_ADDR_ALIGNMENT)); in pvr_CreateQueryPool()
|
D | pvr_descriptor_set.c | 309 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/ |
D | pan_mempool.c | 130 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/ |
D | pvr_srv_bo.c | 169 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/ |
D | build_id.c | 92 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()
|
D | slab.c | 110 parent->element_size = ALIGN_POT(sizeof(struct slab_element_header) + item_size, in slab_create_parent()
|
D | ralloc.c | 633 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/ |
D | pool.c | 89 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/ |
D | agx_pipe.c | 180 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()
|
D | agx_blit.c | 78 offset += ALIGN_POT(binary.size, 128); in agx_build_reload_shader()
|
/third_party/mesa3d/src/panfrost/vulkan/ |
D | panvk_mempool.c | 81 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/ |
D | test-tiling.cpp | 133 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/ |
D | agx_uniforms.c | 51 ctx->push_base = ALIGN_POT(ctx->push_base, agx_size_align_16(size)); in agx_indexed_sysval()
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_opt_preamble.c | 468 total_size = ALIGN_POT(total_size, state->align); in nir_opt_preamble() 500 offset = ALIGN_POT(offset, state->align); in nir_opt_preamble()
|
D | nir_lower_scratch.c | 213 var->data.location = ALIGN_POT(shader->scratch_size, var_align); in nir_lower_vars_to_scratch()
|
/third_party/mesa3d/src/imagination/include/hwdef/ |
D | rogue_hw_utils.h | 244 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/ |
D | crashdec-hfi.c | 408 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/ |
D | nodearray.h | 74 #define NODEARRAY_DENSE_ALIGN(x) ALIGN_POT(x, 16)
|
/third_party/mesa3d/src/vulkan/util/ |
D | vk_alloc.h | 200 size_t offset = ALIGN_POT(ma->size, align); in vk_multialloc_add_size_align()
|
/third_party/mesa3d/src/compiler/ |
D | nir_types.cpp | 790 *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/ |
D | mir_promote_uniforms.c | 281 ctx->info->push.count = ALIGN_POT(ctx->info->push.count, 4); in midgard_promote_uniforms()
|