summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorRodrigo Vivi <rodrigo.vivi@intel.com>2023-10-17 22:24:41 -0400
committerFrancois Dugast <francois.dugast@intel.com>2023-12-05 09:26:37 +0100
commit3751b43e0fd124e04d5bdd5b4f59c71a115c49a6 (patch)
tree1525dca39b552c9d5afdce059b06a367dbbdb1fa /benchmarks
parent9eb2eec7b1e95234c6d5069cf5230d2db7d1b455 (diff)
drm-uapi/xe: Make DRM_XE_DEVICE_QUERY_ENGINES future proof
Align with kernel commit ("drm/xe: Make DRM_XE_DEVICE_QUERY_ENGINES future proof") Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Francois Dugast <francois.dugast@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/gem_wsim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c
index abbe49a06..514fa4ba7 100644
--- a/benchmarks/gem_wsim.c
+++ b/benchmarks/gem_wsim.c
@@ -689,7 +689,7 @@ xe_get_default_engine(void)
struct drm_xe_engine_class_instance default_hwe, *hwe;
/* select RCS0 | CCS0 or first available engine */
- default_hwe = *xe_engine(fd, 0);
+ default_hwe = xe_engine(fd, 0)->instance;
xe_for_each_engine(fd, hwe) {
if ((hwe->engine_class == DRM_XE_ENGINE_CLASS_RENDER ||
hwe->engine_class == DRM_XE_ENGINE_CLASS_COMPUTE) &&