Home
last modified time | relevance | path

Searched refs:max_aniso (Results 1 – 19 of 19) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_state_inlines.h311 static inline uint32_t r300_anisotropy(unsigned max_aniso) in r300_anisotropy() argument
313 if (max_aniso >= 16) { in r300_anisotropy()
315 } else if (max_aniso >= 8) { in r300_anisotropy()
317 } else if (max_aniso >= 4) { in r300_anisotropy()
319 } else if (max_aniso >= 2) { in r300_anisotropy()
326 static inline uint32_t r500_anisotropy(unsigned max_aniso) in r500_anisotropy() argument
328 if (!max_aniso) { in r500_anisotropy()
331 max_aniso -= 1; in r500_anisotropy()
334 return R500_TX_MAX_ANISO(MIN2((unsigned)(max_aniso*4.2001), 63)) | in r500_anisotropy()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_sample.c248 LLVMValueRef max_aniso) in lp_build_pmin() argument
272 max_aniso = lp_build_broadcast_scalar(coord_bld, max_aniso); in lp_build_pmin()
273 max_aniso = lp_build_mul(coord_bld, max_aniso, max_aniso); in lp_build_pmin()
314 LLVMValueRef temp = lp_build_mul(coord_bld, pmin2, max_aniso); in lp_build_pmin()
319 LLVMValueRef pmin2_alt = lp_build_div(coord_bld, pmax2, max_aniso); in lp_build_pmin()
841 LLVMValueRef max_aniso, in lp_build_lod_selector() argument
900 rho = lp_build_pmin(bld, texture_unit, s, t, max_aniso); in lp_build_lod_selector()
Dlp_bld_sample.h338 (*max_aniso)(const struct lp_sampler_dynamic_state *state, member
595 LLVMValueRef max_aniso,
Dlp_bld_sample_soa.c2608 LLVMValueRef max_aniso = NULL; in lp_build_sample_common() local
2611 max_aniso = bld->dynamic_state->max_aniso(bld->dynamic_state, in lp_build_sample_common()
2622 mip_filter, max_aniso, lod, in lp_build_sample_common()
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_pipe_common.h855 static inline unsigned eg_tex_filter(unsigned filter, unsigned max_aniso) in eg_tex_filter() argument
858 return max_aniso > 1 ? SQ_TEX_XY_FILTER_ANISO_BILINEAR in eg_tex_filter()
861 return max_aniso > 1 ? SQ_TEX_XY_FILTER_ANISO_POINT in eg_tex_filter()
Dr600_state.c576 static unsigned r600_tex_filter(unsigned filter, unsigned max_aniso) in r600_tex_filter() argument
579 return max_aniso > 1 ? V_03C000_SQ_TEX_XY_FILTER_ANISO_BILINEAR in r600_tex_filter()
582 return max_aniso > 1 ? V_03C000_SQ_TEX_XY_FILTER_ANISO_POINT in r600_tex_filter()
591 unsigned max_aniso = rscreen->force_aniso >= 0 ? rscreen->force_aniso in r600_create_sampler_state() local
593 unsigned max_aniso_ratio = r600_tex_aniso_filter(max_aniso); in r600_create_sampler_state()
607 S_03C000_XY_MAG_FILTER(r600_tex_filter(state->mag_img_filter, max_aniso)) | in r600_create_sampler_state()
608 S_03C000_XY_MIN_FILTER(r600_tex_filter(state->min_img_filter, max_aniso)) | in r600_create_sampler_state()
Devergreen_state.c579 unsigned max_aniso = rscreen->force_aniso >= 0 ? rscreen->force_aniso in evergreen_create_sampler_state() local
581 unsigned max_aniso_ratio = r600_tex_aniso_filter(max_aniso); in evergreen_create_sampler_state()
604 S_03C000_XY_MAG_FILTER(eg_tex_filter(state->mag_img_filter, max_aniso)) | in evergreen_create_sampler_state()
605 S_03C000_XY_MIN_FILTER(eg_tex_filter(state->min_img_filter, max_aniso)) | in evergreen_create_sampler_state()
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm_sample.c292 DRAW_LLVM_SAMPLER_MEMBER(max_aniso, DRAW_JIT_SAMPLER_MAX_ANISO, TRUE)
409 sampler->dynamic_state.base.max_aniso = draw_llvm_sampler_max_aniso; in draw_llvm_sampler_soa_create()
Ddraw_llvm.h89 float max_aniso; member
Ddraw_llvm.c242 LP_CHECK_MEMBER_OFFSET(struct draw_jit_sampler, max_aniso, in create_jit_sampler_type()
2607 jit_sam->max_aniso = s->max_anisotropy; in draw_llvm_set_sampler_state()
2622 jit_sam->max_aniso = s->max_anisotropy; in draw_llvm_set_sampler_state()
2637 jit_sam->max_aniso = s->max_anisotropy; in draw_llvm_set_sampler_state()
2652 jit_sam->max_aniso = s->max_anisotropy; in draw_llvm_set_sampler_state()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_tex_sample.c252 LP_LLVM_SAMPLER_MEMBER(max_aniso, LP_JIT_SAMPLER_MAX_ANISO, TRUE) in LP_LLVM_SAMPLER_MEMBER()
451 sampler->dynamic_state.base.max_aniso = lp_llvm_sampler_max_aniso; in lp_llvm_sampler_soa_create()
Dlp_jit.h75 float max_aniso; member
Dlp_jit.c135 LP_CHECK_MEMBER_OFFSET(struct lp_jit_sampler, max_aniso, in create_jit_sampler_type()
Dlp_setup.c1107 jit_sam->max_aniso = sampler->max_anisotropy; in lp_setup_set_fragment_sampler_state()
Dlp_state_cs.c1102 jit_sam->max_aniso = sampler->max_anisotropy; in lp_csctx_set_sampler_state()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_sampler.c164 uint8_t max_aniso = (uint8_t) 255; /* XXX fix me */ in define_sampler_state_object() local
217 max_aniso, in define_sampler_state_object()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state.c4712 static inline unsigned si_tex_filter(unsigned filter, unsigned max_aniso) in si_tex_filter() argument
4715 return max_aniso > 1 ? V_008F38_SQ_TEX_XY_FILTER_ANISO_BILINEAR in si_tex_filter()
4718 return max_aniso > 1 ? V_008F38_SQ_TEX_XY_FILTER_ANISO_POINT in si_tex_filter()
4741 unsigned max_aniso = sscreen->force_aniso >= 0 ? sscreen->force_aniso : state->max_anisotropy; in si_create_sampler_state() local
4742 unsigned max_aniso_ratio = si_tex_aniso_filter(max_aniso); in si_create_sampler_state()
4779 S_008F38_XY_MAG_FILTER(si_tex_filter(state->mag_img_filter, max_aniso)) | in si_create_sampler_state()
4780 S_008F38_XY_MIN_FILTER(si_tex_filter(state->min_img_filter, max_aniso)) | in si_create_sampler_state()
/third_party/mesa3d/src/amd/vulkan/
Dradv_device.c6900 uint32_t max_aniso = radv_get_max_anisotropy(device, pCreateInfo); in radv_init_sampler() local
6901 uint32_t max_aniso_ratio = radv_tex_aniso_filter(max_aniso); in radv_init_sampler()
6960 S_008F38_XY_MAG_FILTER(radv_tex_filter(pCreateInfo->magFilter, max_aniso)) | in radv_init_sampler()
6961 S_008F38_XY_MIN_FILTER(radv_tex_filter(pCreateInfo->minFilter, max_aniso)) | in radv_init_sampler()
/third_party/mesa3d/docs/relnotes/
D21.3.0.rst1094 - draw: add sampler max_aniso query.