]> git.proxmox.com Git - mirror_qemu.git/commit - ui/spice-display.c
spice: surface switch fast path requires same format too.
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 18 Sep 2015 10:07:18 +0000 (12:07 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 21 Sep 2015 07:52:07 +0000 (09:52 +0200)
commitb2af43cc379e1d4c30d92af257bedebf0e3f618a
tree7d73ddd4e1ea407b511f5cd4704b32730bf71336
parent18640989a9f5e4d2e84b566c52ff1fccfa0dbf4a
spice: surface switch fast path requires same format too.

Commit "555e72f spice: rework mirror allocation, add no-resize fast path"
adds a fast path for surface switches which does't go through the full
primary surface destroy and re-recreation in case the new surface is
identical to the old one (page-flip).  It checks the size only though,
but the format must be identical too.  This patch adds the format check.

Commit "0002a51 ui/spice: Support shared surface for most pixman
formats" increases the chance to actually trigger this.

https://bugzilla.redhat.com/show_bug.cgi?id=1247479

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/spice-display.c