Home
last modified time | relevance | path

Searched refs:util_logbase2 (Results 1 – 25 of 89) sorted by relevance

1234

/external/mesa3d/src/panfrost/lib/
Dpan_tiler.c209 #define MIN_TILE_SHIFT util_logbase2(MIN_TILE_SIZE)
210 #define MAX_TILE_SHIFT util_logbase2(MAX_TILE_SIZE)
345 unsigned exp_w = util_logbase2(best_w / 16); in panfrost_choose_tile_size()
346 unsigned exp_h = util_logbase2(best_h / 16); in panfrost_choose_tile_size()
Dpan_attributes.c101 unsigned shift = util_logbase2(hw_divisor); in panfrost_compute_magic_divisor()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state_binning.c343 const unsigned fragmentsLog2 = util_logbase2(num_fragments); in gfx10_get_bin_sizes()
344 const unsigned samplesLog2 = util_logbase2(num_samples); in gfx10_get_bin_sizes()
358 const unsigned colorLog2Pixels = util_logbase2(colorBinSizeTagPart / cColor); in gfx10_get_bin_sizes()
368 const unsigned fmaskLog2Pixels = util_logbase2(fmaskBinSizeTagPart / cFmask); in gfx10_get_bin_sizes()
396 const unsigned depthLog2Pixels = util_logbase2(depthBinSizeTagPart / MAX2(cDepth, 1u)); in gfx10_get_bin_sizes()
417 bin_size_extend.x = util_logbase2(bin_size.x) - 5; in si_emit_dpbb_disable()
419 bin_size_extend.y = util_logbase2(bin_size.y) - 5; in si_emit_dpbb_disable()
525 bin_size_extend.x = util_logbase2(bin_size.x) - 5; in si_emit_dpbb_state()
527 bin_size_extend.y = util_logbase2(bin_size.y) - 5; in si_emit_dpbb_state()
Dsi_test_dma_perf.c280 struct si_result *r = &results[util_logbase2(size)][placement][method]; in si_test_dma_perf()
348 struct si_result *r = &results[util_logbase2(size)][placement][i]; in si_test_dma_perf()
412 &results[util_logbase2(size)][placement][prev->index]; in si_test_dma_perf()
Dcik_sdma.c44 return (set_bpp ? util_logbase2(tex->surface.bpe) : 0) | (G_009910_ARRAY_MODE(tile_mode) << 3) | in encode_tile_info()
47 ((util_logbase2(tex->surface.u.legacy.tile_split >> 6)) << 11) | in encode_tile_info()
117 (util_logbase2(bpp) << 29)); in si_sdma_v4_copy_texture()
185 radeon_emit(cs, util_logbase2(bpp) | tiled->surface.u.gfx9.surf.swizzle_mode << 3 | in si_sdma_v4_copy_texture()
279 (util_logbase2(bpp) << 29)); in cik_sdma_copy_texture()
Dsi_state.c2293 unsigned log_samples = util_logbase2(tex->buffer.b.b.nr_samples); in si_initialize_color_surface()
2294 unsigned log_fragments = util_logbase2(tex->buffer.b.b.nr_storage_samples); in si_initialize_color_surface()
2300 unsigned fmask_bankh = util_logbase2(tex->surface.u.legacy.fmask.bankh); in si_initialize_color_surface()
2349 unsigned bankh = util_logbase2(tex->surface.u.legacy.bankh); in si_initialize_color_surface()
2415 S_028038_NUM_SAMPLES(util_logbase2(tex->buffer.b.b.nr_samples)) | in si_init_depth_surface()
2461 S_028040_FORMAT(format) | S_028040_NUM_SAMPLES(util_logbase2(tex->buffer.b.b.nr_samples)); in si_init_depth_surface()
2719 sctx->framebuffer.log_samples = util_logbase2(sctx->framebuffer.nr_samples); in si_set_framebuffer_state()
3459 unsigned log_samples = util_logbase2(coverage_samples); in si_emit_msaa_config()
3460 unsigned log_z_samples = util_logbase2(z_samples); in si_emit_msaa_config()
3462 unsigned log_ps_iter_samples = util_logbase2(ps_iter_samples); in si_emit_msaa_config()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_clear.c123 rt_format |= util_logbase2(sf->width) << 16; in nv30_clear_render_target()
124 rt_format |= util_logbase2(sf->height) << 24; in nv30_clear_render_target()
183 rt_format |= util_logbase2(sf->width) << 16; in nv30_clear_depth_stencil()
184 rt_format |= util_logbase2(sf->height) << 24; in nv30_clear_depth_stencil()
Dnv30_texture.c299 so->fmt |= util_logbase2(pt->width0) << 20; in nv30_sampler_view_create()
300 so->fmt |= util_logbase2(pt->height0) << 24; in nv30_sampler_view_create()
301 so->fmt |= util_logbase2(pt->depth0) << 28; in nv30_sampler_view_create()
Dnv30_transfer.c190 format |= util_logbase2(dst->w) << 16; in nv30_transfer_rect_blit()
191 format |= util_logbase2(dst->h) << 24; in nv30_transfer_rect_blit()
453 PUSH_DATA (push, ss_fmt | (util_logbase2(dst->w) << 16) | in nv30_transfer_rect_sifm()
454 (util_logbase2(dst->h) << 24)); in nv30_transfer_rect_sifm()
571 unsigned k = util_logbase2(MIN2(rect->w, rect->h)); in swizzle2d_ptr()
Dnv30_state_validate.c96 rt_format |= util_logbase2(w) << 16; in nv30_validate_fb()
97 rt_format |= util_logbase2(h) << 24; in nv30_validate_fb()
/external/mesa3d/src/freedreno/vulkan/
Dtu_nir_lower_multiview.c31 *mask = BIT(util_logbase2(old_mask) + 1) - 1; in lower_multiview_mask()
84 unsigned num_views = util_logbase2(mask) + 1; in tu_nir_lower_multiview()
Dtu_util.h31 return util_logbase2(vk_stage); in vk_to_mesa_shader_stage()
51 return util_logbase2(samples); in tu_msaa_samples()
/external/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_formats.c296 maxMipLevels = util_logbase2(max_2d_ext); in lvp_get_image_format_properties()
303 maxMipLevels = util_logbase2(max_2d_ext); in lvp_get_image_format_properties()
311 maxMipLevels = util_logbase2(max_2d_ext); in lvp_get_image_format_properties()
/external/mesa3d/src/gallium/drivers/r600/
Dcayman_msaa.c235 unsigned log_samples = util_logbase2(setup_samples); in cayman_emit_msaa_state()
237 util_logbase2(util_next_power_of_two(ps_iter_samples)); in cayman_emit_msaa_state()
/external/mesa3d/src/gallium/drivers/nouveau/codegen/
Dnv50_ir_emit_gv100.cpp222 emitField(84, 2, util_logbase2(typeSizeof(insn->sType))); in emitF2F()
225 emitField(75, 2, util_logbase2(typeSizeof(insn->dType))); in emitF2F()
236 emitField(84, 2, util_logbase2(typeSizeof(insn->sType))); in emitF2I()
240 emitField(75, 2, util_logbase2(typeSizeof(insn->dType))); in emitF2I()
273 emitField(84, 2, util_logbase2(typeSizeof(insn->sType))); in emitFRND()
276 emitField(75, 2, util_logbase2(typeSizeof(insn->dType))); in emitFRND()
286 emitField(84, 2, util_logbase2(typeSizeof(insn->sType))); in emitI2F()
288 emitField(75, 2, util_logbase2(typeSizeof(insn->dType))); in emitI2F()
/external/mesa3d/src/util/
Du_math.h456 util_logbase2(unsigned n) in util_logbase2() function
498 return 1 + util_logbase2(n - 1); in util_logbase2_ceil()
/external/mesa3d/src/amd/vulkan/winsys/amdgpu/
Dradv_amdgpu_bo.c801 tiling_flags |= AMDGPU_TILING_SET(BANK_WIDTH, util_logbase2(md->u.legacy.bankw)); in radv_amdgpu_winsys_bo_set_metadata()
802 tiling_flags |= AMDGPU_TILING_SET(BANK_HEIGHT, util_logbase2(md->u.legacy.bankh)); in radv_amdgpu_winsys_bo_set_metadata()
805 tiling_flags |= AMDGPU_TILING_SET(MACRO_TILE_ASPECT, util_logbase2(md->u.legacy.mtilea)); in radv_amdgpu_winsys_bo_set_metadata()
806 tiling_flags |= AMDGPU_TILING_SET(NUM_BANKS, util_logbase2(md->u.legacy.num_banks)-1); in radv_amdgpu_winsys_bo_set_metadata()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_clip.c115 key.nr_userclip = util_logbase2(ctx->Transform.ClipPlanesEnabled) + 1; in brw_upload_clip_prog()
Dbrw_vs.c268 util_logbase2(ctx->Transform.ClipPlanesEnabled) + 1; in brw_vs_populate_key()
/external/mesa3d/src/panfrost/midgard/
Dmidgard_ra.c472 int comps1 = util_logbase2(ins->mask); in allocate_registers()
667 util_logbase2(nir_alu_type_get_type_size(ins->src_types[i]) / 8); in install_registers_instr()
671 util_logbase2(nir_alu_type_get_type_size(ins->dest_type) / 8); in install_registers_instr()
/external/mesa3d/src/intel/compiler/
Dbrw_ir_fs.h300 const int delta = util_logbase2(type_sz(reg.type)) - in subscript()
301 util_logbase2(type_sz(type)); in subscript()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_vlc.h71 unsigned i, bits = util_logbase2(dst_size); in vl_vlc_init_table()
/external/mesa3d/src/amd/common/
Dac_surface.c211 data->tile_width_log2 = util_logbase2(w); in ac_compute_dcc_retile_tile_indices()
212 data->tile_height_log2 = util_logbase2(h); in ac_compute_dcc_retile_tile_indices()
2291 *tiling_flags |= AMDGPU_TILING_SET(BANK_WIDTH, util_logbase2(surf->u.legacy.bankw)); in ac_surface_get_bo_metadata()
2292 *tiling_flags |= AMDGPU_TILING_SET(BANK_HEIGHT, util_logbase2(surf->u.legacy.bankh)); in ac_surface_get_bo_metadata()
2296 *tiling_flags |= AMDGPU_TILING_SET(MACRO_TILE_ASPECT, util_logbase2(surf->u.legacy.mtilea)); in ac_surface_get_bo_metadata()
2297 *tiling_flags |= AMDGPU_TILING_SET(NUM_BANKS, util_logbase2(surf->u.legacy.num_banks) - 1); in ac_surface_get_bo_metadata()
2342 unsigned log_samples = util_logbase2(MAX2(1, num_storage_samples)); in ac_surface_set_umd_metadata()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_texture_desc.c68 tile = table[macrotile][util_logbase2(pixsize)][microtile][dim]; in r300_get_pixel_alignment()
72 h_tile = table[macrotile][util_logbase2(pixsize)][microtile][DIM_HEIGHT]; in r300_get_pixel_alignment()
/external/mesa3d/src/gallium/frontends/nine/
Dvolumetexture9.c88 info->last_level = util_logbase2(MAX2(MAX2(Width, Height), Depth)); in NineVolumeTexture9_ctor()

1234