dcavalca / rpms / qemu

Forked from rpms/qemu a year ago
Clone

Blame 0432-qxl-set-default-values-of-vram-_size_mb-to-1.patch

Hans de Goede 56753f
From c18b8163ec4ebec3a7f99865038fa1ad36b2add2 Mon Sep 17 00:00:00 2001
Hans de Goede 56753f
From: Alon Levy <alevy@redhat.com>
Hans de Goede 56753f
Date: Thu, 29 Mar 2012 22:24:38 +0200
Hans de Goede 56753f
Subject: [PATCH 432/434] qxl: set default values of vram*_size_mb to -1
Hans de Goede 56753f
Hans de Goede 56753f
The addition of those values caused a regression where not specifying
Hans de Goede 56753f
any value for the vram bar size would result in a 4096 _byte_ surface
Hans de Goede 56753f
area. This is ok for the windows driver but causes the X driver to be
Hans de Goede 56753f
unusable. Also, it's a regression. This patch returns the default
Hans de Goede 56753f
behavior of having a 64 megabyte vram BAR.
Hans de Goede 56753f
Hans de Goede 56753f
Signed-off-by: Alon Levy <alevy@redhat.com>
Hans de Goede 56753f
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Hans de Goede 56753f
---
Hans de Goede 56753f
 hw/qxl.c |    4 ++--
Hans de Goede 56753f
 1 file changed, 2 insertions(+), 2 deletions(-)
Hans de Goede 56753f
Hans de Goede 56753f
diff --git a/hw/qxl.c b/hw/qxl.c
Hans de Goede 56753f
index 18f3759..2135fde 100644
Hans de Goede 56753f
--- a/hw/qxl.c
Hans de Goede 56753f
+++ b/hw/qxl.c
Hans de Goede 56753f
@@ -1962,8 +1962,8 @@ static Property qxl_properties[] = {
Hans de Goede 56753f
         DEFINE_PROP_UINT32("guestdebug", PCIQXLDevice, guestdebug, 0),
Hans de Goede 56753f
         DEFINE_PROP_UINT32("cmdlog", PCIQXLDevice, cmdlog, 0),
Hans de Goede 56753f
         DEFINE_PROP_UINT32("ram_size_mb",  PCIQXLDevice, ram_size_mb, -1),
Hans de Goede 56753f
-        DEFINE_PROP_UINT32("vram_size_mb", PCIQXLDevice, vram32_size_mb, 0),
Hans de Goede 56753f
-        DEFINE_PROP_UINT32("vram64_size_mb", PCIQXLDevice, vram_size_mb, 0),
Hans de Goede 56753f
+        DEFINE_PROP_UINT32("vram_size_mb", PCIQXLDevice, vram32_size_mb, -1),
Hans de Goede 56753f
+        DEFINE_PROP_UINT32("vram64_size_mb", PCIQXLDevice, vram_size_mb, -1),
Hans de Goede 56753f
         DEFINE_PROP_END_OF_LIST(),
Hans de Goede 56753f
 };
Hans de Goede 56753f
 
Hans de Goede 56753f
-- 
Hans de Goede 56753f
1.7.10
Hans de Goede 56753f