[Spice-devel] [RFC 07/33] use spice-protocol defines for ring sizes

Alon Levy alevy at redhat.com
Wed Apr 27 08:55:56 PDT 2011


---
 src/qxl_driver.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index a0aea25..ee6b892 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_NOTIFY_CMD, qxl);
+					 QXL_COMMAND_RING_SIZE, QXL_IO_NOTIFY_CMD, qxl);
     qxl->cursor_ring = qxl_ring_create (&(ram_header->cursor_ring),
 					sizeof (struct QXLCommand),
-					32, QXL_IO_NOTIFY_CURSOR, qxl);
+					QXL_CURSOR_RING_SIZE, QXL_IO_NOTIFY_CURSOR, qxl);
     qxl->release_ring = qxl_ring_create (&(ram_header->release_ring),
 					 sizeof (uint64_t),
-					 8, 0, qxl);
+					 QXL_RELEASE_RING_SIZE, 0, qxl);
 
     qxl->surface_cache = qxl_surface_cache_create (qxl);
     
-- 
1.7.4.4



More information about the Spice-devel mailing list