virtio-gpu: update old resource too.
commitc806cfa036a7ec991170eb9899f3a676bfcc3253
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 2 Jul 2018 16:24:42 +0000 (2 18:24 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 3 Jul 2018 09:19:39 +0000 (3 11:19 +0200)
tree6cb9c213102ce0ea261eb9f27988a39f66747074
parentda566a18a7799e5a655cd9f87e222b672cc93e7b
virtio-gpu: update old resource too.

When switching scanout from one resource to another we must update the
scanout_bitmask field for both new (set bit) and old (clear bit)
resource.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20180702162443.16796-3-kraxel@redhat.com
hw/display/virtio-gpu.c