mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 11:50:09 +01:00
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:
parent
64da97504c
commit
38fb8dcbdf
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue