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

Marc-André Lureau mlureau at redhat.com
Fri Aug 22 08:00:45 PDT 2014


ack

----- Original Message -----
> 
> 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
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 


More information about the Spice-devel mailing list