[Spice-commits] Branch 'spice.v11' - 2 commits - hw/qxl.c spice-display.c

Gerd Hoffmann kraxel at kemper.freedesktop.org
Thu Jul 8 04:27:43 PDT 2010


 hw/qxl.c        |   17 -----------------
 spice-display.c |   10 ----------
 2 files changed, 27 deletions(-)

New commits:
commit 943d913194012690f05910173c23d067ad7912de
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Thu Jul 8 12:59:30 2010 +0200

    qxl: zap ->has_command()

diff --git a/hw/qxl.c b/hw/qxl.c
index e3601a7..1e3d023 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -371,22 +371,6 @@ static int interface_req_cmd_notification(QXLInstance *sin)
     return wait;
 }
 
-static int interface_has_command(QXLInstance *sin)
-{
-    PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl);
-
-    switch (qxl->mode) {
-    case QXL_MODE_VGA:
-        return qemu_spice_rect_is_empty(&qxl->ssd.dirty) ? false : true;
-    case QXL_MODE_COMPAT:
-    case QXL_MODE_NATIVE:
-    case QXL_MODE_UNDEFINED:
-        return SPICE_RING_IS_EMPTY(&qxl->ram->cmd_ring) ? false : true;
-    default:
-        return false;
-    }
-}
-
 static inline void qxl_push_free_res(PCIQXLDevice *d)
 {
     QXLReleaseRing *ring = &d->ram->release_ring;
@@ -538,7 +522,6 @@ static const QXLInterface qxl_interface = {
     .get_init_info           = interface_get_init_info,
     .get_command             = interface_get_command,
     .req_cmd_notification    = interface_req_cmd_notification,
-    .has_command             = interface_has_command,
     .release_resource        = interface_release_resource,
     .get_cursor_command      = interface_get_cursor_command,
     .req_cursor_notification = interface_req_cursor_notification,
commit 339cc9da85bba1c0969e8ae7555c0c56f6cd2f18
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Thu Jul 8 13:00:18 2010 +0200

    spice-display: zap ->has_command()

diff --git a/spice-display.c b/spice-display.c
index f419706..a749e64 100644
--- a/spice-display.c
+++ b/spice-display.c
@@ -289,15 +289,6 @@ static int interface_req_cmd_notification(QXLInstance *sin)
     return 1;
 }
 
-static int interface_has_command(QXLInstance *sin)
-{
-    SimpleSpiceDisplay *ssd = container_of(sin, SimpleSpiceDisplay, qxl);
-
-    if (debug)
-        fprintf(stderr, "%s:\n", __FUNCTION__);
-    return !qemu_spice_rect_is_empty(&ssd->dirty);
-}
-
 static void interface_release_resource(QXLInstance *sin,
                                        struct QXLReleaseInfoExt ext)
 {
@@ -354,7 +345,6 @@ static const QXLInterface dpy_interface = {
     .get_init_info           = interface_get_init_info,
     .get_command             = interface_get_command,
     .req_cmd_notification    = interface_req_cmd_notification,
-    .has_command             = interface_has_command,
     .release_resource        = interface_release_resource,
     .get_cursor_command      = interface_get_cursor_command,
     .req_cursor_notification = interface_req_cursor_notification,


More information about the Spice-commits mailing list