console: skip same-size resize
commitcd958edb1fae85d0c7d1e1acbff82d22724e8d64
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 26 Aug 2016 09:47:11 +0000 (26 13:47 +0400)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 28 Sep 2016 10:49:26 +0000 (28 12:49 +0200)
tree6cbe468332cab73000187aab999bd8e8dc9a39b0
parent7cfdc02dae0d2ff58c897496cfdbbafc0eda0f3f
console: skip same-size resize

virtio-gpu does a set-scanout at each frame (it might be a driver
regression). qemu_console_resize() recreate a surface even if the size
didn't change, and this shows up in profiling reports because the
surface is cleared. With this patch, I get a +15-20% glmark2
improvement.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20160826094711.14470-1-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/console.c