Home
last modified time | relevance | path

Searched refs:util_next_power_of_two (Results 1 – 25 of 66) sorted by relevance

123

/third_party/mesa3d/src/panfrost/lib/
Dpan_cs.h129 return util_next_power_of_two(dim->x) * in pan_wls_instances()
130 util_next_power_of_two(dim->y) * in pan_wls_instances()
131 util_next_power_of_two(dim->z); in pan_wls_instances()
137 return util_next_power_of_two(MAX2(wls_size, 128)); in pan_wls_adjust_size()
Dpan_tiler.c341 best_w = MAX2(best_w, util_next_power_of_two(width / 63)); in panfrost_choose_tile_size()
342 best_h = MAX2(best_h, util_next_power_of_two(height / 63)); in panfrost_choose_tile_size()
Dpan_scratch.c84 util_next_power_of_two(ALIGN_POT(thread_size, 16)); in panfrost_get_total_stack_size()
/third_party/mesa3d/src/gallium/drivers/i915/
Di915_resource_texture.c96 return util_next_power_of_two(util_format_get_stride(format, width)); in get_pot_stride()
328 unsigned width = util_next_power_of_two(pt->width0); in i9x5_texture_layout_cube()
365 unsigned width = util_next_power_of_two(pt->width0); in i915_texture_layout_2d()
366 unsigned height = util_next_power_of_two(pt->height0); in i915_texture_layout_2d()
394 unsigned width = util_next_power_of_two(pt->width0); in i915_texture_layout_3d()
395 unsigned height = util_next_power_of_two(pt->height0); in i915_texture_layout_3d()
396 unsigned depth = util_next_power_of_two(pt->depth0); in i915_texture_layout_3d()
430 tex->total_nblocksy = stack_nblocksy * util_next_power_of_two(pt->depth0); in i915_texture_layout_3d()
469 unsigned width = util_next_power_of_two(pt->width0); in i945_texture_layout_2d()
470 unsigned height = util_next_power_of_two(pt->height0); in i945_texture_layout_2d()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/vl/
Dvl_decoder.c83 temp.width = pot_buffers ? util_next_power_of_two(width) : align(width, VL_MACROBLOCK_WIDTH); in vl_create_decoder()
84 temp.height = pot_buffers ? util_next_power_of_two(height) : align(height, VL_MACROBLOCK_HEIGHT); in vl_create_decoder()
Dvl_video_buffer.c368 templat.width = pot_buffers ? util_next_power_of_two(tmpl->width) in vl_video_buffer_create()
370 templat.height = pot_buffers ? util_next_power_of_two(tmpl->height) in vl_video_buffer_create()
/third_party/mesa3d/src/util/
Du_vector.h69 initial_element_count = util_next_power_of_two(initial_element_count); in u_vector_init()
70 element_size = util_next_power_of_two(element_size); in u_vector_init()
Du_cpu_detect.c524 core_count = util_next_power_of_two(core_count); in get_cpu_topology()
536 unsigned local_l3_cache_index = local_core_id / util_next_power_of_two(cores_per_L3); in get_cpu_topology()
/third_party/mesa3d/src/asahi/lib/
Dpool.c85 assert(alignment == util_next_power_of_two(alignment)); in agx_pool_alloc_aligned()
111 return agx_pool_upload_aligned(pool, data, sz, util_next_power_of_two(sz)); in agx_pool_upload()
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_test_dma.c232 tsrc.width0 = util_next_power_of_two(tsrc.width0); in r600_test_dma()
233 tsrc.height0 = util_next_power_of_two(tsrc.height0); in r600_test_dma()
250 tdst.width0 = util_next_power_of_two(tdst.width0); in r600_test_dma()
251 tdst.height0 = util_next_power_of_two(tdst.height0); in r600_test_dma()
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_texture_desc.c164 height = util_next_power_of_two(height); in r300_texture_get_nblocksy()
593 tex->tex.width0 = util_next_power_of_two(tex->tex.width0); in r300_texture_desc_init()
594 tex->tex.height0 = util_next_power_of_two(tex->tex.height0); in r300_texture_desc_init()
595 tex->tex.depth0 = util_next_power_of_two(tex->tex.depth0); in r300_texture_desc_init()
/third_party/mesa3d/src/freedreno/fdl/
Dfd6_layout.c184 ubwc_width0 = util_next_power_of_two(width0); in fdl6_layout()
185 ubwc_height0 = util_next_power_of_two(height0); in fdl6_layout()
Dfreedreno_layout.h176 pitch = util_next_power_of_two(pitch); in fdl2_pitch()
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_resource.c47 nblocksy = util_next_power_of_two(nblocksy); in fd2_setup_slices()
/third_party/mesa3d/src/imagination/vulkan/
Dpvr_image.c72 util_next_power_of_two(image->vk.extent.width); in pvr_image_init_physical_extent()
74 util_next_power_of_two(image->vk.extent.height); in pvr_image_init_physical_extent()
76 util_next_power_of_two(image->vk.extent.depth); in pvr_image_init_physical_extent()
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_resource.c45 height = util_next_power_of_two(height); in setup_slices()
/third_party/mesa3d/src/virtio/vulkan/
Dvn_renderer_util.c54 .min_alloc_size = util_next_power_of_two(min_alloc_size), in vn_renderer_shmem_pool_init()
/third_party/mesa3d/src/intel/compiler/
Dbrw_shader.h128 return MAX2(1024, util_next_power_of_two(size)); in brw_get_scratch_size()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_screen.c943 screen->cur_tls_space = util_next_power_of_two(tls_space / ONE_TEMP_SIZE) * in nv50_tls_alloc()
947 util_next_power_of_two(tls_space / ONE_TEMP_SIZE)); in nv50_tls_alloc()
948 *tls_size = screen->cur_tls_space * util_next_power_of_two(screen->TPs) * in nv50_tls_alloc()
1159 stack_size = util_next_power_of_two(screen->TPs) * screen->MPsInTP * in nv50_screen_create()
1169 uint64_t size_of_one_temp = util_next_power_of_two(screen->TPs) * in nv50_screen_create()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_image.c87 uint32_t pot_width = 2 * util_next_power_of_two(u_minify(width, 1)); in v3d_setup_slices()
88 uint32_t pot_height = 2 * util_next_power_of_two(u_minify(height, 1)); in v3d_setup_slices()
89 uint32_t pot_depth = 2 * util_next_power_of_two(u_minify(depth, 1)); in v3d_setup_slices()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_mempool.c77 assert(alignment == util_next_power_of_two(alignment)); in panvk_pool_alloc_aligned()
/third_party/mesa3d/src/gallium/drivers/panfrost/
Dpan_mempool.c126 assert(alignment == util_next_power_of_two(alignment)); in panfrost_pool_alloc_aligned()
/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3d_resource.c75 u_minify(util_next_power_of_two(prsc->depth0), i); in v3d_debug_resource_layout()
540 uint32_t pot_width = 2 * util_next_power_of_two(u_minify(width, 1)); in v3d_setup_slices()
541 uint32_t pot_height = 2 * util_next_power_of_two(u_minify(height, 1)); in v3d_setup_slices()
542 uint32_t pot_depth = 2 * util_next_power_of_two(u_minify(depth, 1)); in v3d_setup_slices()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_framebuffer.c84 msaa_mode = util_next_power_of_two(st->ctx->Const.MaxFramebufferSamples); in framebuffer_quantize_num_samples()
/third_party/mesa3d/src/gallium/frontends/xvmc/
Dsubpicture.c309 tex_templ.width0 = util_next_power_of_two(width); in XvMCCreateSubpicture()
310 tex_templ.height0 = util_next_power_of_two(height); in XvMCCreateSubpicture()

123