/third_party/mesa3d/src/util/ |
D | bitscan.h | 218 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/ |
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/compiler/nir/ |
D | nir_opt_shrink_vectors.c | 59 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()
|
D | nir_lower_clip.c | 78 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/ |
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/virtio/vulkan/ |
D | vn_common.c | 95 const uint32_t shift = util_last_bit(*iter) - busy_wait_order - 1; in vn_relax()
|
/third_party/mesa3d/src/freedreno/ir3/ |
D | ir3_lower_subgroups.c | 71 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()
|
D | ir3_shader.h | 898 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()
|
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() 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/ |
D | fd6_vsc.c | 49 unsigned n = util_last_bit(nr); in number_size_bits()
|
/third_party/mesa3d/docs/relnotes/ |
D | 10.4.4.rst | 60 - gallium/util: Don't use \__builtin_clrsb in util_last_bit().
|
/third_party/mesa3d/src/panfrost/lib/ |
D | pan_props.c | 116 return util_last_bit(mask); in panfrost_query_core_count()
|
D | pan_shader.c | 303 info->attribute_count += util_last_bit(s->info.images_used); in GENX()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
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/drivers/radeonsi/ |
D | si_debug.c | 804 " - 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/ |
D | brw_cs.c | 172 util_last_bit(ctx->ComputeProgram._Current->SamplersUsed); in brw_upload_cs_prog()
|
D | brw_program.c | 745 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/ |
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/freedreno/a5xx/ |
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/mesa/state_tracker/ |
D | st_atom_texture.c | 108 unsigned num_textures = util_last_bit(samplers_used); in st_get_sampler_views()
|
D | st_atom_sampler.c | 194 num_samplers = util_last_bit(samplers_used); in update_shader_samplers()
|
/third_party/mesa3d/src/gallium/auxiliary/nir/ |
D | nir_to_tgsi_info.c | 803 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()
|
D | tgsi_to_nir.c | 1701 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/ |
D | glspirv.c | 174 util_last_bit(prog->data->linked_stages & in _mesa_spirv_link_shaders()
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_screen.c | 221 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()
|