Commit b7b62249 authored by Fabiano Fidêncio's avatar Fabiano Fidêncio Committed by Kamal Mostafa

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

commit 8d0d9401 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=1264735Signed-off-by: default avatarFabiano Fidêncio <fidencio@redhat.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent f46e6b3b
...@@ -618,7 +618,7 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc, ...@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment