[Spice-devel] [spice-protocol PATCH 42/46] qxl_surface: remove push_surface_cmd, use qxlhw_push_surface_cmd directly
Alon Levy
alevy at redhat.com
Tue Apr 10 04:50:38 PDT 2012
---
src/qxl_surface.c | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
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
--
1.7.9.3
More information about the Spice-devel
mailing list