Home
last modified time | relevance | path

Searched refs:max_lod (Results 1 – 25 of 55) sorted by relevance

123

/external/mesa3d/src/gallium/drivers/svga/
Dsvga_sampler_view.c51 util_sprintf(buf, "svga_sampler_view<%s,[%u,%u]>", res, sv->min_lod, sv->max_lod); in svga_debug_describe_sampler_view()
57 unsigned min_lod, unsigned max_lod) in svga_get_tex_sampler_view() argument
69 assert(min_lod <= max_lod); in svga_get_tex_sampler_view()
70 assert(max_lod <= pt->last_level); in svga_get_tex_sampler_view()
80 if (min_lod == 0 && max_lod >= pt->last_level) in svga_get_tex_sampler_view()
95 tex->cached_view->max_lod == max_lod) { in svga_get_tex_sampler_view()
99 pt, min_lod, max_lod, pt->last_level); in svga_get_tex_sampler_view()
115 sv->max_lod = max_lod; in svga_get_tex_sampler_view()
121 pt, min_lod, max_lod, in svga_get_tex_sampler_view()
122 max_lod - min_lod + 1, in svga_get_tex_sampler_view()
[all …]
Dsvga_state_tss.c75 unsigned max_lod; in update_tss_binding() local
90 max_lod = MIN2(s->view_max_lod + sv->u.tex.first_level, in update_tss_binding()
95 max_lod = 0; in update_tss_binding()
100 view->max_lod != max_lod) { in update_tss_binding()
107 view->max_lod = max_lod; in update_tss_binding()
113 max_lod); in update_tss_binding()
Dsvga_sampler_view.h65 int max_lod; member
78 unsigned min_lod, unsigned max_lod);
Dsvga_context.h268 unsigned max_lod; member
Dsvga_pipe_sampler.c132 cso->view_max_lod = MAX2((int) (sampler->max_lod + 0.5), 0); in svga_create_sampler_state()
/external/mesa3d/src/gallium/drivers/nv30/
Dnv30_fragtex.c52 unsigned min_lod, max_lod; in nv30_fragtex_validate() local
63 max_lod = sv->base_lod; in nv30_fragtex_validate()
66 max_lod = MIN2(ss->max_lod + sv->base_lod, sv->high_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.c133 const float max_lod = 15.0 + (255.0 / 256.0); in nv30_sampler_state_create() local
178 so->max_lod = (int)(CLAMP(cso->max_lod, 0.0, max_lod) * 256.0); in nv30_sampler_state_create()
179 so->min_lod = (int)(CLAMP(cso->min_lod, 0.0, max_lod) * 256.0); in nv30_sampler_state_create()
Dnv30_state.h46 unsigned max_lod; member
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_sampler.c159 sampler->max_lod = MIN2((GLfloat) texobj->MaxLevel - texobj->BaseLevel, in convert_sampler()
161 if (sampler->max_lod < sampler->min_lod) { in convert_sampler()
165 float tmp = sampler->max_lod; in convert_sampler()
166 sampler->max_lod = sampler->min_lod; in convert_sampler()
168 assert(sampler->min_lod <= sampler->max_lod); in convert_sampler()
/external/mesa3d/src/gallium/drivers/i915/
Di915_state_sampler.c305 unsigned max_lod = num_levels * 4; in update_map() local
333 if (max_lod > (sampler->maxlod >> 2)) in update_map()
334 max_lod = sampler->maxlod >> 2; in update_map()
340 | ((max_lod) << MS4_MAX_LOD_SHIFT) in update_map()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_tex_sample.c158 LP_LLVM_TEXTURE_MEMBER(max_lod, LP_JIT_TEXTURE_MAX_LOD, TRUE) in LP_LLVM_TEXTURE_MEMBER()
253 sampler->dynamic_state.base.max_lod = lp_llvm_texture_max_lod; in lp_llvm_sampler_soa_create()
Dlp_jit.h61 float max_lod; member
Dlp_jit.c106 LP_CHECK_MEMBER_OFFSET(struct lp_jit_texture, max_lod, in lp_jit_create_types()
Dlp_setup.c731 jit_tex->max_lod = sampler->max_lod; in lp_setup_set_fragment_sampler_state()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm_sample.c153 DRAW_LLVM_TEXTURE_MEMBER(max_lod, DRAW_JIT_TEXTURE_MAX_LOD, TRUE) in DRAW_LLVM_TEXTURE_MEMBER()
243 sampler->dynamic_state.base.max_lod = draw_llvm_texture_max_lod; in draw_llvm_sampler_soa_create()
Ddraw_llvm.h54 float max_lod; member
Ddraw_llvm.c133 LP_CHECK_MEMBER_OFFSET(struct draw_jit_texture, max_lod, in create_jit_texture_type()
1404 jit_tex->max_lod = s->max_lod; in draw_llvm_set_sampler_state()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_sample.c137 if (view->u.tex.last_level && sampler->max_lod > 0.0f) { in lp_sampler_static_state()
151 if (sampler->min_lod == sampler->max_lod) { in lp_sampler_static_state()
158 if (sampler->max_lod < (float)view->u.tex.last_level) { in lp_sampler_static_state()
581 LLVMValueRef max_lod = in lp_build_lod_selector() local
582 bld->dynamic_state->max_lod(bld->dynamic_state, bld->gallivm, unit); in lp_build_lod_selector()
583 max_lod = lp_build_broadcast_scalar(perquadf_bld, max_lod); in lp_build_lod_selector()
585 lod = lp_build_min(perquadf_bld, lod, max_lod); in lp_build_lod_selector()
Dlp_bld_sample.h173 (*max_lod)(const struct lp_sampler_dynamic_state *state, member
/external/mesa3d/src/gallium/auxiliary/util/
Du_dirty_surfaces.h90 MIN2((unsigned)ceilf(pss->max_lod) + psv->u.tex.first_level, psv->u.tex.last_level), flush); in util_dirty_surfaces_use_for_sampling_with()
Du_pstipple.c164 templat.max_lod = 0.0f; in util_pstipple_create_sampler()
/external/mesa3d/src/gallium/include/pipe/
Dp_state.h318 float min_lod, max_lod; /**< LOD clamp range, after bias */ member
/external/mesa3d/src/mesa/drivers/dri/i965/
Dgen7_sampler_state.c161 sampler->ss1.max_lod = U_FIXED(CLAMP(gl_sampler->MaxLod, 0, 13), 8); in gen7_update_sampler_state()
Dbrw_wm_sampler_state.c294 sampler->ss1.max_lod = U_FIXED(CLAMP(gl_sampler->MaxLod, 0, 13), 6); in brw_update_sampler_state()
/external/mesa3d/src/gallium/docs/source/cso/
Dsampler.rst99 max_lod

123