Module: Mesa
Branch: main
Commit: c61101f15118f5152e4e455e13e9fcb5c165c415
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c61101f15118f5152e4e455e13e9fcb5c165c415

Author: Lionel Landwerlin <[email protected]>
Date:   Mon Apr  3 09:33:56 2023 +0300

intel/dev: set a default valid kmd_type

src/intel/perf/intel_perf_query_layout.c needs a valid kmd type to
look at the metrics

Signed-off-by: Lionel Landwerlin <[email protected]>
Fixes: 757e2dd692 ("intel/perf: Disable it for Xe KMD")
Reviewed-by: José Roberto de Souza <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22257>

---

 src/intel/dev/intel_device_info.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/intel/dev/intel_device_info.c 
b/src/intel/dev/intel_device_info.c
index 805798823d4..0c35076eb48 100644
--- a/src/intel/dev/intel_device_info.c
+++ b/src/intel/dev/intel_device_info.c
@@ -1361,6 +1361,9 @@ intel_get_device_info_from_pci_id(int pci_id,
    if (intel_needs_workaround(devinfo, 22012575642))
       devinfo->urb.max_entries[MESA_SHADER_GEOMETRY] = 1536;
 
+   /* This is a placeholder until a proper value is set. */
+   devinfo->kmd_type = INTEL_KMD_TYPE_I915;
+
    return true;
 }
 

Reply via email to