[Intel-xe] [RFC 2/3] drm/xe: Add wrapper over intel_step_name

Chaitanya Kumar Borah chaitanya.kumar.borah at intel.com
Wed Sep 20 07:16:59 UTC 2023


To maintain compatibility between xe and i915, let's create a
wrapper with same name over driver specific calls made to
retrieve the step name.

Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.borah at intel.com>
Signed-off-by: Animesh Manna <animesh.manna at intel.com>
---
 drivers/gpu/drm/xe/xe_step.c | 5 +++++
 drivers/gpu/drm/xe/xe_step.h | 1 +
 2 files changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_step.c b/drivers/gpu/drm/xe/xe_step.c
index 371cac951e0f..23ca9e4f2fa6 100644
--- a/drivers/gpu/drm/xe/xe_step.c
+++ b/drivers/gpu/drm/xe/xe_step.c
@@ -254,3 +254,8 @@ const char *xe_step_name(enum xe_step step)
 		return "**";
 	}
 }
+
+const char *intel_get_step_name(struct xe_device *xe)
+{
+	return xe_step_name(xe->info.step.display);
+}
diff --git a/drivers/gpu/drm/xe/xe_step.h b/drivers/gpu/drm/xe/xe_step.h
index a384b640f2af..277947f61f71 100644
--- a/drivers/gpu/drm/xe/xe_step.h
+++ b/drivers/gpu/drm/xe/xe_step.h
@@ -17,5 +17,6 @@ struct xe_step_info xe_step_gmdid_get(struct xe_device *xe,
 				      u32 graphics_gmdid_revid,
 				      u32 media_gmdid_revid);
 const char *xe_step_name(enum xe_step step);
+const char *intel_get_step_name(struct xe_device *xe);
 
 #endif
-- 
2.25.1



More information about the Intel-xe mailing list