summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2022-07-18 22:55:15 -0700
committerMarge Bot <emma+marge@anholt.net>2022-11-28 21:54:20 +0000
commited84f163ff70f31b1b8eefbfc99e99ccb78f6478 (patch)
tree8b5e9dc1b42f314b358e24b633263da239138779
parent0213750e6d916845bba6e575ae64c3e51712c7b2 (diff)
intel/dev: Add devinfo::has_caching_uapi (and disable for dg1 and dg2+)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19911>
-rw-r--r--src/intel/dev/intel_device_info.c2
-rw-r--r--src/intel/dev/intel_device_info.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/dev/intel_device_info.c b/src/intel/dev/intel_device_info.c
index 22b6f64f9fe..1bca75ff63a 100644
--- a/src/intel/dev/intel_device_info.c
+++ b/src/intel/dev/intel_device_info.c
@@ -2003,6 +2003,8 @@ intel_i915_get_device_info_from_fd(int fd, struct intel_device_info *devinfo)
intel_get_aperture_size(fd, &devinfo->aperture_bytes);
get_context_param(fd, 0, I915_CONTEXT_PARAM_GTT_SIZE, &devinfo->gtt_size);
devinfo->has_tiling_uapi = has_get_tiling(fd);
+ devinfo->has_caching_uapi =
+ devinfo->platform < INTEL_PLATFORM_DG2_START && !devinfo->has_local_mem;
if (getparam(fd, I915_PARAM_MMAP_GTT_VERSION, &val))
devinfo->has_mmap_offset = val >= 4;
diff --git a/src/intel/dev/intel_device_info.h b/src/intel/dev/intel_device_info.h
index 78ffc23bbb2..48ac149ab2c 100644
--- a/src/intel/dev/intel_device_info.h
+++ b/src/intel/dev/intel_device_info.h
@@ -140,6 +140,7 @@ struct intel_device_info
*/
bool has_flat_ccs;
bool has_aux_map;
+ bool has_caching_uapi;
bool has_tiling_uapi;
bool has_ray_tracing;
bool has_ray_query;