drm: qxl: Atomic phase 2: Use drm_atomic_set_fb_for_plane helper
authorGabriel Krisman Bertazi <krisman@collabora.co.uk>
Mon, 27 Feb 2017 20:43:24 +0000 (17:43 -0300)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 28 Feb 2017 16:26:18 +0000 (17:26 +0100)
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170227204328.18761-11-krisman@collabora.co.uk
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/qxl/qxl_display.c

index d5a00b6a07ea5a5ae3a76a5d39139b9e70c29625..d1c12ac222b725098e128ed62beb15e92f299df1 100644 (file)
@@ -31,6 +31,7 @@
 #include "drm_crtc_helper.h"
 #include <drm/drm_plane_helper.h>
 #include <drm/drm_atomic_helper.h>
+#include <drm/drm_atomic.h>
 
 static bool qxl_head_enabled(struct qxl_head *head)
 {
@@ -299,7 +300,8 @@ static int qxl_crtc_page_flip(struct drm_crtc *crtc,
        int one_clip_rect = 1;
        int ret = 0;
 
-       crtc->primary->fb = fb;
+       drm_atomic_set_fb_for_plane(crtc->primary->state, fb);
+
        bo_old->is_primary = false;
        bo->is_primary = true;