summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-04-27 14:24:35 +0300
committerAlon Levy <alevy@redhat.com>2011-04-29 12:17:04 +0300
commit9ee2aa1ccefe1f3fecaf481f38581c9b0f201ef4 (patch)
treeed6979169b8c956023858d9f2e0048e7b7fd90f6
parenta3d3ab64d24b966179c0af5d23ceaf4bf9dcf9f1 (diff)
use spice-protocol defines for ring sizes
-rw-r--r--src/qxl_driver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index b8f2812..5c25f72 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -908,13 +908,13 @@ qxl_screen_init(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
qxl->command_ring = qxl_ring_create (&(ram_header->cmd_ring),
sizeof (struct QXLCommand),
- 32, qxl->io_base + QXL_IO_NOTIFY_CMD);
+ QXL_COMMAND_RING_SIZE, QXL_IO_NOTIFY_CMD);
qxl->cursor_ring = qxl_ring_create (&(ram_header->cursor_ring),
sizeof (struct QXLCommand),
- 32, qxl->io_base + QXL_IO_NOTIFY_CURSOR);
+ QXL_CURSOR_RING_SIZE, QXL_IO_NOTIFY_CURSOR);
qxl->release_ring = qxl_ring_create (&(ram_header->release_ring),
sizeof (uint64_t),
- 8, 0);
+ QXL_RELEASE_RING_SIZE, 0);
qxl->surface_cache = qxl_surface_cache_create (qxl);