qxl: don't create too large primary surface
authorMarc-André Lureau <marcandre.lureau@gmail.com>
Thu, 16 Oct 2014 09:39:44 +0000 (11:39 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 22 Oct 2014 01:11:50 +0000 (11:11 +1000)
commitc572aaf46f71f63ae5914d4e194a955e0ba1b519
tree4985ee124bc3081dc90961663464f4965a8a683c
parente800cab3a72892134bde4b72ada063a75683c66b
qxl: don't create too large primary surface

Limit primary to qemu vgamem size, to avoid reaching
qemu guest bug "requested primary larger than framebuffer"
on resizing screen too large to fit.

Remove unneeded and misleading variables.

Related to:
https://bugzilla.redhat.com/show_bug.cgi?id=1127552

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/qxl/qxl_display.c