Skip to content

add virgl rendering support

Gerd Hoffmann qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest11 patches 1 replyIn review
  2. v211 patches 12 repliesSuperseded
  3. v19 patches 23 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11shaders: initialize vertexes onceinclude/ui/shader.h ui/console-gl.c ui/shader.c+35 -70 replies
2/11sdl2: stop flickeringui/sdl2-2d.c+13 -00 replies
3/11ui/console: add opengl context and scanout support interfaces.include/ui/console.h ui/console.c+102 -20 replies
4/11virtio-gpu: move iov free to virtio_gpu_cleanup_mapping_iovhw/display/virtio-gpu.c+1 -20 replies
5/11virtio-gpu: change licence from GPLv2 to GPLv2+hw/display/virtio-gpu-pci.c hw/display/virtio-gpu.c+3 -30 replies
6/11virtio-gpu: update headers for virgl/3dinclude/standard-headers/linux/virtio_gpu.h+111 -10 replies
7/11virtio-gpu: add 3d mode and virgl rendering support.configure hw/display/Makefile.objs hw/display/virtio-gpu-3d.c +3 more+792 -110 replies
8/11virtio-gpu: add cursor update tracepointhw/display/virtio-gpu.c trace-events+9 -11 reply
9/11opengl: add egl-context.[ch] helpersinclude/ui/egl-context.h ui/Makefile.objs ui/egl-context.c+49 -00 replies
10/11gtk/opengl: add opengl context and scanout support (egl)include/ui/gtk.h ui/gtk-egl.c ui/gtk.c+146 -80 replies
11/11gtk/opengl: add opengl context and scanout support (GtkGLArea)configure include/ui/gtk.h ui/Makefile.objs +2 more+371 -300 replies

Reviews trailers per patch

9 of 11 patches have a Reviewed-by or Acked-by.

PatchMarc-André LureauMax Reitz
1/11R-b R-b
2/11R-b R-b
3/11R-b
4/11R-b
5/11
6/11R-b
7/11R-b
8/11R-b
9/11R-b
10/11R-b
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 00/11] add virgl rendering support

Hi,

This patch series adds infrastructure for opengl rendering (context management, define scanout textures), adds support for this to sdl2 and gtk user interfaces and adds virgl/3d mode to virtio-gpu by hooking up the virglrenderer library.

v2 fixes a bunch of issues found in patch review, which hopefully also fixes the issues seen in testing. This works for me with both gtk3/sdl2, gl on/off, rhel7 host, fedora22 guest, intel gpu hardware.

v3 fixes some more review isses. Dropped SDL2 patch for now due to not-yet tracked down display issues (still available in git when you want test).

Please make sure to use the latest kernel bits when testing, I've added a page flip support patch recently which should get wayland going in guests.

please test & review,
Gerd

Gerd Hoffmann (11):
shaders: initialize vertexes once
sdl2: stop flickering
ui/console: add opengl context and scanout support interfaces.
virtio-gpu: move iov free to virtio_gpu_cleanup_mapping_iov
virtio-gpu: change licence from GPLv2 to GPLv2+
virtio-gpu: update headers for virgl/3d
virtio-gpu: add 3d mode and virgl rendering support.
virtio-gpu: add cursor update tracepoint
opengl: add egl-context.[ch] helpers
gtk/opengl: add opengl context and scanout support (egl) gtk/opengl: add opengl context and scanout support (GtkGLArea)

 configure                                   |  40 ++
 hw/display/Makefile.objs                    |   6 +-
 hw/display/virtio-gpu-3d.c                  | 598 ++++++++++++++++++++++++++++
 hw/display/virtio-gpu-pci.c                 |   4 +-
 hw/display/virtio-gpu.c                     | 151 ++++++-
 include/hw/virtio/virtio-gpu.h              |  22 +-
 include/standard-headers/linux/virtio_gpu.h | 112 +++++-
 include/ui/console.h                        |  37 ++
 include/ui/egl-context.h                    |  14 +
 include/ui/gtk.h                            |  39 ++
 include/ui/shader.h                         |   4 +-
 trace-events                                |   9 +
 ui/Makefile.objs                            |   6 +
 ui/console-gl.c                             |   7 +-
 ui/console.c                                |  67 +++-
 ui/egl-context.c                            |  34 ++
 ui/gtk-egl.c                                | 131 +++++-
 ui/gtk-gl-area.c                            | 223 +++++++++++
 ui/gtk.c                                    | 149 +++++--
 ui/sdl2-2d.c                                |  13 +
 ui/shader.c                                 |  31 +-
 21 files changed, 1632 insertions(+), 65 deletions(-)
 create mode 100644 hw/display/virtio-gpu-3d.c
 create mode 100644 include/ui/egl-context.h
 create mode 100644 ui/egl-context.c
 create mode 100644 ui/gtk-gl-area.c
Signature · 1 line
1.8.3.1