mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 03:10:30 -04:00
drm/i915: Handle intel_plane and intel_plane_state in to_intel_display()
Allow one to pass intel_plane/intel_plane_state to to_intel_display(). Works exactly like their crtc counterparts. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241024165356.17756-3-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
@@ -2104,6 +2104,10 @@ to_intel_frontbuffer(struct drm_framebuffer *fb)
|
||||
__drm_device_to_intel_display((p)->base.dev)
|
||||
#define __intel_hdmi_to_intel_display(p) \
|
||||
__drm_device_to_intel_display(hdmi_to_dig_port(p)->base.base.dev)
|
||||
#define __intel_plane_to_intel_display(p) \
|
||||
__drm_device_to_intel_display((p)->base.dev)
|
||||
#define __intel_plane_state_to_intel_display(p) \
|
||||
__drm_device_to_intel_display((p)->uapi.plane->dev)
|
||||
|
||||
/* Helper for generic association. Map types to conversion functions/macros. */
|
||||
#define __assoc(type, p) \
|
||||
@@ -2122,6 +2126,8 @@ to_intel_frontbuffer(struct drm_framebuffer *fb)
|
||||
__assoc(intel_digital_port, p), \
|
||||
__assoc(intel_dp, p), \
|
||||
__assoc(intel_encoder, p), \
|
||||
__assoc(intel_hdmi, p))
|
||||
__assoc(intel_hdmi, p), \
|
||||
__assoc(intel_plane, p), \
|
||||
__assoc(intel_plane_state, p))
|
||||
|
||||
#endif /* __INTEL_DISPLAY_TYPES_H__ */
|
||||
|
||||
Reference in New Issue
Block a user