weston/libweston/renderer-gl
Pekka Paalanen 9d2fbd5455 renderer-gl: compress shader descriptions
Make the shader description strings easier to read. Before they looked
like this:

  Compiling shader program for: SHADER_TEXCOORD_INPUT_ATTRIB
  SHADER_VARIANT_SOLID SHADER_COLOR_EFFECT_NONE SHADER_COLOR_CURVE_LINPOW
  SHADER_COLOR_MAPPING_IDENTITY SHADER_COLOR_CURVE_IDENTITY
  +input_is_premult -tint -shader_blending (SHADER_COLOR_CURVE_IDENTITY,
  SHADER_COLOR_CURVE_IDENTITY)

Now they look like this:

  Compiling shader program for: attr tc, solid tex, no effect, CP{
  linpow, I, I }, +premult_in -tint -shader_blending (I, I)

Turn the switches into arrays for easier handling.

This is different from weston_enum_map, because we need two different
strings for each value: a symbol for the shader code, and a description
for the debug logs.

Unknown enum values will abort(), but they should be asserted anyway.
Unfortunately getting a weston_compositor here would be inconvenient for
using weston-assert macros.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2026-04-08 21:55:45 +00:00
..
egl-glue.c gl-renderer: add function to query supported rendering formats 2025-09-02 13:34:00 +00:00
fragment.glsl renderer-gl: implement blend shader 2026-04-08 21:55:45 +00:00
gl-renderer-internal.h renderer-gl: implement blend shader 2026-04-08 21:55:45 +00:00
gl-renderer.c renderer-gl: implement blend shader 2026-04-08 21:55:45 +00:00
gl-renderer.h gl-renderer: add function to query supported rendering formats 2025-09-02 13:34:00 +00:00
gl-shader-config-color-transformation.c compositor: add grayscale output color effect 2026-03-04 13:11:56 -03:00
gl-shaders.c renderer-gl: compress shader descriptions 2026-04-08 21:55:45 +00:00
gl-utils.c gl-renderer: Disable texture validity checks by default 2026-02-13 17:04:05 +00:00
meson.build gl-renderer: Move utilities to new file gl-utils.c 2025-02-06 08:42:56 +00:00
vertex.glsl gl-renderer: Remove sub-mesh wireframe coloring 2024-07-04 14:15:04 +00:00