diff options
author | Fabiano FidĂȘncio <fidencio@redhat.com> | 2015-09-24 09:18:34 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-09-30 23:57:21 -0400 |
commit | 8d0d94015e96b8853c4f7f06eac3f269e1b3d866 (patch) | |
tree | 90ef9121a318ccbe5cad390d665d2ad114dccbe2 | |
parent | 9ffecb10283508260936b96022d4ee43a7798b4c (diff) |
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>
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index dd845f82cc24..4649bd2ed340 100644 --- a/drivers/gpu/drm/qxl/qxl_display.c +++ b/drivers/gpu/drm/qxl/qxl_display.c | |||
@@ -618,7 +618,7 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc, | |||
618 | adjusted_mode->hdisplay, | 618 | adjusted_mode->hdisplay, |
619 | adjusted_mode->vdisplay); | 619 | adjusted_mode->vdisplay); |
620 | 620 | ||
621 | if (qcrtc->index == 0) | 621 | if (bo->is_primary == false) |
622 | recreate_primary = true; | 622 | recreate_primary = true; |
623 | 623 | ||
624 | if (bo->surf.stride * bo->surf.height > qdev->vram_size) { | 624 | if (bo->surf.stride * bo->surf.height > qdev->vram_size) { |