virtio-gpu: update scanout if there is any area covered by the rect
commit49a99ecb2290571b2e3f464c13e9c73b87ca91c4
authorDongwon Kim <dongwon.kim@intel.com>
Fri, 9 Sep 2022 01:40:52 +0000 (8 18:40 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 27 Sep 2022 05:32:31 +0000 (27 07:32 +0200)
tree9794bfc654ac6c940bea944140688895de2be4f9
parent205ccfd7a5ec86bd9a5678b8bd157562fc9a1643
virtio-gpu: update scanout if there is any area covered by the rect

The scanout is currently updated only if the whole rect is inside the
scanout space. This is not a correct condition because the scanout should
be updated even a small area in the scanout space is covered by the rect.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220909014052.7297-1-dongwon.kim@intel.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/virtio-gpu.c