]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/gpu/drm/qxl/qxl_display.c
drm/qxl: recreate the primary surface when the bo is not primary
[karo-tx-linux.git] / 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) {