mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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: Fabiano Fidêncio <fidencio@redhat.com> Cc: stable@vger.kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
9ffecb1028
commit
8d0d94015e
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue