/third_party/mesa3d/src/util/ |
H A D | bitscan.h | 216 util_last_bit(unsigned u) in util_last_bit() function 271 return util_last_bit(i); in util_last_bit_signed() 273 return util_last_bit(~(unsigned)i); in util_last_bit_signed()
|
/third_party/mesa3d/src/freedreno/ir3/ |
H A D | ir3_lower_subgroups.c | 71 mov->repeat = util_last_bit(mov_dst->wrmask) - 1; in mov_immed() 86 mov->repeat = util_last_bit(mov_dst->wrmask) - 1; in mov_reg() 106 instr->repeat = util_last_bit(instr_dst->wrmask) - 1; in binop() 126 instr->repeat = util_last_bit(instr_dst->wrmask) - 1; in triop() 361 unsigned comp_count = util_last_bit(instr->dsts[0]->wrmask); in lower_instr()
|
H A D | ir3_shader.h | 1040 for (int j = 0; j < util_last_bit(compmask); j++) { in ir3_link_add() 1045 l->max_loc = MAX2(l->max_loc, loc + util_last_bit(compmask)); in ir3_link_add()
|
H A D | ir3_shader.c | 81 unsigned n = util_last_bit(v->inputs[i].compmask) - 1; in fixup_regfootprint() 112 unsigned n = util_last_bit(v->sampler_prefetch[i].wrmask) - 1; in fixup_regfootprint() 967 l->max_loc, l->var[idx].loc + util_last_bit(l->var[idx].compmask)); in ir3_link_stream_out()
|
/third_party/mesa3d/src/gallium/drivers/asahi/ |
H A D | agx_uniforms.c | 57 unsigned count = util_last_bit(st->cb_mask); in agx_push_location_direct() 70 unsigned count = util_last_bit(ctx->vb_mask); in agx_push_location_direct()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
H A D | freedreno_texture.c | 66 tex->num_samplers = util_last_bit(tex->valid_samplers); in bind_sampler_states() 100 tex->num_textures = util_last_bit(tex->valid_textures); in set_sampler_views()
|
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_opt_shrink_vectors.c | 75 int last_bit = util_last_bit(mask); in shrink_dest_to_read_mask() 195 unsigned last_bit = util_last_bit(mask); in opt_shrink_vectors_alu()
|
H A D | nir_opt_shrink_stores.c | 84 unsigned last_bit = util_last_bit(write_mask); in opt_shrink_store_instr()
|
H A D | nir_lower_clip.c | 78 shader->info.clip_distance_array_size = util_last_bit(ucp_enables); in create_clipdist_vars() 282 if (use_clipdist_array && use_vars && plane < util_last_bit(ucp_enables)) { in lower_clip_outputs()
|
/third_party/mesa3d/src/virtio/vulkan/ |
H A D | vn_common.c | 146 const uint32_t shift = util_last_bit(*iter) - busy_wait_order - 1; in vn_relax()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/ |
H A D | fd6_vsc.c | 49 unsigned n = util_last_bit(nr); in number_size_bits()
|
H A D | fd6_texture.c | 94 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd6_sampler_state_create()
|
/third_party/mesa3d/src/panfrost/lib/ |
H A D | pan_shader.c | 239 util_last_bit(s->info.outputs_written >> VARYING_SLOT_VAR0); in pan_shader_compile() 297 util_last_bit(s->info.outputs_read >> VARYING_SLOT_VAR0); in pan_shader_compile()
|
H A D | pan_props.c | 167 *core_id_range = util_last_bit(mask); in panfrost_query_core_count()
|
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_simd_selection.c | 156 return util_last_bit(not_spilled_mask) - 1; in brw_simd_select()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | si_debug.c | 791 " - Constant buffer", 4, util_last_bit(enabled_constbuf), in si_dump_descriptors() 794 " - Shader buffer", 4, util_last_bit(enabled_shaderbuf), in si_dump_descriptors() 797 " - Sampler", 16, util_last_bit(enabled_samplers), si_get_sampler_slot, in si_dump_descriptors() 800 " - Image", 8, util_last_bit(enabled_images), si_get_image_slot, log); in si_dump_descriptors()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
H A D | fd5_texture.c | 82 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd5_sampler_state_create()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
H A D | fd3_texture.c | 82 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd3_sampler_state_create()
|
/third_party/mesa3d/src/gallium/auxiliary/nir/ |
H A D | tgsi_to_nir.c | 1705 instr->num_components = util_last_bit(tgsi_inst->Dst[0].Register.WriteMask); in ttn_mem() 1766 unsigned num_components = util_last_bit(tgsi_inst->Dst[0].Register.WriteMask); in ttn_mem() 2336 s->info.num_ssbos = util_last_bit(scan.shader_buffers_declared); in ttn_compile_init() 2337 s->info.num_ubos = util_last_bit(scan.const_buffers_declared >> 1); in ttn_compile_init() 2338 s->info.num_images = util_last_bit(scan.images_declared); in ttn_compile_init() 2342 s->info.num_textures = util_last_bit(scan.samplers_declared); in ttn_compile_init()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_atom_sampler.c | 198 num_samplers = util_last_bit(samplers_used); in update_shader_samplers()
|
H A D | st_atom_texture.c | 106 unsigned num_textures = util_last_bit(samplers_used); in st_get_sampler_views()
|
/third_party/mesa3d/src/mesa/main/ |
H A D | glspirv.c | 174 util_last_bit(prog->data->linked_stages & in _mesa_spirv_link_shaders()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
H A D | fd4_texture.c | 82 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd4_sampler_state_create()
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
H A D | etnaviv_screen.c | 222 int log2_max_tex_size = util_last_bit(screen->specs.max_texture_size); in etna_screen_get_param() 323 return util_last_bit(screen->specs.max_texture_size); in etna_screen_get_paramf()
|
/third_party/mesa3d/src/freedreno/afuc/ |
H A D | emu.c | 101 return util_last_bit(src2) - 1; in emu_alu()
|