disp: msm: sde: allow qsync support along with VRR

Allow Qsync and VRR features to be supported independently
by display driver. Restrict the feature availability in
same composition cycle.

Change-Id: I696eb72a2b4f9451e142ffdc5acccc8987c36b6d
Signed-off-by: Kalyan Thota <kalyant@codeaurora.org>
Signed-off-by: Jayaprakash <jmadiset@codeaurora.org>
This commit is contained in:
Jayaprakash
2019-09-24 18:33:20 +05:30
orang tua 4fbdc64598
melakukan ad40a300a1
5 mengubah file dengan 70 tambahan dan 16 penghapusan

Melihat File

@@ -714,6 +714,25 @@ static inline int sde_crtc_get_secure_level(struct drm_crtc *crtc,
CRTC_PROP_SECURITY_LEVEL);
}
/** sde_crtc_atomic_check_has_modeset - checks if the new_crtc_state in the
* drm_atomic_state has a modeset
* @state : pointer to drm_atomic_state
* @crtc : Pointer to drm crtc structure
* Returns true if crtc has modeset
*/
static inline bool sde_crtc_atomic_check_has_modeset(
struct drm_atomic_state *state, struct drm_crtc *crtc)
{
struct drm_crtc_state *crtc_state;
if (!state || !crtc)
return false;
crtc_state = drm_atomic_get_new_crtc_state(state,
crtc);
return (crtc_state && drm_atomic_crtc_needs_modeset(crtc_state));
}
/**
* sde_crtc_get_secure_transition - determines the operations to be
* performed before transitioning to secure state