[Intel-xe] [PATCH 1/7] drm/xe: Add empty def for i915_gem_object_flush_if_display
Jouni Högander
jouni.hogander at intel.com
Fri Sep 15 07:48:12 UTC 2023
We don't need i915_gem_object_flush_if_display on Xe side. Add empty
define to tackle compilation errors with display code where it's used.
Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
drivers/gpu/drm/xe/xe_bo.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/xe/xe_bo.h b/drivers/gpu/drm/xe/xe_bo.h
index 4a68d869b3b5..b2c139586d97 100644
--- a/drivers/gpu/drm/xe/xe_bo.h
+++ b/drivers/gpu/drm/xe/xe_bo.h
@@ -307,6 +307,7 @@ static inline unsigned int xe_sg_segment_size(struct device *dev)
#define i915_gem_object_get_frontbuffer(obj) NULL
#define i915_gem_object_set_frontbuffer(obj, front) (front)
+#define i915_gem_object_flush_if_display(obj) ((void)(obj))
#if IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST)
/**
--
2.34.1
More information about the Intel-xe
mailing list