intel/dev: add state cache perf fix support xe detection

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39982>
This commit is contained in:
Lionel Landwerlin 2026-02-19 10:20:59 +02:00 committed by Marge Bot
parent f43caa77c2
commit 3054192a08
2 changed files with 3 additions and 0 deletions

View file

@ -309,6 +309,7 @@ Struct("intel_device_info",
Member("bool", "has_indirect_unroll"),
Member("bool", "supports_low_latency_hint"),
Member("bool", "xe2_has_no_compression_hint"),
Member("bool", "xe_has_state_cache_perf_fix"),
Member("bool", "has_userptr_uapi"),
Member("bool", "has_coarse_pixel_primitive_and_cb", compiler_field=True,

View file

@ -77,6 +77,8 @@ xe_query_config(int fd, struct intel_device_info *devinfo)
devinfo->supports_low_latency_hint = true;
if (config->info[DRM_XE_QUERY_CONFIG_FLAGS] & DRM_XE_QUERY_CONFIG_FLAG_HAS_NO_COMPRESSION_HINT)
devinfo->xe2_has_no_compression_hint = true;
if (config->info[DRM_XE_QUERY_CONFIG_FLAGS] & DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_STATE_CACHE_PERF_FIX)
devinfo->xe_has_state_cache_perf_fix = true;
if (!has_gmd_ip_version(devinfo))
devinfo->revision = (config->info[DRM_XE_QUERY_CONFIG_REV_AND_DEVICE_ID] >> 16) & 0xFFFF;