Module: Mesa
Branch: main
Commit: 7f0ed719aacd56a1ab08ad7bda9063d42b20a9ed
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f0ed719aacd56a1ab08ad7bda9063d42b20a9ed

Author: Jordan Justen <[email protected]>
Date:   Tue May  2 03:41:12 2023 -0400

intel/devinfo/i915: Set has_set_pat_uapi for MTL+

Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: José Roberto de Souza <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22878>

---

 src/intel/dev/i915/intel_device_info.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/intel/dev/i915/intel_device_info.c 
b/src/intel/dev/i915/intel_device_info.c
index 81c438ff113..cc471f920e6 100644
--- a/src/intel/dev/i915/intel_device_info.c
+++ b/src/intel/dev/i915/intel_device_info.c
@@ -597,6 +597,8 @@ bool intel_device_info_i915_get_info_from_fd(int fd, struct 
intel_device_info *d
    devinfo->has_tiling_uapi = has_get_tiling(fd);
    devinfo->has_caching_uapi =
       devinfo->platform < INTEL_PLATFORM_DG2_START && !devinfo->has_local_mem;
+   if (devinfo->ver > 12 || intel_device_info_is_mtl(devinfo))
+      devinfo->has_set_pat_uapi = true;
 
    if (getparam(fd, I915_PARAM_MMAP_GTT_VERSION, &val))
       devinfo->has_mmap_offset = val >= 4;

Reply via email to