summaryrefslogtreecommitdiffstats
path: root/hw/qxl.h
diff options
context:
space:
mode:
authorAlon Levy2012-06-10 17:05:06 +0200
committerGerd Hoffmann2012-06-22 10:49:45 +0200
commit13d1fd44c46629aad672f192abbf02238c6cbf36 (patch)
treefac6154a7602eb4ee39063ea693a3d55fc34504a /hw/qxl.h
parentvga: make vram size configurable (diff)
downloadqemu-13d1fd44c46629aad672f192abbf02238c6cbf36.tar.gz
qemu-13d1fd44c46629aad672f192abbf02238c6cbf36.tar.xz
qemu-13d1fd44c46629aad672f192abbf02238c6cbf36.zip
qxl: add vgamem_size_mb and vgamem_size
In preperation for supporting a larger framebuffer for multiple monitors on a single card, add a property to qxl vgamem_size_mb, and corresponding byte sized vgamem_size, and use instead of VGA_RAM_SIZE. [ kraxel: simplify property handling, add sanity checks ] [ kraxel: fix mode copying ] Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/qxl.h')
-rw-r--r--hw/qxl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/qxl.h b/hw/qxl.h
index a4ab7cc647..172baf6cc2 100644
--- a/hw/qxl.h
+++ b/hw/qxl.h
@@ -84,6 +84,7 @@ typedef struct PCIQXLDevice {
QXLReleaseInfo *last_release;
uint32_t last_release_offset;
uint32_t oom_running;
+ uint32_t vgamem_size;
/* rom pci bar */
QXLRom shadow_rom;
@@ -105,6 +106,7 @@ typedef struct PCIQXLDevice {
uint32_t ram_size_mb;
uint32_t vram_size_mb;
uint32_t vram32_size_mb;
+ uint32_t vgamem_size_mb;
/* qxl_render_update state */
int render_update_cookie_num;