[Spice-devel,spice-protocol,42/46] qxl_surface: remove push_surface_cmd, use qxlhw_push_surface_cmd directly

Submitted by Alon Levy on April 10, 2012, 11:50 a.m.

Details

Message ID 1334058642-12274-43-git-send-email-alevy@redhat.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Alon Levy April 10, 2012, 11:50 a.m.
---
 src/qxl_surface.c |   12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/qxl_surface.c b/src/qxl_surface.c
index 9e9c364..25ace13 100644
--- a/src/qxl_surface.c
+++ b/src/qxl_surface.c
@@ -363,14 +363,6 @@  init_surface_cmd (struct QXLSurfaceCmd *cmd, surface_cache_t *cache,
     cmd->surface_id = id;
 }
 
-static void
-push_surface_cmd (surface_cache_t *cache, struct QXLSurfaceCmd *cmd)
-{
-    qxl_screen_t *qxl = cache->qxl;
-
-    qxlhw_push_surface_cmd (qxl->hw, cmd);
-}
-
 enum ROPDescriptor
 {
     ROPD_INVERS_SRC = (1 << 0),
@@ -547,7 +539,7 @@  retry:
 
     cmd.u.surface_create.data = pointer_to_u64(address);
 
-    push_surface_cmd (cache, &cmd);
+    qxlhw_push_surface_cmd (cache->qxl->hw, &cmd);
 
     dev_addr = (uint32_t *)((uint8_t *)surface->address + stride * (height - 1));
 
@@ -655,7 +647,7 @@  send_destroy (qxl_surface_t *surface)
 
     init_surface_cmd (&cmd, surface->cache, surface->id, QXL_SURFACE_CMD_DESTROY);
 
-    push_surface_cmd (surface->cache, &cmd);
+    qxlhw_push_surface_cmd (surface->cache->qxl->hw, &cmd);
 }
 
 static void