summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/display/intel_bo.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2024-09-17 19:13:40 +0300
committerJani Nikula <jani.nikula@intel.com>2024-09-19 16:18:35 +0300
commit17cd58a8f13c7f1ea36e5bf705dc8afc8f6ec946 (patch)
tree28bc7fa0eab6c9846534a12b092316daa751bf1a /drivers/gpu/drm/i915/display/intel_bo.h
parentdfecc2952e43ea64a5cca1be438cb8b16b3f7acd (diff)
drm/i915/display: start a buffer object abstraction layer
The display code needs to deal with gem objects, and mostly uses struct drm_i915_gem_object. That's not great, because for xe we need to redefine it struct xe_bo during build. Start a common interface using struct drm_gem_object, with separate implementations for i915 and xe. For starters, convert i9xx_wm.c to use it. Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/df6867523a0b5fdd4eb63f657f545603ae6f6e0b.1726589119.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_bo.h')
-rw-r--r--drivers/gpu/drm/i915/display/intel_bo.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_bo.h b/drivers/gpu/drm/i915/display/intel_bo.h
new file mode 100644
index 000000000000..f5dfcc16d33e
--- /dev/null
+++ b/drivers/gpu/drm/i915/display/intel_bo.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: MIT */
+/* Copyright © 2024 Intel Corporation */
+
+#ifndef __INTEL_BO__
+#define __INTEL_BO__
+
+#include <linux/types.h>
+
+struct drm_gem_object;
+
+bool intel_bo_is_tiled(struct drm_gem_object *obj);
+
+#endif /* __INTEL_BO__ */