]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerDave Airlie <airlied@redhat.com>
Thu, 1 Oct 2015 03:57:21 +0000 (13:57 +1000)
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>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/qxl/qxl_display.c

index dd845f82cc24aaa5b46cf5680ffd607d3a8ebb2b..4649bd2ed3401ae74049798ab591c8b2e2e58779 100644 (file)
@@ -618,7 +618,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) {