Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d0d9401 authored by Fabiano Fidêncio's avatar Fabiano Fidêncio Committed by Dave Airlie
Browse files

drm/qxl: recreate the primary surface when the bo is not primary

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: default avatarFabiano Fidêncio <fidencio@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 9ffecb10
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -618,7 +618,7 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc,
		  adjusted_mode->hdisplay,
		  adjusted_mode->hdisplay,
		  adjusted_mode->vdisplay);
		  adjusted_mode->vdisplay);


	if (qcrtc->index == 0)
	if (bo->is_primary == false)
		recreate_primary = true;
		recreate_primary = true;


	if (bo->surf.stride * bo->surf.height > qdev->vram_size) {
	if (bo->surf.stride * bo->surf.height > qdev->vram_size) {