[PATCH] drm: Fix drm_atomic_get_new_crtc_state call error

Zhaoge Zhang zhangzhaoge at loongson.cn
Mon Feb 1 09:33:44 UTC 2021


This position is to clear the previous mask flags,
so drm_atomic_get_crtc_state should be used.

Signed-off-by: Zhaoge Zhang <zhangzhaoge at loongson.cn>
---
 drivers/gpu/drm/drm_atomic_uapi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/drm_atomic_uapi.c b/drivers/gpu/drm/drm_atomic_uapi.c
index 268bb69..07fe01b 100644
--- a/drivers/gpu/drm/drm_atomic_uapi.c
+++ b/drivers/gpu/drm/drm_atomic_uapi.c
@@ -313,8 +313,8 @@ drm_atomic_set_crtc_for_connector(struct drm_connector_state *conn_state,
 		return 0;
 
 	if (conn_state->crtc) {
-		crtc_state = drm_atomic_get_new_crtc_state(conn_state->state,
-							   conn_state->crtc);
+		crtc_state = drm_atomic_get_crtc_state(conn_state->state,
+							conn_state->crtc);
 
 		crtc_state->connector_mask &=
 			~drm_connector_mask(conn_state->connector);
-- 
2.7.4



More information about the dri-devel mailing list