iris: Switch to ANISOTROPIC_FAST filter mode
Same thing as ANISOTROPIC including all restrictions except HW is allowed to take liberties with precision to speed things up, Currently only has an affect on formats of type *_sRGB. Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32738>
This commit is contained in:
@@ -2491,12 +2491,21 @@ fill_sampler_state(uint32_t *sampler_state,
|
||||
|
||||
if (max_anisotropy >= 2) {
|
||||
if (state->min_img_filter == PIPE_TEX_FILTER_LINEAR) {
|
||||
#if GFX_VER >= 30
|
||||
samp.MinModeFilter = MAPFILTER_ANISOTROPIC_FAST;
|
||||
#else
|
||||
samp.MinModeFilter = MAPFILTER_ANISOTROPIC;
|
||||
#endif
|
||||
samp.AnisotropicAlgorithm = EWAApproximation;
|
||||
}
|
||||
|
||||
if (state->mag_img_filter == PIPE_TEX_FILTER_LINEAR)
|
||||
if (state->mag_img_filter == PIPE_TEX_FILTER_LINEAR) {
|
||||
#if GFX_VER >= 30
|
||||
samp.MagModeFilter = MAPFILTER_ANISOTROPIC_FAST;
|
||||
#else
|
||||
samp.MagModeFilter = MAPFILTER_ANISOTROPIC;
|
||||
#endif
|
||||
}
|
||||
|
||||
samp.MaximumAnisotropy =
|
||||
MIN2((max_anisotropy - 2) / 2, RATIO161);
|
||||
|
||||
Reference in New Issue
Block a user