Skip to content

sdl2: add opengl rendering support.

Gerd Hoffmann qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6opengl: add shader build infrastructureMakefile scripts/shaderinclude.pl+30 -00 replies
2/6opengl: add shader helper functions.include/ui/shader.h ui/Makefile.objs ui/shader.c+109 -00 replies
3/6console-gl: add opengl rendering helper functionsMakefile configure include/ui/console.h +6 more+245 -10 replies
4/6sdl2: move SDL_* includes to sdl2.hinclude/ui/sdl2.h ui/sdl2-2d.c ui/sdl2-input.c +1 more+6 -180 replies
5/6sdl2: add support for display rendering using opengl.include/ui/console.h include/ui/sdl2.h ui/Makefile.objs +5 more+225 -70 replies
6/6sdl2: Fix RGB555include/ui/console.h ui/sdl2-2d.c+18 -20 replies

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchMax Reitz
1/6R-b
2/6
3/6R-b
4/6R-b
5/6R-b
6/6

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/6] sdl2: add opengl rendering support.

Hi,

This series adds some opengl bits and puts them into use for sdl2. No major changes since the last post (somewhen during early 2.3 freeze). I've coded up opengl support for other UIs on top of this and the code has seen some minor refactorings due to this. opengl shader handling moved to its own files (splitted from console-gl.c). Some functions got qemu_ prefixes. Minor tweaks here and there.

please review,
Gerd

Gerd Hoffmann (5):
opengl: add shader build infrastructure
opengl: add shader helper functions.
console-gl: add opengl rendering helper functions
sdl2: move SDL_* includes to sdl2.h
sdl2: add support for display rendering using opengl.

Max Reitz (1):
sdl2: Fix RGB555

 Makefile                    |  17 +++++
 configure                   |   2 +-
 include/ui/console.h        |  37 ++++++++++
 include/ui/sdl2.h           |  17 +++++
 include/ui/shader.h         |  11 +++
 scripts/shaderinclude.pl    |  16 +++++
 ui/Makefile.objs            |   9 +++
 ui/console-gl.c             | 168 ++++++++++++++++++++++++++++++++++++++++++++
 ui/sdl.c                    |  10 +++
 ui/sdl2-2d.c                |  28 +++++---
 ui/sdl2-gl.c                | 112 +++++++++++++++++++++++++++++
 ui/sdl2-input.c             |   6 --
 ui/sdl2.c                   |  71 +++++++++++++++----
 ui/shader.c                 | 114 ++++++++++++++++++++++++++++++
 ui/shader/texture-blit.frag |  10 +++
 ui/shader/texture-blit.vert |  10 +++
 vl.c                        |  23 ++++++
 17 files changed, 633 insertions(+), 28 deletions(-)
 create mode 100644 include/ui/shader.h
 create mode 100644 scripts/shaderinclude.pl
 create mode 100644 ui/console-gl.c
 create mode 100644 ui/sdl2-gl.c
 create mode 100644 ui/shader.c
 create mode 100644 ui/shader/texture-blit.frag
 create mode 100644 ui/shader/texture-blit.vert
Signature · 1 line
1.8.3.1