[Spice-devel] [PATCH] [xf86-video-qxl] The display of the RAM size subtracts the frame buffer, but it has already been subtracted in setting the num_pages field.

Jeremy White jwhite at codeweavers.com
Fri Aug 22 07:46:59 PDT 2014


Signed-off-by: Jeremy White <jwhite at codeweavers.com>
---
 src/qxl_driver.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index d9bf447..7436a62 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -384,7 +384,7 @@ qxl_map_memory (qxl_screen_t *qxl, int scrnIndex)
     
     xf86DrvMsg (scrnIndex, X_INFO, "command ram at %p (%d KB)\n",
                 (void *)((unsigned long)qxl->ram + qxl->rom->surface0_area_size),
-                (qxl->rom->num_pages * getpagesize () - qxl->rom->surface0_area_size) / 1024);
+                (qxl->rom->num_pages * getpagesize ()) / 1024);
     
     xf86DrvMsg (scrnIndex, X_INFO, "vram at %p (%ld KB)\n",
                 qxl->vram, qxl->vram_size / 1024);
-- 
1.7.10.4



More information about the Spice-devel mailing list