Home
last modified time | relevance | path

Searched refs:util_last_bit (Results 1 - 25 of 96) sorted by relevance

1234

/third_party/mesa3d/src/util/
H A Dbitscan.h216 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 Dir3_lower_subgroups.c71 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 Dir3_shader.h1040 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 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()
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 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/gallium/drivers/freedreno/
H A 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/compiler/nir/
H A Dnir_opt_shrink_vectors.c75 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 Dnir_opt_shrink_stores.c84 unsigned last_bit = util_last_bit(write_mask); in opt_shrink_store_instr()
H A Dnir_lower_clip.c78 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 Dvn_common.c146 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 Dfd6_vsc.c49 unsigned n = util_last_bit(nr); in number_size_bits()
H A Dfd6_texture.c94 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd6_sampler_state_create()
/third_party/mesa3d/src/panfrost/lib/
H A Dpan_shader.c239 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 Dpan_props.c167 *core_id_range = util_last_bit(mask); in panfrost_query_core_count()
/third_party/mesa3d/src/intel/compiler/
H A Dbrw_simd_selection.c156 return util_last_bit(not_spilled_mask) - 1; in brw_simd_select()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_debug.c791 " - 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 Dfd5_texture.c82 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 Dfd3_texture.c82 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 Dtgsi_to_nir.c1705 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 Dst_atom_sampler.c198 num_samplers = util_last_bit(samplers_used); in update_shader_samplers()
H A Dst_atom_texture.c106 unsigned num_textures = util_last_bit(samplers_used); in st_get_sampler_views()
/third_party/mesa3d/src/mesa/main/
H A Dglspirv.c174 util_last_bit(prog->data->linked_stages & in _mesa_spirv_link_shaders()
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
H A 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/etnaviv/
H A Detnaviv_screen.c222 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 Demu.c101 return util_last_bit(src2) - 1; in emu_alu()

Completed in 21 milliseconds

1234