[Intel-xe] [RFC PATCH v2 11/23] drm/xe: Add intel_bo_flush_if_display define for Xe

Jouni Högander jouni.hogander at intel.com
Wed May 10 12:11:40 UTC 2023


Add empty intel_bo_flush_if_display for Xe. This is targeting to get
rid of need for #ifdef I195 when doing
i915_gem_object_flush_if_display during dirtyfb call back.

Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
 drivers/gpu/drm/xe/xe_bo_types.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_bo_types.h b/drivers/gpu/drm/xe/xe_bo_types.h
index d456d913eac9..229fedc8ea72 100644
--- a/drivers/gpu/drm/xe/xe_bo_types.h
+++ b/drivers/gpu/drm/xe/xe_bo_types.h
@@ -73,4 +73,6 @@ struct xe_bo {
 #define intel_bo_to_drm_bo(bo) ((bo)->ttm.base)
 #define intel_bo_to_i915(bo) to_i915(intel_bo_to_drm_bo(bo).dev)
 
+#define intel_bo_flush_if_display(bo) do { } while (0)
+
 #endif
-- 
2.34.1



More information about the Intel-xe mailing list