Home
last modified time | relevance | path

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

1234

/external/mesa3d/src/util/
Dbitscan.h208 util_last_bit(unsigned u) in util_last_bit() function
263 return util_last_bit(i); in util_last_bit_signed()
265 return util_last_bit(~(unsigned)i); in util_last_bit_signed()
Dbitset.h105 return util_last_bit(x[i]) + BITSET_WORDBITS * i; in __bitset_last_bit()
/external/mesa3d/src/compiler/nir/
Dnir_opt_shrink_vectors.c53 int last_bit = util_last_bit(mask); in shrink_dest_to_read_mask()
91 int last_bit = util_last_bit(mask); in opt_shrink_vectors_alu()
183 unsigned last_bit = util_last_bit(write_mask); in opt_shrink_vectors_intrinsic()
Dnir_lower_clip.c81 util_last_bit(ucp_enables)); in create_clipdist_vars()
279 if (use_clipdist_array && plane < util_last_bit(ucp_enables)) { in lower_clip_outputs()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_texture.c65 tex->num_samplers = util_last_bit(tex->valid_samplers); in bind_sampler_states()
86 tex->num_textures = util_last_bit(tex->valid_textures); in set_sampler_views()
/external/virglrenderer/src/gallium/auxiliary/util/
Du_math.h541 static inline unsigned util_last_bit(unsigned u) in util_last_bit() function
566 return util_last_bit(i); in util_last_bit_signed()
568 return util_last_bit(~(unsigned)i); in util_last_bit_signed()
/external/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_vsc.c50 unsigned n = util_last_bit(nr); in number_size_bits()
/external/mesa3d/docs/relnotes/
D10.4.4.rst60 - gallium/util: Don't use \__builtin_clrsb in util_last_bit().
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_draw.c854 util_last_bit(ctx->FragmentProgram._Current->info.textures_used); in brw_prepare_drawing()
856 util_last_bit(ctx->GeometryProgram._Current->info.textures_used) : 0; in brw_prepare_drawing()
858 util_last_bit(ctx->TessEvalProgram._Current->info.textures_used) : 0; in brw_prepare_drawing()
860 util_last_bit(ctx->TessCtrlProgram._Current->info.textures_used) : 0; in brw_prepare_drawing()
862 util_last_bit(ctx->VertexProgram._Current->info.textures_used); in brw_prepare_drawing()
Dbrw_cs.c194 util_last_bit(ctx->ComputeProgram._Current->SamplersUsed); in brw_upload_cs_prog()
/external/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()
804 info->file_max[TGSI_FILE_SAMPLER_VIEW] = util_last_bit(nir->info.textures_used) - 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.c1707 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()
2322 s->info.num_ssbos = util_last_bit(scan.shader_buffers_declared); in ttn_compile_init()
2323 s->info.num_ubos = util_last_bit(scan.const_buffers_declared >> 1); in ttn_compile_init()
2324 s->info.num_images = util_last_bit(scan.images_declared); in ttn_compile_init()
2325 s->info.num_textures = util_last_bit(scan.samplers_declared); in ttn_compile_init()
/external/mesa3d/src/amd/compiler/
Daco_instruction_selection.h206 if (util_last_bit(wrmask) != util_bitcount(wrmask) || in can_subdword_ssbo_store_use_smem()
/external/mesa3d/src/freedreno/ir3/
Dir3_shader.h880 for (int j = 0; j < util_last_bit(compmask); j++) { in ir3_link_add()
885 l->max_loc = MAX2(l->max_loc, loc + util_last_bit(compmask)); in ir3_link_add()
Dir3_shader.c77 unsigned n = util_last_bit(v->inputs[i].compmask) - 1; in fixup_regfootprint()
108 unsigned n = util_last_bit(v->sampler_prefetch[i].wrmask) - 1; in fixup_regfootprint()
/external/mesa3d/src/gallium/frontends/clover/core/
Ddevice.cpp127 return util_last_bit(pipe->get_param(pipe, PIPE_CAP_MAX_TEXTURE_2D_SIZE)); in max_image_levels_2d()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_debug.c827 " - Constant buffer", 4, util_last_bit(enabled_constbuf), in si_dump_descriptors()
830 " - Shader buffer", 4, util_last_bit(enabled_shaderbuf), in si_dump_descriptors()
833 " - Sampler", 16, util_last_bit(enabled_samplers), si_get_sampler_slot, in si_dump_descriptors()
836 " - Image", 8, util_last_bit(enabled_images), si_get_image_slot, log); in si_dump_descriptors()
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_texture.c88 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd3_sampler_state_create()
/external/mesa3d/src/gallium/auxiliary/util/
Du_helpers.c100 *dst_count = util_last_bit(enabled_buffers); in util_set_vertex_buffers_count()
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_texture.c88 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd5_sampler_state_create()
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_texture.c88 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd4_sampler_state_create()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_sampler.c281 num_samplers = util_last_bit(samplers_used); in update_shader_samplers()
/external/mesa3d/src/mesa/main/
Dglspirv.c174 util_last_bit(prog->data->linked_stages & in _mesa_spirv_link_shaders()
/external/mesa3d/src/intel/dev/
Dgen_device_info.c1138 topology->max_slices = util_last_bit(slice_mask); in update_from_masks()
1139 topology->max_subslices = util_last_bit(subslice_mask); in update_from_masks()
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_screen.c216 int log2_max_tex_size = util_last_bit(screen->specs.max_texture_size); in etna_screen_get_param()
287 return util_last_bit(screen->specs.max_texture_size); in etna_screen_get_paramf()

1234