Module: Mesa Branch: main Commit: fe5c82e853d5e1b91937e777d0a5dbc3e296d8e0 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fe5c82e853d5e1b91937e777d0a5dbc3e296d8e0
Author: Tapani Pälli <tapani.pa...@intel.com> Date: Wed Aug 2 09:44:59 2023 +0300 isl: implement Wa_14018471104 Set EnableSamplerRouteToLSC in case ResourceMinLOD is 0. Signed-off-by: Tapani Pälli <tapani.pa...@intel.com> Reviewed-by: Sagar Ghuge <sagar.gh...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26801> --- src/intel/isl/isl_surface_state.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c index 406b5bcb590..a8f875b50cc 100644 --- a/src/intel/isl/isl_surface_state.c +++ b/src/intel/isl/isl_surface_state.c @@ -525,6 +525,15 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state, #if GFX_VERx10 >= 200 s.EnableSamplerRoutetoLSC = isl_format_support_sampler_route_to_lsc(info->view->format); s.EnableSamplerRoutetoLSC &= (s.SurfaceType == SURFTYPE_2D); + +/* Wa_14018471104: + * For APIs that use ResourceMinLod, do the following: (remains same as before) + * 1. If ResourceMinLod == 0.0 then **Enable Sampler Route to LSC** + * in RENDER SURFACE STATE to 1 else to 0 + */ +#if INTEL_NEEDS_WA_14018471104 + s.EnableSamplerRoutetoLSC &= info->view->min_lod_clamp == 0; +#endif #endif /* if GFX_VERx10 >= 200 */ #else