aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUmesh Nerlige Ramappa <[email protected]>2023-09-20 15:29:22 -0400
committerRodrigo Vivi <[email protected]>2023-12-21 11:43:10 -0500
commit61d63a59f68c7ab558b020cc675b9f94ef403c5f (patch)
treea2f4785f5998ecbff0e16427805e1860e08a328f
parentfd47ded2379265b58dd5ae699fa1f5a14e65fdfc (diff)
drm/xe: Set the correct type for xe_to_user_engine_class
User engine class is of type u16. Set the same type for the array used to map xe engines to user engines. Signed-off-by: Umesh Nerlige Ramappa <[email protected]> Reviewed-by: Niranjana Vishwanathapura <[email protected]> Signed-off-by: Francois Dugast <[email protected]> Signed-off-by: Rodrigo Vivi <[email protected]>
-rw-r--r--drivers/gpu/drm/xe/xe_query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_query.c b/drivers/gpu/drm/xe/xe_query.c
index e0c2203e428e..cbccd5c3dbc8 100644
--- a/drivers/gpu/drm/xe/xe_query.c
+++ b/drivers/gpu/drm/xe/xe_query.c
@@ -19,7 +19,7 @@
#include "xe_macros.h"
#include "xe_ttm_vram_mgr.h"
-static const enum xe_engine_class xe_to_user_engine_class[] = {
+static const u16 xe_to_user_engine_class[] = {
[XE_ENGINE_CLASS_RENDER] = DRM_XE_ENGINE_CLASS_RENDER,
[XE_ENGINE_CLASS_COPY] = DRM_XE_ENGINE_CLASS_COPY,
[XE_ENGINE_CLASS_VIDEO_DECODE] = DRM_XE_ENGINE_CLASS_VIDEO_DECODE,