]> git.hungrycats.org Git - linux/commitdiff
drm/qxl: recreate the primary surface when the bo is not primary
authorFabiano FidĂȘncio <fidencio@redhat.com>
Thu, 24 Sep 2015 13:18:34 +0000 (15:18 +0200)
committerJiri Slaby <jslaby@suse.cz>
Wed, 28 Oct 2015 15:37:54 +0000 (16:37 +0100)
commit 8d0d94015e96b8853c4f7f06eac3f269e1b3d866 upstream.

When disabling/enabling a crtc the primary area must be updated
independently of which crtc has been disabled/enabled.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1264735

Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/qxl/qxl_display.c

index 9f4d1f71a9951ec16de09ff643943bbf95f7fac9..98976f054597730a68c5e9618f6e6502f2bce0e0 100644 (file)
@@ -537,7 +537,7 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc,
                  adjusted_mode->hdisplay,
                  adjusted_mode->vdisplay);
 
-       if (qcrtc->index == 0)
+       if (bo->is_primary == false)
                recreate_primary = true;
 
        if (bo->surf.stride * bo->surf.height > qdev->vram_size) {