spice patch queue
Hi,
Spice patch queue, featuring mouse pointer support for non-qxl cards and a bugfix for the qxl renderer.
please pull,
Gerd
The following changes since commit 2a2c4830c0068d70443f3dddc4cc668f0c601b5c:
Merge remote-tracking branch 'remotes/kraxel/tags/pull-gtk-20140611-1' into staging (2014-06-12 09:51:41 +0100)
are available in the git repository at:
git://anongit.freedesktop.org/spice/qemu tags/pull-spice-20140613-1
for you to fetch changes up to 788fbf042fc6d5aaeab56757e6dad622ac5f0c21:
qxl-render: add sanity check (2014-06-13 12:34:57 +0200)
----------------------------------------------------------------
spice: add mouse cursor support
qxl-render: add sanity check
----------------------------------------------------------------
Gerd Hoffmann (2):
spice: add mouse cursor support
qxl-render: add sanity check
hw/display/qxl-render.c | 6 +++ hw/display/qxl.c | 6 ++- include/ui/spice-display.h | 14 +++++ ui/spice-display.c | 129 +++++++++++++++++++++++++++++++++++++++++---- 4 files changed, 143 insertions(+), 12 deletions(-)
[Qemu-devel] [PULL 2/2] qxl-render: add sanity check
Verify dirty rectangle is completely within the primary surface, just ignore it in case it isn't.
--- hw/display/qxl-render.c | 6 ++++++ 1 file changed, 6 insertions(+)
hw/display/qxl-render.c +6 -0
@@ -138,6 +138,12 @@ static void qxl_render_update_area_unlocked(PCIQXLDevice *qxl)if (qemu_spice_rect_is_empty (qxl->dirty+i)) {break ; } +if (qxl->dirty[i].left > qxl->dirty[i].right || + qxl->dirty[i].top > qxl->dirty[i].bottom || + qxl->dirty[i].right > qxl->guest_primary.surface.width || + qxl->dirty[i].bottom > qxl->guest_primary.surface.height) { +continue ; + }qxl_blit (qxl, qxl->dirty+i); dpy_gfx_update(vga->con, qxl->dirty[i].left, qxl->dirty[i].top,
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 1/2] spice: add mouse cursor support
In reply to Gerd HoffmannSo you'll have a mouse pointer when running non-qxl gfx cards with mouse pointer support (virtio-gpu, IIRC vmware too).
--- hw/display/qxl.c | 6 ++- include/ui/spice-display.h | 14 +++++ ui/spice-display.c | 129 +++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 137 insertions(+), 12 deletions(-)
hw/display/qxl.c +5 -1
@@ -710,7 +710,11 @@ static void interface_release_resource(QXLInstance *sin,if (ext.group_id ==MEMSLOT_GROUP_HOST ) {/* host group -> vga mode update request */ -qemu_spice_destroy_update (&qxl->ssd, (void *)(intptr_t )ext.info->id); +QXLCommandExt *cmdext = (void *)(ext.info->id); +SimpleSpiceUpdate *update; +g_assert (cmdext->cmd.type ==QXL_CMD_DRAW ); + update =container_of (cmdext, SimpleSpiceUpdate, ext); +qemu_spice_destroy_update (&qxl->ssd, update);return ; }
include/ui/spice-display.h +14 -0
@@ -69,6 +69,7 @@ QXLCookie *qxl_cookie_new(int type, uint64_t io);typedef struct SimpleSpiceDisplay SimpleSpiceDisplay ;typedef struct SimpleSpiceUpdate SimpleSpiceUpdate ; +typedef struct SimpleSpiceCursor SimpleSpiceCursor ;struct SimpleSpiceDisplay {DisplaySurface *ds;
@@ -92,6 +93,13 @@ struct SimpleSpiceDisplay {*/ QemuMutex lock; QTAILQ_HEAD(, SimpleSpiceUpdate) updates; + +/* cursor (without qxl): displaychangelistener -> spice server */ +SimpleSpiceCursor *ptr_define; +SimpleSpiceCursor *ptr_move; +uint16_t ptr_x, ptr_y; + +/* cursor (with qxl): qxl local renderer -> displaychangelistener */ QEMUCursor *cursor;int mouse_x, mouse_y; };
@@ -104,6 +112,12 @@ struct SimpleSpiceUpdate {QTAILQ_ENTRY (SimpleSpiceUpdate) next; }; +struct SimpleSpiceCursor { +QXLCursorCmd cmd; +QXLCommandExt ext; +QXLCursor cursor; +}; +int qemu_spice_rect_is_empty (const QXLRect * r);void qemu_spice_rect_union (QXLRect *dest,const QXLRect *r);
ui/spice-display.c +118 -11
162 lines not on this page · raw message
Signature · 1 line
1.8.3.1
Peter Maydell
AppliedQuoted 17 lines · Gerd Hoffmann
Hi,
Spice patch queue, featuring mouse pointer support for non-qxl cards and a bugfix for the qxl renderer.
please pull,
GerdThe following changes since commit
2a2c4830c0068d70443f3dddc4cc668f0c601b5c:Merge remote-tracking branch 'remotes/kraxel/tags/pull-gtk-20140611-1' into staging (2014-06-12 09:51:41 +0100)
are available in the git repository at:
git://anongit.freedesktop.org/spice/qemutags/pull-spice-20140613-1
Quoted 8 lines
for you to fetch changes up to
788fbf042fc6d5aaeab56757e6dad622ac5f0c21:qxl-render: add sanity check (2014-06-13 12:34:57 +0200)
----------------------------------------------------------------
spice: add mouse cursor support
qxl-render: add sanity check
Applied, thanks.
-- PMM