Home
last modified time | relevance | path

Searched refs:max_lod (Results 1 - 25 of 68) sorted by relevance

123

/third_party/mesa3d/src/gallium/drivers/svga/
H A 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()
71 assert(min_lod <= max_lod); in svga_get_tex_sampler_view()
72 assert(max_lod <= pt->last_level); in svga_get_tex_sampler_view()
82 if (min_lod == 0 && max_lod >= pt->last_level) in svga_get_tex_sampler_view()
97 tex->cached_view->max_lod == max_lod) { in svga_get_tex_sampler_view()
101 pt, min_lod, max_lod, pt->last_level); in svga_get_tex_sampler_view()
120 sv->max_lod = max_lod; in svga_get_tex_sampler_view()
57 svga_get_tex_sampler_view(struct pipe_context *pipe, struct pipe_resource *pt, unsigned min_lod, unsigned max_lod) svga_get_tex_sampler_view() argument
[all...]
H A Dsvga_state_tss.c85 unsigned last_level, min_lod, max_lod; in emit_tex_binding_unit() local
91 min_lod = max_lod = sv->u.tex.first_level; in emit_tex_binding_unit()
97 max_lod = MIN2(s->view_max_lod + sv->u.tex.first_level, last_level); in emit_tex_binding_unit()
103 max_lod = 0; in emit_tex_binding_unit()
108 view->max_lod != max_lod) { in emit_tex_binding_unit()
115 view->max_lod = max_lod; in emit_tex_binding_unit()
121 max_lod); in emit_tex_binding_unit()
H A Dsvga_pipe_sampler.c169 float min_lod, max_lod; in define_sampler_state_object() local
185 assert(ps->min_lod <= ps->max_lod); in define_sampler_state_object()
189 min_lod = max_lod = 0.0f; in define_sampler_state_object()
193 max_lod = ps->max_lod; in define_sampler_state_object()
221 max_lod)); /* float */ in define_sampler_state_object()
267 cso->view_max_lod = MAX2((int) (sampler->max_lod + 0.5), 0); in svga_create_sampler_state()
H A Dsvga_sampler_view.h67 int max_lod; member
80 unsigned min_lod, unsigned max_lod);
/third_party/mesa3d/src/panfrost/include/
H A Dpanfrost-job.h250 float max_lod = (32.0 - (1.0 / 512.0)); in FIXED_16() local
251 float min_lod = allow_negative ? -max_lod : 0.0; in FIXED_16()
253 x = ((x > max_lod) ? max_lod : ((x < min_lod) ? min_lod : x)); in FIXED_16()
/third_party/mesa3d/src/gallium/drivers/etnaviv/
H A Detnaviv_texture_state.c51 unsigned min_lod, max_lod, max_lod_min; member
73 unsigned min_lod, max_lod; /* 5.5 fixp */ member
125 cs->max_lod = etna_float_to_fixp55(ss->max_lod); in etna_create_sampler_state_state()
129 cs->min_lod = cs->max_lod = etna_float_to_fixp55(0.0f); in etna_create_sampler_state_state()
132 /* if max_lod is 0, MIN filter will never be used (GC3000) in etna_create_sampler_state_state()
134 * the workaround is to set max_lod to at least 1 in etna_create_sampler_state_state()
261 sv->max_lod = MIN2(sv->base.u.tex.last_level, res->base.last_level) << 5; in etna_create_sampler_view_state()
396 unsigned max_lod = MAX2(MIN2(ss->max_lod in etna_emit_new_texture_state() local
528 unsigned max_lod = MAX2(MIN2(ss->max_lod + sv->min_lod, sv->max_lod), ss->max_lod_min); etna_emit_texture_state() local
[all...]
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
H A 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()
H A 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()
H A Dnv30_state.h48 unsigned max_lod; member
/third_party/mesa3d/src/gallium/drivers/lima/
H A Dlima_texture.c163 float max_lod; in lima_update_tex_desc() local
198 max_lod = MIN2(sampler->base.max_lod, sampler->base.min_lod + in lima_update_tex_desc()
200 desc->max_lod = lima_float_to_fixed8(max_lod); in lima_update_tex_desc()
211 desc->max_lod = desc->min_lod; in lima_update_tex_desc()
255 (desc->min_lod != desc->max_lod)) in lima_update_tex_desc()
H A Dlima_texture.h59 uint32_t max_lod: 8; /* Fixed point, 4.4, unsigned */ member
H A Dlima_parser.c762 fprintf(fp, "\t max_lod: 0x%x (%d) (%f)\n", desc->max_lod, desc->max_lod, lima_fixed8_to_float(desc->max_lod)); in parse_texture()
789 int miplevels = (int)lima_fixed8_to_float(desc->max_lod); in parse_texture()
/third_party/mesa3d/src/gallium/drivers/i915/
H A Di915_state_sampler.c38 * A note about min_lod & max_lod.
44 * min_lod =< max_lod == true
45 * max_lod =< last_level == true
48 * This is all fine and dandy if it were for the fact that max_lod
50 * the max_lod we submit on map is:
51 * max_lod = MIN2(last_level, max_lod);
291 unsigned max_lod = num_levels * 4; in update_map() local
303 max_lod = 1; in update_map()
324 * set max_lod in update_map()
[all...]
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
H A Des31cTextureStorageMultisampleGetTexLevelParameterifvTests.cpp1029 const int max_lod = in iterate() local
1068 gl.getTexLevelParameteriv(texture_target, max_lod, GL_TEXTURE_RED_TYPE, &red_type); in iterate()
1069 gl.getTexLevelParameteriv(texture_target, max_lod, GL_TEXTURE_RED_SIZE, &red_size); in iterate()
1070 gl.getTexLevelParameteriv(texture_target, max_lod, GL_TEXTURE_INTERNAL_FORMAT, in iterate()
1072 gl.getTexLevelParameteriv(texture_target, max_lod, GL_TEXTURE_SAMPLES, &texture_samples); in iterate()
1081 gl.getTexLevelParameterfv(texture_target, max_lod, GL_TEXTURE_RED_TYPE, &float_value); in iterate()
1084 gl.getTexLevelParameterfv(texture_target, max_lod, GL_TEXTURE_RED_SIZE, &float_value); in iterate()
1087 gl.getTexLevelParameterfv(texture_target, max_lod, GL_TEXTURE_INTERNAL_FORMAT, &float_value); in iterate()
1090 gl.getTexLevelParameterfv(texture_target, max_lod, GL_TEXTURE_SAMPLES, &float_value); in iterate()
/third_party/mesa3d/src/panfrost/midgard/
H A Dmidgard_errata_lod.c30 * min_lod/max_lod/lod_bias are ignored in the sampler descriptor when
63 nir_ssa_def *max_lod = nir_channel(b, params, 1); in nir_lod_errata_instr() local
75 nir_fmax(b, biased, min_lod), max_lod); in nir_lod_errata_instr()
/third_party/vk-gl-cts/external/amber/src/src/
H A Dsampler.h84 void SetMaxLOD(float max_lod) { max_lod_ = max_lod; } in SetMaxLOD() argument
/third_party/mesa3d/src/microsoft/compiler/
H A Ddxil_nir_lower_int_samplers.h44 float min_lod, max_lod; member
H A Ddxil_nir_lower_int_samplers.c397 * by the number of levels, no need to clamp it againt the max_lod first. */ in evalute_active_lod()
398 if (params->aws->max_lod <= params->max_bias) in evalute_active_lod()
399 lod = nir_fmin(b, lod, nir_imm_float(b, params->aws->max_lod)); in evalute_active_lod()
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/
H A Dfd5_texture.c111 A5XX_TEX_SAMP_1_MAX_LOD(cso->max_lod); in fd5_sampler_state_create()
118 A5XX_TEX_SAMP_1_MAX_LOD(MIN2(cso->max_lod, 0.125f)); in fd5_sampler_state_create()
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
H A Dfd3_texture.c113 A3XX_TEX_SAMP_1_MAX_LOD(cso->max_lod); in fd3_sampler_state_create()
120 A3XX_TEX_SAMP_1_MAX_LOD(MIN2(cso->max_lod, 0.125f)); in fd3_sampler_state_create()
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
H A Dfd4_texture.c111 A4XX_TEX_SAMP_1_MAX_LOD(cso->max_lod); in fd4_sampler_state_create()
118 A4XX_TEX_SAMP_1_MAX_LOD(MIN2(cso->max_lod, 0.125f)); in fd4_sampler_state_create()
/third_party/mesa3d/src/gallium/auxiliary/util/
H A 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()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_tex_sample.c249 LP_LLVM_SAMPLER_MEMBER(max_lod, LP_JIT_SAMPLER_MAX_LOD, TRUE)
448 sampler->dynamic_state.base.max_lod = lp_llvm_sampler_max_lod; in lp_llvm_sampler_soa_create()
/third_party/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_llvm_sample.c289 DRAW_LLVM_SAMPLER_MEMBER(max_lod, DRAW_JIT_SAMPLER_MAX_LOD, TRUE)
406 sampler->dynamic_state.base.max_lod = draw_llvm_sampler_max_lod; in draw_llvm_sampler_soa_create()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_sample.c203 if (sampler->max_lod > 0.0f) { in lp_sampler_static_sampler_state()
214 /* If min_lod == max_lod we can greatly simplify mipmap selection. in lp_sampler_static_sampler_state()
217 if (sampler->min_lod == sampler->max_lod) { in lp_sampler_static_sampler_state()
226 * sets max_lod to not more than actually present mip maps... in lp_sampler_static_sampler_state()
228 if (sampler->max_lod < (PIPE_MAX_TEXTURE_LEVELS - 1)) { in lp_sampler_static_sampler_state()
992 LLVMValueRef max_lod = in lp_build_lod_selector() local
993 dynamic_state->max_lod(dynamic_state, bld->gallivm, in lp_build_lod_selector()
995 max_lod = lp_build_broadcast_scalar(lodf_bld, max_lod); in lp_build_lod_selector()
997 lod = lp_build_min(lodf_bld, lod, max_lod); in lp_build_lod_selector()
[all...]

Completed in 17 milliseconds

123