isl: Respect driconf option for EnableSamplerRoutetoLSC

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>
(cherry picked from commit 99cd6ffd1f)
This commit is contained in:
Sagar Ghuge 2025-09-04 17:21:23 -07:00 committed by Eric Engestrom
parent fd1c62be65
commit 8dd3853f23
2 changed files with 7 additions and 1 deletions

View file

@ -5884,7 +5884,7 @@
"description": "isl: Respect driconf option for EnableSamplerRoutetoLSC",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "7934b70ff1e5785b30c8a3635ebb84f5786688b7",
"notes": null

View file

@ -1071,6 +1071,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;