mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
isl: implement Wa_14018471104
Set EnableSamplerRouteToLSC in case ResourceMinLOD is 0. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26801>
This commit is contained in:
parent
70382f7f06
commit
fe5c82e853
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue