]> git.ipfire.org Git - thirdparty/kernel/stable.git/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)
committerLuis Henriques <luis.henriques@canonical.com>
Wed, 28 Oct 2015 10:33:07 +0000 (10:33 +0000)
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: Luis Henriques <luis.henriques@canonical.com>
drivers/gpu/drm/qxl/qxl_display.c

index 6071a9943ed9d1a1f641af82e7e0d87e6e97159f..7780a5edfdbbf599aa2583e4c12384f282f6cd84 100644 (file)
@@ -552,7 +552,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) {