[Intel-xe] [PATCH v2 7/9] fixup! drm/xe/display: Implement display support

Jouni Högander jouni.hogander at intel.com
Tue Nov 14 13:04:41 UTC 2023


Add i915_gem_object_is_shmem into i915_gem_object.h compatibility
header. This is needed by intel_fbdev.c.

Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
 .../drm/xe/compat-i915-headers/gem/i915_gem_object.h  | 11 +++++++++++
 drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h     |  2 ++
 2 files changed, 13 insertions(+)
 create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object.h

diff --git a/drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object.h b/drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object.h
new file mode 100644
index 000000000000..3b305c291cdd
--- /dev/null
+++ b/drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object.h
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2022 Intel Corporation
+ */
+
+#ifndef _I915_GEM_OBJECT_H_
+#define _I915_GEM_OBJECT_H_
+
+#define i915_gem_object_is_shmem(obj) ((obj)->flags & XE_BO_CREATE_SYSTEM_BIT)
+
+#endif
diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h b/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
index 3012b787aa6a..8e67f38e98fd 100644
--- a/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
+++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
@@ -12,6 +12,8 @@
 
 #include <drm/drm_drv.h>
 
+#include "gem/i915_gem_object.h"
+
 #include "soc/intel_pch.h"
 #include "xe_device.h"
 #include "xe_bo.h"
-- 
2.34.1



More information about the Intel-xe mailing list