OSDN Git Service

hw/display/vmware_vga: do not discard screen updates
authorCarwyn Ellis <carwynellis@gmail.com>
Sun, 6 Feb 2022 18:39:56 +0000 (18:39 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 22 Apr 2022 09:47:08 +0000 (11:47 +0200)
commit67ae04273736f103b31fb5d1f9e5170dfee3d64c
tree4e8e8da774366ec1a00881468d422d55bcdca4ab
parenta74782936dc6e979ce371dabda4b1c05624ea87f
hw/display/vmware_vga: do not discard screen updates

In certain circumstances, typically when there is lots changing on the
screen, updates will be discarded resulting in garbled output.

This change simplifies the traversal of the display update FIFO queue
when applying updates. We just track the queue length and iterate up to
the end of the queue.

Additionally when adding updates to the queue, if the buffer reaches
capacity we force a flush before accepting further events.

Signed-off-by: Carwyn Ellis <carwynellis@gmail.com>
Message-Id: <20220206183956.10694-3-carwynellis@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/trace-events
hw/display/vmware_vga.c