[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 01/21] vfio/display: Fix missing update to set backing fields
|
From: |
Cédric Le Goater |
|
Subject: |
[PULL 01/21] vfio/display: Fix missing update to set backing fields |
|
Date: |
Fri, 6 Oct 2023 08:19:45 +0200 |
From: Alex Williamson <alex.williamson@redhat.com>
The below referenced commit renames scanout_width/height to
backing_width/height, but also promotes these fields in various portions
of the egl interface. Meanwhile vfio dmabuf support has never used the
previous scanout fields and is therefore missed in the update. This
results in a black screen when transitioning from ramfb to dmabuf display
when using Intel vGPU with these features.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1891
Link: https://lists.gnu.org/archive/html/qemu-devel/2023-08/msg02726.html
Fixes: 9ac06df8b684 ("virtio-gpu-udmabuf: correct naming of QemuDmaBuf size
properties")
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Tested-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
---
hw/vfio/display.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/vfio/display.c b/hw/vfio/display.c
index
bec864f482f46866bf292a5a63c31753a7c84eef..837d9e6a309e834601c125e36faadf81c1c5172e
100644
--- a/hw/vfio/display.c
+++ b/hw/vfio/display.c
@@ -243,6 +243,8 @@ static VFIODMABuf *vfio_display_get_dmabuf(VFIOPCIDevice
*vdev,
dmabuf->dmabuf_id = plane.dmabuf_id;
dmabuf->buf.width = plane.width;
dmabuf->buf.height = plane.height;
+ dmabuf->buf.backing_width = plane.width;
+ dmabuf->buf.backing_height = plane.height;
dmabuf->buf.stride = plane.stride;
dmabuf->buf.fourcc = plane.drm_format;
dmabuf->buf.modifier = plane.drm_format_mod;
--
2.41.0
- [PULL 00/21] vfio queue, Cédric Le Goater, 2023/10/06
- [PULL 04/21] vfio/pci: enable vector on dynamic MSI-X allocation, Cédric Le Goater, 2023/10/06
- [PULL 01/21] vfio/display: Fix missing update to set backing fields,
Cédric Le Goater <=
- [PULL 03/21] vfio/pci: detect the support of dynamic MSI-X allocation, Cédric Le Goater, 2023/10/06
- [PULL 02/21] vfio/pci: rename vfio_put_device to vfio_pci_put_device, Cédric Le Goater, 2023/10/06
- [PULL 06/21] vfio/pci: enable MSI-X in interrupt restoring on dynamic allocation, Cédric Le Goater, 2023/10/06
- [PULL 07/21] scripts/update-linux-headers: Add iommufd.h, Cédric Le Goater, 2023/10/06
- [PULL 05/21] vfio/pci: use an invalid fd to enable MSI-X, Cédric Le Goater, 2023/10/06
- [PULL 08/21] linux-headers: Add iommufd.h, Cédric Le Goater, 2023/10/06
- [PULL 09/21] vfio/common: Move IOMMU agnostic helpers to a separate file, Cédric Le Goater, 2023/10/06
- [PULL 10/21] vfio/common: Propagate KVM_SET_DEVICE_ATTR error if any, Cédric Le Goater, 2023/10/06
- [PULL 11/21] vfio/common: Introduce vfio_container_add|del_section_window(), Cédric Le Goater, 2023/10/06
- [PULL 12/21] vfio/common: Extract out vfio_kvm_device_[add/del]_fd, Cédric Le Goater, 2023/10/06