Home
last modified time | relevance | path

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

12

/external/mesa3d/src/util/
Dbitscan.h157 util_last_bit(unsigned u) in util_last_bit() function
212 return util_last_bit(i); in util_last_bit_signed()
214 return util_last_bit(~(unsigned)i); in util_last_bit_signed()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_texture.c66 tex->num_samplers = util_last_bit(tex->valid_samplers); in bind_sampler_states()
84 tex->num_textures = util_last_bit(tex->valid_textures); in set_sampler_views()
Dfreedreno_state.c224 so->count = util_last_bit(so->enabled_mask); in fd_set_vertex_buffers()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_draw.c468 util_last_bit(ctx->FragmentProgram._Current->SamplersUsed); in brw_try_draw_prims()
470 util_last_bit(ctx->GeometryProgram._Current->SamplersUsed) : 0; in brw_try_draw_prims()
472 util_last_bit(ctx->TessEvalProgram._Current->SamplersUsed) : 0; in brw_try_draw_prims()
474 util_last_bit(ctx->TessCtrlProgram._Current->SamplersUsed) : 0; in brw_try_draw_prims()
476 util_last_bit(ctx->VertexProgram._Current->SamplersUsed); in brw_try_draw_prims()
Dbrw_cs.c209 util_last_bit(ctx->ComputeProgram._Current->SamplersUsed); in brw_upload_cs_prog()
Dbrw_program.c697 unsigned sampler_count = util_last_bit(prog->SamplersUsed); in brw_setup_tex_for_precompile()
Dbrw_vec4_gs_visitor.cpp340 util_last_bit(c->control_data_bits_per_vertex); in emit_control_data_bits()
Dbrw_shader.cpp1150 int num_textures = util_last_bit(prog->SamplersUsed); in brw_assign_common_binding_table_offsets()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_debug.c455 util_last_bit(info->const_buffers_declared), in si_dump_descriptors()
456 util_last_bit(info->shader_buffers_declared), in si_dump_descriptors()
457 util_last_bit(info->samplers_declared), in si_dump_descriptors()
458 util_last_bit(info->images_declared), in si_dump_descriptors()
/external/mesa3d/src/gallium/auxiliary/util/
Du_helpers.c95 *dst_count = util_last_bit(enabled_buffers); in util_set_vertex_buffers_count()
/external/mesa3d/src/gallium/drivers/freedreno/ir3/
Dir3_shader.h358 l->max_loc = MAX2(l->max_loc, loc + util_last_bit(compmask)); in ir3_link_add()
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_texture.c90 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd3_sampler_state_create()
/external/mesa3d/src/gallium/drivers/ilo/core/
Dilo_state_compute.c273 (util_last_bit(info->per_thread_scratch_size - 1) - 10) : 0; in compute_get_gen75_per_thread_scratch_size()
Dilo_state_shader.c133 (util_last_bit(per_thread_scratch_size - 1) - 10) : 0; in vertex_get_gen6_ff()
Dilo_state_shader_ps.c392 (util_last_bit(info->per_thread_scratch_size - 1) - 10) : 0; in ps_get_gen6_ff()
/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()
Dfd5_program.c177 l->var[idx].loc + util_last_bit(l->var[idx].compmask)); in link_stream_out()
466 for (j = 0; j < util_last_bit(l.var[i].compmask); j++) in fd5_program_emit()
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_texture.c90 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd4_sampler_state_create()
/external/mesa3d/src/mesa/program/
Dprog_to_nir.c950 int max_outputs = util_last_bit(c->prog->info.outputs_written); in setup_registers_and_variables()
1052 s->info->num_textures = util_last_bit(prog->SamplersUsed); in prog_to_nir()
/external/mesa3d/src/gallium/drivers/r600/
Dr600_blit.c82 rctx->blitter, util_last_bit(rctx->samplers[PIPE_SHADER_FRAGMENT].states.enabled_mask), in r600_blitter_begin()
86 rctx->blitter, util_last_bit(rctx->samplers[PIPE_SHADER_FRAGMENT].views.enabled_mask), in r600_blitter_begin()
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_screen.c265 int log2_max_tex_size = util_last_bit(screen->specs.max_texture_size); in etna_screen_get_param()
Detnaviv_state.c418 so->count = util_last_bit(so->enabled_mask); in etna_set_vertex_buffers()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_state.c299 so->count = util_last_bit(so->enabled_mask); in vc4_set_vertex_buffers()
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_miptree.c416 1 << (util_last_bit(mt->uniform_pitch / 4) - 1)); in nv30_miptree_create()
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_shader_state.c429 uint32_t clpd_nr = util_last_bit(vp->vp.clip_enable | vp->vp.cull_enable); in nv50_fp_linkage_validate()

12