anv: CPS LOD Compensation Enable is deprecated on Xe2+

On Xe2+, Hardware will always have scale.x and scale.y as 1.0.
This is not fixing any issues.

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33726>
This commit is contained in:
Sagar Ghuge 2025-02-13 15:57:40 -08:00 committed by Marge Bot
parent 739ca77e66
commit 2c8148a76e

View file

@ -1359,7 +1359,8 @@ VkResult genX(CreateSampler)(
.TextureBorderColorMode = DX10OGL,
#if GFX_VER >= 11
.CPSLODCompensationEnable = true,
/* This field is marked as disabled on Gfx20+ */
.CPSLODCompensationEnable = device->info->ver < 20,
#endif
.LODPreClampMode = CLAMP_MODE_OGL,