[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.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jeremy White <jwhite@xxxxxxxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]