/third_party/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_sampler_view.c | 52 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() 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_lo 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 D | svga_state_tss.c | 85 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() [all...] |
H A D | svga_pipe_sampler.c | 169 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, cs in svga_create_sampler_state() [all...] |
H A D | svga_sampler_view.h | 66 int min_lod; member 80 unsigned min_lod, unsigned max_lod);
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
H A D | etnaviv_texture_state.c | 51 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, s in etna_emit_new_texture_state() local 529 unsigned min_lod = MIN2(MAX2(ss->min_lod + sv->min_lod, sv->min_lod), max_lod); etna_emit_texture_state() local [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/ |
H A D | nv30_fragtex.c | 52 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()
|
H A D | nv30_texture.c | 179 so->min_lod = (int)(CLAMP(cso->min_lod, 0.0, max_lod) * 256.0); in nv30_sampler_state_create()
|
H A D | nv30_state.h | 47 unsigned min_lod; member
|
/third_party/mesa3d/src/panfrost/include/ |
H A D | panfrost-job.h | 251 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/ |
H A D | lima_texture.c | 197 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()
|
H A D | lima_texture.h | 58 uint32_t min_lod: 8; /* Fixed point, 4.4, unsigned */ member
|
/third_party/mesa3d/src/panfrost/midgard/ |
H A D | midgard_errata_lod.c | 30 * min_lod/max_lod/lod_bias are ignored in the sampler descriptor when 62 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/ |
H A D | sampler.h | 81 void SetMinLOD(float min_lod) { min_lod_ = min_lod; } in SetMinLOD() argument
|
/third_party/mesa3d/src/microsoft/compiler/ |
H A D | dxil_nir_lower_int_samplers.h | 44 float min_lod, max_lod; member
|
H A D | dxil_nir_lower_int_samplers.c | 335 /* Later we use min_lod for clamping the LOD to a legal value */ in evalute_active_lod() 336 float min_lod = MAX2(params->aws->min_lod, 0.0f); in evalute_active_lod() local 394 lod = nir_fmax(b, lod, nir_imm_float(b, min_lod)); in evalute_active_lod()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
H A D | fd5_texture.c | 110 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/gallium/drivers/freedreno/a3xx/ |
H A D | fd3_texture.c | 112 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/mesa3d/src/amd/vulkan/ |
H A D | radv_image.c | 958 unsigned width, unsigned height, unsigned depth, float min_lod, in gfx10_make_texture_descriptor() 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() 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() 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() 1967 iview->extent.depth, min_lod, descriptor->plane_descriptors[descriptor_plane_id], in radv_image_view_make_descriptor() 2063 float min_lod in radv_image_view_init() local 954 gfx10_make_texture_descriptor(struct radv_device *device, struct radv_image *image, bool is_storage_image, VkImageViewType view_type, VkFormat vk_format, const VkComponentMapping *mapping, unsigned first_level, unsigned last_level, unsigned first_layer, unsigned last_layer, unsigned width, unsigned height, unsigned depth, float min_lod, uint32_t *state, uint32_t *fmask_state, VkImageCreateFlags img_create_flags) gfx10_make_texture_descriptor() argument 1114 si_make_texture_descriptor(struct radv_device *device, struct radv_image *image, bool is_storage_image, VkImageViewType view_type, VkFormat vk_format, const VkComponentMapping *mapping, unsigned first_level, unsigned last_level, unsigned first_layer, unsigned last_layer, unsigned width, unsigned height, unsigned depth, float min_lod, uint32_t *state, uint32_t *fmask_state, VkImageCreateFlags img_create_flags) si_make_texture_descriptor() argument 1328 radv_make_texture_descriptor(struct radv_device *device, struct radv_image *image, bool is_storage_image, VkImageViewType view_type, VkFormat vk_format, const VkComponentMapping *mapping, unsigned first_level, unsigned last_level, unsigned first_layer, unsigned last_layer, unsigned width, unsigned height, unsigned depth, float min_lod, uint32_t *state, uint32_t *fmask_state, VkImageCreateFlags img_create_flags) radv_make_texture_descriptor() argument 1934 radv_image_view_make_descriptor(struct radv_image_view *iview, struct radv_device *device, VkFormat vk_format, const VkComponentMapping *components, float min_lod, bool is_storage_image, bool disable_compression, bool enable_compression, unsigned plane_id, unsigned descriptor_plane_id, VkImageCreateFlags img_create_flags) radv_image_view_make_descriptor() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
H A D | fd4_texture.c | 110 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/gallium/auxiliary/gallivm/ |
H A D | lp_bld_sample.c | 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() 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() [all...] |
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_dirty_surfaces.h | 89 util_dirty_surfaces_use_levels_for_sampling(pipe, dss, (unsigned)pss->min_lod + psv->u.tex.first_level, in util_dirty_surfaces_use_for_sampling_with()
|
/third_party/mesa3d/src/compiler/ |
H A D | shader_info.h | 78 bool min_lod; member
|
/third_party/mesa3d/src/vulkan/runtime/ |
H A D | vk_image.h | 276 float min_lod; member
|
/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | nine_pipe.c | 221 samp.min_lod = ss[NINED3DSAMP_MINLOD]; in nine_convert_sampler_state() 224 samp.min_lod = 0.0; in nine_convert_sampler_state()
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_tex_sample.c | 248 LP_LLVM_SAMPLER_MEMBER(min_lod, LP_JIT_SAMPLER_MIN_LOD, TRUE) 447 sampler->dynamic_state.base.min_lod = lp_llvm_sampler_min_lod; in lp_llvm_sampler_soa_create()
|