From 7f0ed719aacd56a1ab08ad7bda9063d42b20a9ed Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Tue, 2 May 2023 03:41:12 -0400 Subject: [PATCH] intel/devinfo/i915: Set has_set_pat_uapi for MTL+ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jordan Justen Reviewed-by: José Roberto de Souza Part-of: --- 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;