Skip to content

ui/surface: Avoid including epoxy/gl.h in header files

Akihiko Odaki qemu-devel 1 version In review

Get series with b4
b4 am [email protected] change-id 20250510-gl-e6d2c89816cf

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ui/console: Unify pixman-OpenGL format mappingui/console-gl.c+22 -211 reply
2/3ui/console: Remove DisplaySurface::mem_objinclude/ui/spice-display.h include/ui/surface.h ui/console-gl.c +1 more+9 -80 replies
3/3ui/surface: Avoid including epoxy/gl.h in header filesinclude/ui/console.h include/ui/shader.h include/ui/surface.h +2 more+18 -210 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarc-André Lureau
SeriesR-b
1/3R-b
2/3
3/3

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

Read the v1 thread

Cover letter [PATCH 0/3] ui/surface: Avoid including epoxy/gl.h in header files

include/ui/shader.h and include/ui/surface.h are included by files that do not depend on Epoxy so they shouldn't include epoxy/gl.h. Otherwise, compilations of these files can fail because the path to the directory containing epoxy/gl.h may not be passed to the compiler.

Most variables with OpenGL types are removed. The remaining ones are GLuint and replaced with uint32_t, which we already use for texture names.

---
Akihiko Odaki (3):
ui/console: Unify pixman-OpenGL format mapping ui/console: Remove DisplaySurface::mem_obj ui/surface: Avoid including epoxy/gl.h in header files

 include/ui/console.h       |  4 +--
 include/ui/shader.h        |  2 --
 include/ui/spice-display.h |  1 +
 include/ui/surface.h       |  6 +---
 ui/console-gl.c            | 74 ++++++++++++++++++++++------------------------
 ui/shader.c                |  1 +
 ui/spice-display.c         |  9 +++++-
 7 files changed, 48 insertions(+), 49 deletions(-)

---
base-commit: ffcf1a7981793973ffbd8100a7c3c6042d02ae23
change-id: 20250510-gl-e6d2c89816cf

Best regards,

Signature · 1 line
Akihiko Odaki <[email protected]>