isl: Set MOCS to uncached for MTL stream-out

Without this change various OpenGL CTS tranform feedback tests were
failing.

Cc: 23.2 <mesa-stable>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23823>
(cherry picked from commit 39f547381c)
This commit is contained in:
Jordan Justen 2023-04-27 21:35:27 -04:00 committed by Dylan Baker
parent 64da97504c
commit 38fb8dcbdf
2 changed files with 5 additions and 1 deletions

View file

@ -44,7 +44,7 @@
"description": "isl: Set MOCS to uncached for MTL stream-out",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -251,6 +251,10 @@ isl_mocs(const struct isl_device *dev, isl_surf_usage_flags_t usage,
if (external)
return dev->mocs.external | mask;
if (intel_device_info_is_mtl(dev->info) &&
(usage & ISL_SURF_USAGE_STREAM_OUT_BIT))
return dev->mocs.uncached | mask;
if (dev->info->verx10 == 120 && dev->info->platform != INTEL_PLATFORM_DG1) {
if (usage & ISL_SURF_USAGE_STAGING_BIT)
return dev->mocs.internal | mask;