Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-08-03 14:21:47 +0200
committerTakashi Iwai <tiwai@suse.de>2018-08-03 14:22:10 +0200
commita90dce60226604dd0c2caa1db73d124f7c83498a (patch)
tree720e8cf53c361fcd9fbf2e88579fd5b7ab6d0635
parentdb7c7cc75bd2b8d2d7652ca9ce80208072ddd0b0 (diff)
drm/atomic: Handling the case when setting old crtc for plane
(bsc#1051510). suse-commit: bf9c74ae1465355ff9615f2a0f7ef1031b26e725
-rw-r--r--drivers/gpu/drm/drm_atomic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index ce80e9f21d2e..62fe6a4f815e 100644
--- a/drivers/gpu/drm/drm_atomic.c
+++ b/drivers/gpu/drm/drm_atomic.c
@@ -1355,7 +1355,9 @@ drm_atomic_set_crtc_for_plane(struct drm_plane_state *plane_state,
{
struct drm_plane *plane = plane_state->plane;
struct drm_crtc_state *crtc_state;
-
+ /* Nothing to do for same crtc*/
+ if (plane_state->crtc == crtc)
+ return 0;
if (plane_state->crtc) {
crtc_state = drm_atomic_get_crtc_state(plane_state->state,
plane_state->crtc);