virtio-gpu: fix bug in host memory calculation.
commitc53f5b89f19b3051384d202dd750d23fb38f0994
authorTao Wu <lepton@google.com>
Thu, 9 Nov 2017 18:17:41 +0000 (9 10:17 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 10 Nov 2017 10:05:19 +0000 (10 11:05 +0100)
tree112bafa7e03b0aa3611a0a089228c09ba8b1b456
parentb0fbe46ad82982b289a44ee2495b59b0bad8a842
virtio-gpu: fix bug in host memory calculation.

The old code treats bits as bytes when calculating host memory usage.
Change it to be consistent with allocation logic in pixman library.

Signed-off-by: Tao Wu <lepton@google.com>
Message-Id: <20171109181741.31318-1-lepton@google.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/virtio-gpu.c