mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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>
This commit is contained in:
parent
715b8ba539
commit
99cd6ffd1f
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue