drm/exynos: atomic phase 2: keep track of framebuffer pointer
authorGustavo Padovan <[email protected]>
Mon, 1 Jun 2015 15:04:45 +0000 (12:04 -0300)
committerInki Dae <[email protected]>
Fri, 19 Jun 2015 15:32:48 +0000 (00:32 +0900)
Use drm_atomic_set_fb_for_plane() in the legacy page_flip path to keep
track of the framebuffer pointer and reference.

Signed-off-by: Gustavo Padovan <[email protected]>
Reviewed-by: Joonyoung Shim <[email protected]>
Tested-by: Tobias Jakobi <[email protected]>
Signed-off-by: Inki Dae <[email protected]>
drivers/gpu/drm/exynos/exynos_drm_crtc.c

index 73ccfa70d1ef5e49ef6a856da7785a1a50e144fc..f782d1f6f796d51be499c702937da9c43fb9e331 100644 (file)
@@ -168,6 +168,9 @@ static int exynos_drm_crtc_page_flip(struct drm_crtc *crtc,
                            crtc_w, crtc_h, crtc->x << 16, crtc->y << 16,
                            crtc_w << 16, crtc_h << 16);
 
+       if (crtc->primary->state)
+               drm_atomic_set_fb_for_plane(crtc->primary->state, fb);
+
        return 0;
 
 out: