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;