Home
last modified time | relevance | path

Searched refs:min_lod (Results 1 – 25 of 68) sorted by relevance

123

/external/mesa3d/src/gallium/drivers/svga/
Dsvga_sampler_view.c52 res, sv->min_lod, sv->max_lod); in svga_debug_describe_sampler_view()
59 unsigned min_lod, unsigned max_lod) in svga_get_tex_sampler_view() argument
71 assert(min_lod <= max_lod); in svga_get_tex_sampler_view()
82 if (min_lod == 0 && max_lod >= pt->last_level) in svga_get_tex_sampler_view()
96 tex->cached_view->min_lod == min_lod && in svga_get_tex_sampler_view()
101 pt, min_lod, max_lod, pt->last_level); in svga_get_tex_sampler_view()
119 sv->min_lod = min_lod; in svga_get_tex_sampler_view()
126 pt, min_lod, max_lod, in svga_get_tex_sampler_view()
127 max_lod - min_lod + 1, in svga_get_tex_sampler_view()
141 pt, min_lod, max_lod, in svga_get_tex_sampler_view()
[all …]
Dsvga_state_tss.c83 unsigned last_level, min_lod, max_lod; in emit_tex_binding_unit() local
89 min_lod = max_lod = sv->u.tex.first_level; in emit_tex_binding_unit()
93 min_lod = s->view_min_lod + sv->u.tex.first_level; in emit_tex_binding_unit()
94 min_lod = MIN2(min_lod, last_level); in emit_tex_binding_unit()
100 min_lod = 0; in emit_tex_binding_unit()
105 view->min_lod != min_lod || in emit_tex_binding_unit()
112 view->min_lod = min_lod; in emit_tex_binding_unit()
118 min_lod, in emit_tex_binding_unit()
359 EMIT_TS(svga, unit, state->min_lod, TEXTURE_MIPMAP_LEVEL); in emit_tss_unit()
Dsvga_pipe_sampler.c170 float min_lod, max_lod; in define_sampler_state_object() local
188 assert(ps->min_lod <= ps->max_lod); in define_sampler_state_object()
192 min_lod = max_lod = 0.0f; in define_sampler_state_object()
195 min_lod = ps->min_lod; in define_sampler_state_object()
212 min_lod, /* float */ in define_sampler_state_object()
257 cso->min_lod = 0; in svga_create_sampler_state()
258 cso->view_min_lod = MAX2((int) (sampler->min_lod + 0.5), 0); in svga_create_sampler_state()
264 cso->min_lod = cso->view_min_lod; in svga_create_sampler_state()
276 cso->min_lod, cso->view_min_lod, cso->view_max_lod, in svga_create_sampler_state()
Dsvga_sampler_view.h66 int min_lod; member
80 unsigned min_lod, unsigned max_lod);
Dsvga_context.h208 unsigned min_lod; member
332 unsigned min_lod; member
/external/mesa3d/src/gallium/drivers/ilo/core/
Dilo_state_surface.c356 surf->min_lod = 0; in surface_set_gen6_buffer_SURFACE_STATE()
422 surf->min_lod = 0; in surface_set_gen7_buffer_SURFACE_STATE()
727 uint8_t *min_lod, uint8_t *mip_count) in surface_get_gen6_image_levels() argument
781 *min_lod = 0; in surface_get_gen6_image_levels()
784 *min_lod = info->level_base; in surface_get_gen6_image_levels()
923 uint8_t min_lod, mip_count; in surface_set_gen6_image_SURFACE_STATE() local
934 !surface_get_gen6_image_levels(dev, info, &min_lod, &mip_count) || in surface_set_gen6_image_SURFACE_STATE()
986 dw4 = min_lod << GEN6_SURFACE_DW4_MIN_LOD__SHIFT | in surface_set_gen6_image_SURFACE_STATE()
1002 surf->min_lod = min_lod; in surface_set_gen6_image_SURFACE_STATE()
1014 uint8_t min_lod, mip_count; in surface_set_gen7_image_SURFACE_STATE() local
[all …]
Dilo_state_sampler.c84 assert(info->min_lod == 0.0f && in sampler_validate_gen6_non_normalized()
329 uint16_t lod_bias, max_lod, min_lod; in sampler_set_gen6_SAMPLER_STATE() local
378 min_lod = get_gen6_lod_clamp(dev, info->min_lod); in sampler_set_gen6_SAMPLER_STATE()
428 dw1 |= min_lod << GEN7_SAMPLER_DW1_MIN_LOD__SHIFT | in sampler_set_gen6_SAMPLER_STATE()
433 dw1 |= min_lod << GEN6_SAMPLER_DW1_MIN_LOD__SHIFT | in sampler_set_gen6_SAMPLER_STATE()
663 assert(!surf->min_lod && !surf->mip_count); in ilo_state_sampler_set_surface()
667 const uint8_t base = surf->min_lod << GEN6_SAMPLER_DW0_BASE_LOD__RADIX; in ilo_state_sampler_set_surface()
Dilo_state_sampler.h42 float min_lod; member
Dilo_state_surface.h91 uint8_t min_lod; member
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_fragtex.c52 unsigned min_lod, max_lod; in nv30_fragtex_validate() local
64 min_lod = sv->base_lod; in nv30_fragtex_validate()
67 min_lod = MIN2(ss->min_lod + sv->base_lod, max_lod); in nv30_fragtex_validate()
87 enable |= (min_lod << 19) | (max_lod << 7); in nv30_fragtex_validate()
123 enable |= (min_lod << 18) | (max_lod << 6); in nv30_fragtex_validate()
Dnv30_texture.c179 so->min_lod = (int)(CLAMP(cso->min_lod, 0.0, max_lod) * 256.0); in nv30_sampler_state_create()
Dnv30_state.h47 unsigned min_lod; member
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_sampler.c169 sampler->min_lod = MAX2(msamp->MinLod, 0.0f); in convert_sampler()
171 if (sampler->max_lod < sampler->min_lod) { in convert_sampler()
176 sampler->max_lod = sampler->min_lod; in convert_sampler()
177 sampler->min_lod = tmp; in convert_sampler()
178 assert(sampler->min_lod <= sampler->max_lod); in convert_sampler()
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_texture.c62 cs->min_lod = etna_float_to_fixp55(ss->min_lod); in etna_create_sampler_state()
67 cs->min_lod = cs->max_lod = etna_float_to_fixp55(ss->min_lod); in etna_create_sampler_state()
225 sv->min_lod = sv->base.u.tex.first_level << 5; in etna_create_sampler_view()
Detnaviv_texture.h44 unsigned min_lod, max_lod; member
63 unsigned min_lod, max_lod; /* 5.5 fixp */ member
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_sampler_state.c92 unsigned min_lod, in brw_emit_sampler_state() argument
122 ss[1] = SET_FIELD(min_lod, GEN7_SAMPLER_MIN_LOD) | in brw_emit_sampler_state()
154 ss[1] = SET_FIELD(min_lod, GEN4_SAMPLER_MIN_LOD) | in brw_emit_sampler_state()
524 const unsigned min_lod = in brw_update_sampler_state() local
553 base_level, min_lod, max_lod, lod_bias, in brw_update_sampler_state()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm_sample.c212 DRAW_LLVM_SAMPLER_MEMBER(min_lod, DRAW_JIT_SAMPLER_MIN_LOD, TRUE)
287 sampler->dynamic_state.base.min_lod = draw_llvm_sampler_min_lod; in draw_llvm_sampler_soa_create()
/external/mesa3d/src/gallium/drivers/swr/
Dswr_tex_sample.cpp259 SWR_SAMPLER_MEMBER(min_lod, TRUE) in SWR_SAMPLER_MEMBER() argument
342 sampler->dynamic_state.base.min_lod = swr_sampler_min_lod; in swr_sampler_soa_create()
Dswr_context.h77 float min_lod;
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_tex_sample.c218 LP_LLVM_SAMPLER_MEMBER(min_lod, LP_JIT_SAMPLER_MIN_LOD, TRUE) in LP_LLVM_SAMPLER_MEMBER() argument
313 sampler->dynamic_state.base.min_lod = lp_llvm_sampler_min_lod; in lp_llvm_sampler_soa_create()
Dlp_jit.h67 float min_lod; member
Dlp_jit.c132 LP_CHECK_MEMBER_OFFSET(struct lp_jit_sampler, min_lod, in lp_jit_create_types()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_sample.c176 if (sampler->min_lod == sampler->max_lod) { in lp_sampler_static_sampler_state()
179 if (sampler->min_lod > 0.0f) { in lp_sampler_static_sampler_state()
743 LLVMValueRef min_lod = in lp_build_lod_selector() local
744 dynamic_state->min_lod(dynamic_state, bld->gallivm, in lp_build_lod_selector()
747 lod = lp_build_broadcast_scalar(lodf_bld, min_lod); in lp_build_lod_selector()
852 LLVMValueRef min_lod = in lp_build_lod_selector() local
853 dynamic_state->min_lod(dynamic_state, bld->gallivm, in lp_build_lod_selector()
855 min_lod = lp_build_broadcast_scalar(lodf_bld, min_lod); in lp_build_lod_selector()
857 lod = lp_build_max(lodf_bld, lod, min_lod); in lp_build_lod_selector()
/external/mesa3d/src/gallium/auxiliary/util/
Du_dirty_surfaces.h89 …util_dirty_surfaces_use_levels_for_sampling(pipe, dss, (unsigned)pss->min_lod + psv->u.tex.first_l… in util_dirty_surfaces_use_for_sampling_with()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_tex_sample.c1797 const float min_lod = sampler->min_lod; in compute_lod() local
1806 lod[0] = lod[1] = lod[2] = lod[3] = CLAMP(biased_lambda, min_lod, max_lod); in compute_lod()
1811 lod[i] = CLAMP(lod[i], min_lod, max_lod); in compute_lod()
1816 lod[i] = CLAMP(lod_in[i], min_lod, max_lod); in compute_lod()
1889 const float min_lod = sampler->min_lod; in compute_lambda_lod() local
1896 lod[i] = CLAMP(lod[i], min_lod, max_lod); in compute_lambda_lod()
1917 const float min_lod = sp_samp->base.min_lod; in clamp_lod() local
1926 cl = CLAMP(cl, min_lod, max_lod); in clamp_lod()

123