Home
last modified time | relevance | path

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

123456

/third_party/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.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()
95 min_lod = s->view_min_lod + sv->u.tex.first_level; in emit_tex_binding_unit()
96 min_lod = MIN2(min_lod, last_level); in emit_tex_binding_unit()
102 min_lod = 0; in emit_tex_binding_unit()
107 view->min_lod != min_lod || in emit_tex_binding_unit()
114 view->min_lod = min_lod; in emit_tex_binding_unit()
120 min_lod, in emit_tex_binding_unit()
362 EMIT_TS(svga, unit, state->min_lod, TEXTURE_MIPMAP_LEVEL); in emit_tss_unit()
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()
192 min_lod = ps->min_lod; in define_sampler_state_object()
220 min_lod, /* float */ in define_sampler_state_object()
265 cso->min_lod = 0; in svga_create_sampler_state()
266 cso->view_min_lod = MAX2((int) (sampler->min_lod + 0.5), 0); in svga_create_sampler_state()
272 cso->min_lod = cso->view_min_lod; in svga_create_sampler_state()
285 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);
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_texture_state.c51 unsigned min_lod, max_lod, max_lod_min; member
73 unsigned min_lod, max_lod; /* 5.5 fixp */ member
124 cs->min_lod = etna_float_to_fixp55(ss->min_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()
260 sv->min_lod = sv->base.u.tex.first_level << 5; in etna_create_sampler_view_state()
396 unsigned max_lod = MAX2(MIN2(ss->max_lod + sv->min_lod, sv->max_lod), ss->max_lod_min); in etna_emit_new_texture_state()
397 unsigned min_lod = MIN2(MAX2(ss->min_lod + sv->min_lod, sv->min_lod), max_lod); in etna_emit_new_texture_state() local
403 VIVS_TE_SAMPLER_LOD_CONFIG_MIN(min_lod)); in etna_emit_new_texture_state()
528 unsigned max_lod = MAX2(MIN2(ss->max_lod + sv->min_lod, sv->max_lod), ss->max_lod_min); in etna_emit_texture_state()
529 unsigned min_lod = MIN2(MAX2(ss->min_lod + sv->min_lod, sv->min_lod), max_lod); in etna_emit_texture_state() local
[all …]
/third_party/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()
/third_party/mesa3d/src/panfrost/include/
Dpanfrost-job.h251 float min_lod = allow_negative ? -max_lod : 0.0; in FIXED_16() local
253 x = ((x > max_lod) ? max_lod : ((x < min_lod) ? min_lod : x)); in FIXED_16()
/third_party/mesa3d/src/gallium/drivers/lima/
Dlima_texture.c197 desc->min_lod = lima_float_to_fixed8(sampler->base.min_lod); in lima_update_tex_desc()
198 max_lod = MIN2(sampler->base.max_lod, sampler->base.min_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()
Dlima_texture.h58 uint32_t min_lod: 8; /* Fixed point, 4.4, unsigned */ member
/third_party/mesa3d/src/panfrost/midgard/
Dmidgard_errata_lod.c62 nir_ssa_def *min_lod = nir_channel(b, params, 0); 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/
Dsampler.h81 void SetMinLOD(float min_lod) { min_lod_ = min_lod; } in SetMinLOD() argument
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_texture.c112 so->texsamp1 |= A3XX_TEX_SAMP_1_MIN_LOD(cso->min_lod) | in fd3_sampler_state_create()
119 so->texsamp1 |= A3XX_TEX_SAMP_1_MIN_LOD(MIN2(cso->min_lod, 0.125f)) | in fd3_sampler_state_create()
/third_party/skia/third_party/externals/spirv-cross/shaders/tesc/
Dwater_tess.tesc92 float min_lod = min(min(lods.x, lods.y), min(lods.z, lods.w));
93 float inner = tess_level(min(min_lod, l11));
/third_party/skia/third_party/externals/spirv-cross/shaders-msl/tesc/
Dwater_tess.tesc92 float min_lod = min(min(lods.x, lods.y), min(lods.z, lods.w));
93 float inner = tess_level(min(min_lod, l11));
Dwater_tess.multi-patch.tesc92 float min_lod = min(min(lods.x, lods.y), min(lods.z, lods.w));
93 float inner = tess_level(min(min_lod, l11));
/third_party/skia/third_party/externals/spirv-cross/reference/shaders/tesc/
Dwater_tess.tesc90 float min_lod = min(min(lods.x, lods.y), min(lods.z, lods.w));
91 float param_10 = min(min_lod, l11);
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_texture.c110 so->texsamp1 |= A5XX_TEX_SAMP_1_MIN_LOD(cso->min_lod) | in fd5_sampler_state_create()
117 so->texsamp1 |= A5XX_TEX_SAMP_1_MIN_LOD(MIN2(cso->min_lod, 0.125f)) | in fd5_sampler_state_create()
/third_party/mesa3d/src/microsoft/compiler/
Ddxil_nir_lower_int_samplers.h44 float min_lod, max_lod; member
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_texture.c110 so->texsamp1 |= A4XX_TEX_SAMP_1_MIN_LOD(cso->min_lod) | in fd4_sampler_state_create()
117 so->texsamp1 |= A4XX_TEX_SAMP_1_MIN_LOD(MIN2(cso->min_lod, 0.125f)) | in fd4_sampler_state_create()
/third_party/mesa3d/src/amd/vulkan/
Dradv_image.c958 unsigned width, unsigned height, unsigned depth, float min_lod, in gfx10_make_texture_descriptor() argument
1002 state[1] = S_00A004_MIN_LOD(radv_float_to_ufixed(CLAMP(min_lod, 0, 15), 8)) | in gfx10_make_texture_descriptor()
1118 unsigned width, unsigned height, unsigned depth, float min_lod, in si_make_texture_descriptor() argument
1182 state[1] = (S_008F14_MIN_LOD(radv_float_to_ufixed(CLAMP(min_lod, 0, 15), 8)) | in si_make_texture_descriptor()
1332 … unsigned width, unsigned height, unsigned depth, float min_lod, uint32_t *state, in radv_make_texture_descriptor() argument
1338 depth, min_lod, state, fmask_state, img_create_flags); in radv_make_texture_descriptor()
1342 depth, min_lod, state, fmask_state, img_create_flags); in radv_make_texture_descriptor()
1936 float min_lod, in radv_image_view_make_descriptor() argument
1967 iview->extent.depth, min_lod, descriptor->plane_descriptors[descriptor_plane_id], in radv_image_view_make_descriptor()
2063 float min_lod = 0.0f; in radv_image_view_init() local
[all …]
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl/tesc/
Dwater_tess.multi-patch.tesc106 float min_lod = fast::min(fast::min(lods.x, lods.y), fast::min(lods.z, lods.w));
107 float param_10 = fast::min(min_lod, l11);
Dwater_tess.tesc105 float min_lod = fast::min(fast::min(lods.x, lods.y), fast::min(lods.z, lods.w));
106 float param_10 = fast::min(min_lod, l11);
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_sample.c217 if (sampler->min_lod == sampler->max_lod) { in lp_sampler_static_sampler_state()
220 if (sampler->min_lod > 0.0f) { in lp_sampler_static_sampler_state()
879 LLVMValueRef min_lod = in lp_build_lod_selector() local
880 dynamic_state->min_lod(dynamic_state, bld->gallivm, in lp_build_lod_selector()
883 lod = lp_build_broadcast_scalar(lodf_bld, min_lod); in lp_build_lod_selector()
1000 LLVMValueRef min_lod = in lp_build_lod_selector() local
1001 dynamic_state->min_lod(dynamic_state, bld->gallivm, in lp_build_lod_selector()
1003 min_lod = lp_build_broadcast_scalar(lodf_bld, min_lod); in lp_build_lod_selector()
1005 lod = lp_build_max(lodf_bld, lod, min_lod); in lp_build_lod_selector()
/third_party/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()

123456