[PATCH v3 3/6] ui/egl: use DRM_FORMAT_MOD_INVALID as default modifier

2025-03-26 Thread yuq825
From: Qiang Yu 0 is used as DRM_FORMAT_MOD_LINEAR already. Reviewed-by: Marc-André Lureau Signed-off-by: Qiang Yu --- hw/display/vhost-user-gpu.c | 3 ++- hw/display/virtio-gpu-udmabuf.c | 4 +++- ui/egl-helpers.c| 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) d

[PATCH v3 2/6] ui/egl: require EGL_EXT_image_dma_buf_import_modifiers

2025-03-26 Thread yuq825
From: Qiang Yu It's used already, just check it explicitly. Reviewed-by: Marc-André Lureau Signed-off-by: Qiang Yu --- ui/egl-helpers.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ui/egl-helpers.c b/ui/egl-helpers.c index d194d004b7..432863d702 100644 --- a/

[PATCH v3 6/6] ui/spice: support multi plane dmabuf scanout

2025-03-26 Thread yuq825
From: Qiang Yu We need spice version >= 0.15.3 which has spice_qxl_gl_scanout2 API for multi plane scanout support. v2: * use new dmabuf API and check length * check spice_qxl_gl_scanout2 present instead of bump spice version dependency Signed-off-by: Qiang Yu --- meson.build|

[PATCH v3 0/6] ui: support multi plane texture

2025-03-26 Thread yuq825
From: Qiang Yu mesa/radeonsi is going to support explicit modifier with this MR: * https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31658 The side effect is some texture will become multi-plane which breaks qemu. Because qemu currently only support single plane texture. For example,

[PATCH v3 4/6] ui/egl: support multi-plane dmabuf when egl export/import

2025-03-26 Thread yuq825
From: Qiang Yu v2: * use new dmabuf API and check length Reviewed-by: Marc-André Lureau Signed-off-by: Qiang Yu --- include/ui/egl-helpers.h | 5 ++- ui/dbus-listener.c | 19 + ui/egl-helpers.c | 91 ++-- ui/spice-display.c |

[PATCH v3 1/6] ui/dmabuf: extend QemuDmaBuf to support multi-plane

2025-03-26 Thread yuq825
From: Qiang Yu mesa/radeonsi is going to support explicit modifier which may export a multi-plane texture. For example, texture with DCC enabled (a compressed format) has two planes, one with compressed data, the other with meta data for compression. v2: * change API qemu_dmabuf_get_fd/offset/

[PATCH v3 5/6] ui/dbus: change dbus ScanoutDMABUF interface

2025-03-26 Thread yuq825
From: Qiang Yu To handle multi plane. v3: * rename interface * add x/y/backing_width/backing_height arg v2: * use new dmabuf API and check length Reviewed-by: Marc-André Lureau Signed-off-by: Qiang Yu --- ui/dbus-display1.xml | 45 + ui/dbus-listener.c | 112 +++

[PATCH v2 1/6] ui/dmabuf: extend QemuDmaBuf to support multi-plane

2025-03-26 Thread yuq825
From: Qiang Yu mesa/radeonsi is going to support explicit modifier which may export a multi-plane texture. For example, texture with DCC enabled (a compressed format) has two planes, one with compressed data, the other with meta data for compression. v2: * change API qemu_dmabuf_get_fd/offset/

[PATCH v2 3/6] ui/egl: use DRM_FORMAT_MOD_INVALID as default modifier

2025-03-26 Thread yuq825
From: Qiang Yu 0 is used as DRM_FORMAT_MOD_LINEAR already. Reviewed-by: Marc-André Lureau Signed-off-by: Qiang Yu --- hw/display/vhost-user-gpu.c | 3 ++- hw/display/virtio-gpu-udmabuf.c | 4 +++- ui/egl-helpers.c| 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) d

[PATCH v2 6/6] ui/spice: support multi plane dmabuf scanout

2025-03-26 Thread yuq825
From: Qiang Yu We need spice version >= 0.15.3 which has spice_qxl_gl_scanout2 API for multi plane scanout support. v2: * use new dmabuf API and check length * check spice_qxl_gl_scanout2 present instead of bump spice version dependency Signed-off-by: Qiang Yu --- meson.build|

[PATCH v2 5/6] ui/dbus: change dbus ScanoutDMABUF interface

