Home
last modified time | relevance | path

Searched refs:util_last_bit (Results 1 – 25 of 94) sorted by relevance

1234

/third_party/mesa3d/src/util/
Dbitscan.h218 util_last_bit(unsigned u) in util_last_bit() function
273 return util_last_bit(i); in util_last_bit_signed()
275 return util_last_bit(~(unsigned)i); in util_last_bit_signed()
/third_party/mesa3d/src/gallium/drivers/asahi/
Dagx_uniforms.c57 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/compiler/nir/
Dnir_opt_shrink_vectors.c59 int last_bit = util_last_bit(mask); in shrink_dest_to_read_mask()
103 unsigned last_bit = util_last_bit(mask); in opt_shrink_vectors_alu()
241 unsigned last_bit = util_last_bit(write_mask); in opt_shrink_vectors_intrinsic()
Dnir_lower_clip.c78 shader->info.clip_distance_array_size = util_last_bit(ucp_enables); in create_clipdist_vars()
266 if (use_clipdist_array && plane < util_last_bit(ucp_enables)) { in lower_clip_outputs()
/third_party/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_texture.c66 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/virtio/vulkan/
Dvn_common.c95 const uint32_t shift = util_last_bit(*iter) - busy_wait_order - 1; in vn_relax()
/third_party/mesa3d/src/freedreno/ir3/
Dir3_lower_subgroups.c71 mov->repeat = util_last_bit(mov_dst->wrmask) - 1; in mov_immed()
205 unsigned comp_count = util_last_bit(instr->dsts[0]->wrmask); in lower_block()
Dir3_shader.h898 for (int j = 0; j < util_last_bit(compmask); j++) { in ir3_link_add()
903 l->max_loc = MAX2(l->max_loc, loc + util_last_bit(compmask)); in ir3_link_add()
Dir3_shader.c81 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()
840 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/freedreno/a6xx/
Dfd6_vsc.c49 unsigned n = util_last_bit(nr); in number_size_bits()
/third_party/mesa3d/docs/relnotes/
D10.4.4.rst60 - gallium/util: Don't use \__builtin_clrsb in util_last_bit().
/third_party/mesa3d/src/panfrost/lib/
Dpan_props.c116 return util_last_bit(mask); in panfrost_query_core_count()
Dpan_shader.c303 info->attribute_count += util_last_bit(s->info.images_used); in GENX()
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_texture.c82 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd3_sampler_state_create()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_debug.c804 " - Constant buffer", 4, util_last_bit(enabled_constbuf), in si_dump_descriptors()
807 " - Shader buffer", 4, util_last_bit(enabled_shaderbuf), in si_dump_descriptors()
810 " - Sampler", 16, util_last_bit(enabled_samplers), si_get_sampler_slot, in si_dump_descriptors()
813 " - Image", 8, util_last_bit(enabled_images), si_get_image_slot, log); in si_dump_descriptors()
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_cs.c172 util_last_bit(ctx->ComputeProgram._Current->SamplersUsed); in brw_upload_cs_prog()
Dbrw_program.c745 unsigned sampler_count = util_last_bit(prog->SamplersUsed); in brw_setup_tex_for_precompile()
772 int num_textures = util_last_bit(prog->SamplersUsed); in brw_assign_common_binding_table_offsets()
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_texture.c82 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd4_sampler_state_create()
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_texture.c82 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd5_sampler_state_create()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_texture.c108 unsigned num_textures = util_last_bit(samplers_used); in st_get_sampler_views()
Dst_atom_sampler.c194 num_samplers = util_last_bit(samplers_used); in update_shader_samplers()
/third_party/mesa3d/src/gallium/auxiliary/nir/
Dnir_to_tgsi_info.c803 info->file_max[TGSI_FILE_SAMPLER] = util_last_bit(info->samplers_declared) - 1; in nir_tgsi_scan_shader()
807 info->file_max[TGSI_FILE_IMAGE] = util_last_bit(info->images_declared) - 1; in nir_tgsi_scan_shader()
Dtgsi_to_nir.c1701 instr->num_components = util_last_bit(tgsi_inst->Dst[0].Register.WriteMask); in ttn_mem()
1762 unsigned num_components = util_last_bit(tgsi_inst->Dst[0].Register.WriteMask); in ttn_mem()
2323 s->info.num_ssbos = util_last_bit(scan.shader_buffers_declared); in ttn_compile_init()
2324 s->info.num_ubos = util_last_bit(scan.const_buffers_declared >> 1); in ttn_compile_init()
2325 s->info.num_images = util_last_bit(scan.images_declared); in ttn_compile_init()
2326 s->info.num_textures = util_last_bit(scan.samplers_declared); in ttn_compile_init()
/third_party/mesa3d/src/mesa/main/
Dglspirv.c174 util_last_bit(prog->data->linked_stages & in _mesa_spirv_link_shaders()
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_screen.c221 int log2_max_tex_size = util_last_bit(screen->specs.max_texture_size); in etna_screen_get_param()
314 return util_last_bit(screen->specs.max_texture_size); in etna_screen_get_paramf()

1234