summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFabiano Fidêncio <fidencio@redhat.com>2015-09-24 15:18:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-22 14:49:25 -0700
commit0c4322feb2c81c2590ed257eeb87241099a40f11 (patch)
tree459e2ce63809fe67c54b6256d9ba0b231b5e1dee /drivers
parent69ae8f5e482e2c8e1b283f8296bcdbe1179bda8f (diff)
downloadlwn-0c4322feb2c81c2590ed257eeb87241099a40f11.tar.gz
lwn-0c4322feb2c81c2590ed257eeb87241099a40f11.zip
drm/qxl: recreate the primary surface when the bo is not primary
commit 8d0d94015e96b8853c4f7f06eac3f269e1b3d866 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=1264735 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/qxl/qxl_display.c2
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,
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) {