2025-03-26 Thread yuq825
From: Qiang Yu To handle multi plane. v2: * use new dmabuf API and check length Signed-off-by: Qiang Yu --- ui/dbus-display1.xml | 37 +++ ui/dbus-listener.c | 108 --- 2 files changed, 138 insertions(+), 7 deletions(-) diff --git a/ui

[PATCH v2 4/6] ui/egl: support multi-plane dmabuf when egl export/import

2025-03-26 Thread yuq825
From: Qiang Yu v2: * use new dmabuf API and check length Signed-off-by: Qiang Yu --- include/ui/egl-helpers.h | 5 ++- ui/dbus-listener.c | 19 + ui/egl-helpers.c | 91 ++-- ui/spice-display.c | 58 - 4

[PATCH v2 2/6] ui/egl: require EGL_EXT_image_dma_buf_import_modifiers

2025-03-26 Thread yuq825
From: Qiang Yu It's used already, just check it explicitly. Signed-off-by: Qiang Yu --- ui/egl-helpers.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ui/egl-helpers.c b/ui/egl-helpers.c index d194d004b7..432863d702 100644 --- a/ui/egl-helpers.c +++ b/ui/egl-he

[PATCH v2 0/6] ui: support multi plane texture

2025-03-26 Thread yuq825
From: Qiang Yu mesa/radeonsi is going to support explicit modifier with this MR: * https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31658 The side effect is some texture will become multi-plane which breaks qemu. Because qemu currently only support single plane texture. For example,

[PATCH 4/6] ui/egl: support multi-plane dmabuf when egl export/import

2025-03-24 Thread yuq825
From: Qiang Yu Signed-off-by: Qiang Yu --- include/ui/egl-helpers.h | 5 ++- ui/dbus-listener.c | 19 + ui/egl-helpers.c | 86 +--- ui/spice-display.c | 58 ++- 4 files changed, 116 insertions(+), 52 deleti

[PATCH 6/6] ui/spice: support multi plane dmabuf scanout

2025-03-24 Thread yuq825
From: Qiang Yu Signed-off-by: Qiang Yu --- meson.build| 2 +- ui/spice-display.c | 65 +++--- 2 files changed, 34 insertions(+), 33 deletions(-) diff --git a/meson.build b/meson.build index 9d9c11731f..b87704a83b 100644 --- a/meson.build +++ b/m

[PATCH 3/6] ui/egl: use DRM_FORMAT_MOD_INVALID as default modifier

2025-03-24 Thread yuq825
From: Qiang Yu 0 is used as DRM_FORMAT_MOD_LINEAR already. Signed-off-by: Qiang Yu --- hw/display/vhost-user-gpu.c | 3 ++- hw/display/virtio-gpu-udmabuf.c | 4 +++- ui/egl-helpers.c| 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hw/display/vhost-use

[PATCH 5/6] ui/dbus: change dbus ScanoutDMABUF interface

2025-03-24 Thread yuq825
From: Qiang Yu To handle multi plane. Signed-off-by: Qiang Yu --- ui/dbus-display1.xml | 37 ui/dbus-listener.c | 103 --- 2 files changed, 133 insertions(+), 7 deletions(-) diff --git a/ui/dbus-display1.xml b/ui/dbus-display1.xml in

[PATCH 2/6] ui/egl: require EGL_EXT_image_dma_buf_import_modifiers

2025-03-24 Thread yuq825
From: Qiang Yu It's used already, just check it explicitly. Signed-off-by: Qiang Yu --- ui/egl-helpers.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ui/egl-helpers.c b/ui/egl-helpers.c index 72a1405782..45b1b0b700 100644 --- a/ui/egl-helpers.c +++ b/ui/egl-he

[PATCH 0/6] ui: support multi plane texture

2025-03-24 Thread yuq825
From: Qiang Yu mesa/radeonsi is going to support explicit modifier with this MR: * https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31658 The side effect is some texture will become multi-plane which breaks qemu. Because qemu currently only support single plane texture. For example,

[PATCH 1/6] ui/dmabuf: extend QemuDmaBuf to support multi-plane

2025-03-24 Thread yuq825
From: Qiang Yu mesa/radeonsi is going to support explicit midifier which may export a multi-plane texture. For example, texture with DCC enabled (a compressed format) has two planes, one with compressed data, the other with meta data for compression. Signed-off-by: Qiang Yu --- hw/display/vhos