diff options
author | Jordan Justen <jordan.l.justen@intel.com> | 2023-05-02 03:41:12 -0400 |
---|---|---|
committer | Jordan Justen <jordan.l.justen@intel.com> | 2023-06-27 00:30:28 -0700 |
commit | 11961c94fd0b7fe78df338239c3695477bccb14d (patch) | |
tree | 527c8e569ccb5f723321a819455077b84b5b4b93 | |
parent | cb6b2c5c07c152e863541e2657cd846f16161fb9 (diff) |
intel/devinfo/i915: Set has_set_pat_uapi for MTL+mtl-set-pat
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
-rw-r--r-- | src/intel/dev/i915/intel_device_info.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |