diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-09-04 11:39:41 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-09-05 17:11:56 +0200 |
commit | ddd8fdc78ee30fc445e3d1f5bd2056acfcdefe47 (patch) | |
tree | e707cd43a4c5343fec49f89ac868db51e06c1853 /ui/spice-display.c | |
parent | 2e0e3c399aa8067148055b9ea0edb822c5b584d2 (diff) |
spice: make number of surfaces runtime-configurable.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/spice-display.c')
-rw-r--r-- | ui/spice-display.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/spice-display.c b/ui/spice-display.c index 1c31418a4c..99bc665bc7 100644 --- a/ui/spice-display.c +++ b/ui/spice-display.c @@ -317,6 +317,9 @@ void qemu_spice_display_init_common(SimpleSpiceDisplay *ssd, DisplayState *ds) qemu_mutex_init(&ssd->lock); ssd->mouse_x = -1; ssd->mouse_y = -1; + if (ssd->num_surfaces == 0) { + ssd->num_surfaces = 1024; + } ssd->bufsize = (16 * 1024 * 1024); ssd->buf = g_malloc(ssd->bufsize); } @@ -427,7 +430,7 @@ static void interface_get_init_info(QXLInstance *sin, QXLDevInitInfo *info) info->num_memslots_groups = NUM_MEMSLOTS_GROUPS; info->internal_groupslot_id = 0; info->qxl_ram_size = ssd->bufsize; - info->n_surfaces = NUM_SURFACES; + info->n_surfaces = ssd->num_surfaces; } static int interface_get_command(QXLInstance *sin, struct QXLCommandExt *ext) |