summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJessica Zhang <quic_jesszhan@quicinc.com>2024-12-17 03:43:12 +0300
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>2025-01-08 02:39:58 +0300
commiteee0912a7185d5dc0a700d48f7ff620bb7f5389b (patch)
tree0de0e33b2428cbac0aa5f405893d4e2c56404b75 /include
parent73d934d7b6e39a3e52586467a30ca3ff3f6f9eb4 (diff)
downloadlinux-eee0912a7185d5dc0a700d48f7ff620bb7f5389b.tar.xz
drm: add clone mode check for CRTC
Add a common helper to check if the given CRTC state is in clone mode. This can be used by drivers to help detect if a CRTC is being shared by multiple encoders Signed-off-by: Jessica Zhang <quic_jesszhan@quicinc.com> Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Reviewed-by: Maxime Ripard <mripard@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20241216-concurrent-wb-v4-1-fe220297a7f0@quicinc.com Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_crtc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 8b48a1974da3..caa56e039da2 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -1323,5 +1323,5 @@ static inline struct drm_crtc *drm_crtc_find(struct drm_device *dev,
int drm_crtc_create_scaling_filter_property(struct drm_crtc *crtc,
unsigned int supported_filters);
-
+bool drm_crtc_in_clone_mode(struct drm_crtc_state *crtc_state);
#endif /* __DRM_CRTC_H__ */