[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 15/15] virtio-gpu: Respect UI refresh rate for EDID
From: |
Gerd Hoffmann |
Subject: |
[PULL 15/15] virtio-gpu: Respect UI refresh rate for EDID |
Date: |
Tue, 14 Jun 2022 14:16:10 +0200 |
From: Akihiko Odaki <akihiko.odaki@gmail.com>
Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-Id: <20220226115516.59830-4-akihiko.odaki@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
include/hw/virtio/virtio-gpu.h | 1 +
hw/display/virtio-gpu-base.c | 1 +
hw/display/virtio-gpu.c | 1 +
3 files changed, 3 insertions(+)
diff --git a/include/hw/virtio/virtio-gpu.h b/include/hw/virtio/virtio-gpu.h
index afff9e158e31..2e28507efe21 100644
--- a/include/hw/virtio/virtio-gpu.h
+++ b/include/hw/virtio/virtio-gpu.h
@@ -80,6 +80,7 @@ struct virtio_gpu_scanout {
struct virtio_gpu_requested_state {
uint16_t width_mm, height_mm;
uint32_t width, height;
+ uint32_t refresh_rate;
int x, y;
};
diff --git a/hw/display/virtio-gpu-base.c b/hw/display/virtio-gpu-base.c
index b21d6e5b0be8..a29f191aa82e 100644
--- a/hw/display/virtio-gpu-base.c
+++ b/hw/display/virtio-gpu-base.c
@@ -79,6 +79,7 @@ static void virtio_gpu_ui_info(void *opaque, uint32_t idx,
QemuUIInfo *info)
g->req_state[idx].x = info->xoff;
g->req_state[idx].y = info->yoff;
+ g->req_state[idx].refresh_rate = info->refresh_rate;
g->req_state[idx].width = info->width;
g->req_state[idx].height = info->height;
g->req_state[idx].width_mm = info->width_mm;
diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c
index 55c6dd576318..20cc703dcc6e 100644
--- a/hw/display/virtio-gpu.c
+++ b/hw/display/virtio-gpu.c
@@ -217,6 +217,7 @@ virtio_gpu_generate_edid(VirtIOGPU *g, int scanout,
.height_mm = b->req_state[scanout].height_mm,
.prefx = b->req_state[scanout].width,
.prefy = b->req_state[scanout].height,
+ .refresh_rate = b->req_state[scanout].refresh_rate,
};
edid->size = cpu_to_le32(sizeof(edid->edid));
--
2.36.1
- [PULL 00/15] Kraxel 20220614 patches, Gerd Hoffmann, 2022/06/14
- [PULL 01/15] ui/gtk-gl-area: implement GL context destruction, Gerd Hoffmann, 2022/06/14
- [PULL 04/15] hw/usb: Add CanoKey Implementation, Gerd Hoffmann, 2022/06/14
- [PULL 12/15] virtio-gpu: update done only on the scanout associated with rect, Gerd Hoffmann, 2022/06/14
- [PULL 06/15] meson: Add CanoKey, Gerd Hoffmann, 2022/06/14
- [PULL 09/15] MAINTAINERS: add myself as CanoKey maintainer, Gerd Hoffmann, 2022/06/14
- [PULL 13/15] ui/console: Do not return a value with ui_info, Gerd Hoffmann, 2022/06/14
- [PULL 15/15] virtio-gpu: Respect UI refresh rate for EDID,
Gerd Hoffmann <=
- [PULL 07/15] docs: Add CanoKey documentation, Gerd Hoffmann, 2022/06/14
- [PULL 05/15] hw/usb/canokey: Add trace events, Gerd Hoffmann, 2022/06/14
- [PULL 03/15] ui/cocoa: Fix poweroff request code, Gerd Hoffmann, 2022/06/14
- [PULL 10/15] hw/usb/hcd-ehci: fix writeback order, Gerd Hoffmann, 2022/06/14
- [PULL 11/15] usbredir: avoid queuing hello packet on snapshot restore, Gerd Hoffmann, 2022/06/14
- [PULL 02/15] ui/gtk-gl-area: create the requested GL context version, Gerd Hoffmann, 2022/06/14
- [PULL 08/15] docs/system/devices/usb: Add CanoKey to USB devices examples, Gerd Hoffmann, 2022/06/14
- [PULL 14/15] ui: Deliver refresh rate via QemuUIInfo, Gerd Hoffmann, 2022/06/14
- Re: [PULL 00/15] Kraxel 20220614 patches, Richard Henderson, 2022/06/14