isl: Respect driconf option for EnableSamplerRoutetoLSC
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

For EnableSamplerRoutetoLSC, we do check driconf option. Buffer state
setup is just missing that option so add check for that too.

Fixes: 7934b70f ("isl/iris/anv: provide drirc toggle intel_sampler_route_to_lsc")
Cc: mesa-stable
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Caleb Callaway <caleb.callaway@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37190>
This commit is contained in:
Sagar Ghuge 2025-09-04 17:21:23 -07:00 committed by Marge Bot
parent 715b8ba539
commit 99cd6ffd1f

View file

@ -1080,6 +1080,12 @@ isl_genX(buffer_fill_state_s)(const struct isl_device *dev, void *state,
#if GFX_VERx10 >= 200
s.EnableSamplerRoutetoLSC = isl_format_support_sampler_route_to_lsc(info->format);
/* Per-application override.
*
* Bspec 57023: "Enable Sampler Route to LSC" programming note states that,
* this bit can be set for surface type SURFTYPE_2D or SURFTYPE_BUFFER.
*/
s.EnableSamplerRoutetoLSC &= dev->sampler_route_to_lsc;
#endif /* if GFX_VERx10 >= 200 */
s.SurfaceBaseAddress = info->address;