summaryrefslogtreecommitdiffstats
path: root/hw/display/virtio-gpu.c
diff options
context:
space:
mode:
authorMarc-André Lureau2020-09-27 16:57:51 +0200
committerGerd Hoffmann2020-09-29 10:08:25 +0200
commit4bf47f3634af105b25c3c073ae53b36ba73733b4 (patch)
treeba9cb61c1ae19b7ea10478e0fcbe3dc21d4056e4 /hw/display/virtio-gpu.c
parentspice: get monitors physical dimension (diff)
downloadqemu-4bf47f3634af105b25c3c073ae53b36ba73733b4.tar.gz
qemu-4bf47f3634af105b25c3c073ae53b36ba73733b4.tar.xz
qemu-4bf47f3634af105b25c3c073ae53b36ba73733b4.zip
virtio-gpu: set physical dimensions for EDID
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 20200927145751.365446-7-marcandre.lureau@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/virtio-gpu.c')
-rw-r--r--hw/display/virtio-gpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c
index 90be4e3ed7..f3b71fa9c7 100644
--- a/hw/display/virtio-gpu.c
+++ b/hw/display/virtio-gpu.c
@@ -212,6 +212,8 @@ virtio_gpu_generate_edid(VirtIOGPU *g, int scanout,
{
VirtIOGPUBase *b = VIRTIO_GPU_BASE(g);
qemu_edid_info info = {
+ .width_mm = b->req_state[scanout].width_mm,
+ .height_mm = b->req_state[scanout].height_mm,
.prefx = b->req_state[scanout].width,
.prefy = b->req_state[scanout].height,
};