Home
last modified time | relevance | path

Searched refs:util_is_power_of_two (Results 1 – 25 of 37) sorted by relevance

12

/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_texture.c169 spr->pot = (util_is_power_of_two(templat->width0) && in softpipe_resource_create_front()
170 util_is_power_of_two(templat->height0) && in softpipe_resource_create_front()
171 util_is_power_of_two(templat->depth0)); in softpipe_resource_create_front()
234 spr->pot = (util_is_power_of_two(templat->width0) && in softpipe_resource_from_handle()
235 util_is_power_of_two(templat->height0) && in softpipe_resource_from_handle()
236 util_is_power_of_two(templat->depth0)); in softpipe_resource_from_handle()
/external/mesa3d/src/util/
Du_vector.c40 assert(util_is_power_of_two(size)); in u_vector_init()
41 assert(element_size < size && util_is_power_of_two(element_size)); in u_vector_init()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_gather.c121 } else if (!util_is_power_of_two(src_width)) { in lp_build_gather_elem()
133 util_is_power_of_two(src_width / 24)) { in lp_build_gather_elem()
202 } else if (!util_is_power_of_two(src_width)) { in lp_build_gather_elem_vec()
214 util_is_power_of_two(src_width / 24)) { in lp_build_gather_elem_vec()
Dlp_bld_debug.cpp63 assert(util_is_power_of_two(alignment)); in lp_check_alignment()
Dlp_bld_format_aos.c499 util_is_power_of_two(format_desc->block.bits)) { in lp_build_fetch_rgba_aos()
612 util_is_power_of_two(format_desc->block.bits) && in lp_build_fetch_rgba_aos()
Dlp_bld_sample.c117 state->pot_width = util_is_power_of_two(texture->width0); in lp_sampler_static_texture_state()
118 state->pot_height = util_is_power_of_two(texture->height0); in lp_sampler_static_texture_state()
119 state->pot_depth = util_is_power_of_two(texture->depth0); in lp_sampler_static_texture_state()
Dlp_bld_pack.c222 assert(util_is_power_of_two(num_vectors)); in lp_build_concat()
/external/mesa3d/src/gallium/drivers/i915/
Di915_state_sampler.c310 bool is_npot = (!util_is_power_of_two(pt->width0) || !util_is_power_of_two(pt->height0)); in update_map()
/external/mesa3d/src/gallium/auxiliary/util/
Du_math.h185 util_is_power_of_two( unsigned v ) in util_is_power_of_two() function
462 if (util_is_power_of_two(x)) in util_next_power_of_two()
Du_ringbuffer.c30 assert(util_is_power_of_two(dwords)); in util_ringbuffer_create()
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_texture_state.c161 (!util_is_power_of_two(res->base.width0) || !util_is_power_of_two(res->base.height0))) { in etna_create_sampler_view_state()
Detnaviv_blt.c181 assert(op->bpp > 0 && util_is_power_of_two(op->bpp)); in emit_blt_inplace()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_texture_desc.c273 !util_is_power_of_two(tex->b.b.width0) || in r300_setup_flags()
280 !util_is_power_of_two(tex->b.b.height0) || in r300_setup_flags()
281 !util_is_power_of_two(tex->b.b.depth0); in r300_setup_flags()
/external/mesa3d/src/amd/common/
Dac_gpu_info.c309 assert(util_is_power_of_two(dma.available_rings + 1)); in ac_query_gpu_info()
310 assert(util_is_power_of_two(compute.available_rings + 1)); in ac_query_gpu_info()
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_miptree.c404 !util_is_power_of_two(pt->width0) || in nv30_miptree_create()
405 !util_is_power_of_two(pt->height0) || in nv30_miptree_create()
406 !util_is_power_of_two(pt->depth0) || in nv30_miptree_create()
/external/virglrenderer/src/gallium/auxiliary/util/
Du_math.h332 util_is_power_of_two( unsigned v ) in util_is_power_of_two() function
706 if (util_is_power_of_two(x)) in util_next_power_of_two()
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_readpixels.c273 (!util_is_power_of_two(width) || in blit_to_staging()
274 !util_is_power_of_two(height))) in blit_to_staging()
Dst_cb_texture.c1531 (!util_is_power_of_two(src_templ.width0) || in st_TexSubImage()
1532 !util_is_power_of_two(src_templ.height0) || in st_TexSubImage()
1533 !util_is_power_of_two(src_templ.depth0))) { in st_TexSubImage()
/external/mesa3d/src/intel/vulkan/
Danv_nir_lower_multiview.c89 if (0 && util_is_power_of_two(state->view_mask + 1)) { in build_view_index()
Danv_allocator.c622 assert(util_is_power_of_two(block_size)); in anv_state_pool_init()
817 assert(util_is_power_of_two(state.alloc_size)); in anv_state_pool_free_no_vg()
1044 assert(util_is_power_of_two(bo.size)); in anv_bo_pool_free()
Danv_formats.c439 !util_is_power_of_two(isl_layout->bpb)) { in anv_get_format_plane()
565 !util_is_power_of_two(isl_format_layouts[base_isl_format].bpb) && in get_image_format_features()
/external/mesa3d/src/gallium/drivers/swr/
Dswr_screen.cpp108 || !util_is_power_of_two(sample_count)) in swr_is_format_supported()
1108 || !util_is_power_of_two(msaa_max_count)) { in swr_validate_env_options()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_query_hw.c304 debug_assert(util_is_power_of_two(size)); in fd_hw_sample_init()
/external/mesa3d/src/amd/vulkan/
Dradv_formats.c605 if (tiled && util_is_power_of_two(vk_format_get_blocksize(format)) && !scaled) { in radv_physical_device_get_format_properties()
611 if (linear && util_is_power_of_two(vk_format_get_blocksize(format)) && !scaled) { in radv_physical_device_get_format_properties()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_texture.c673 if (!util_is_power_of_two(bytes)) { in llvmpipe_get_format_alignment()

12