summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2026-02-25 17:49:09 +0300
committerJani Nikula <jani.nikula@intel.com>2026-02-27 00:28:57 +0300
commit2a62dc74726b03b76bab4641ee54b88b6eb7a1d5 (patch)
tree3f7837c6a00fa9a657c82490a953da2ae98a10e5 /include
parentb3e523e5deb56d10feb83fe20e223763dcfd18d4 (diff)
downloadlinux-2a62dc74726b03b76bab4641ee54b88b6eb7a1d5.tar.xz
drm/i915/dpt: move create/destroy to parent interface
Move the DPT create/destroy calls to the display parent interface. With this, we can remove the dummy xe implementation. Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Link: https://patch.msgid.link/9753b21466c668872f468ccff827eab7be034b0c.1772030909.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/intel/display_parent_interface.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/drm/intel/display_parent_interface.h b/include/drm/intel/display_parent_interface.h
index 41f4afe7928c..48abbe187d61 100644
--- a/include/drm/intel/display_parent_interface.h
+++ b/include/drm/intel/display_parent_interface.h
@@ -13,6 +13,7 @@ struct drm_framebuffer;
struct drm_gem_object;
struct drm_plane_state;
struct drm_scanout_buffer;
+struct i915_address_space;
struct i915_vma;
struct intel_dsb_buffer;
struct intel_hdcp_gsc_context;
@@ -23,6 +24,11 @@ struct ref_tracker;
/* Keep struct definitions sorted */
+struct intel_display_dpt_interface {
+ struct i915_address_space *(*create)(struct drm_gem_object *obj, size_t size);
+ void (*destroy)(struct i915_address_space *vm);
+};
+
struct intel_display_dsb_interface {
u32 (*ggtt_offset)(struct intel_dsb_buffer *dsb_buf);
void (*write)(struct intel_dsb_buffer *dsb_buf, u32 idx, u32 val);
@@ -124,6 +130,9 @@ struct intel_display_stolen_interface {
* check the optional pointers.
*/
struct intel_display_parent_interface {
+ /** @dsb: DPT interface. Optional. */
+ const struct intel_display_dpt_interface *dpt;
+
/** @dsb: DSB buffer interface */
const struct intel_display_dsb_interface *dsb;