mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-24 22:48:13 +02:00
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>
|
||
|---|---|---|
| .. | ||
| egl-glue.c | ||
| fragment.glsl | ||
| gl-renderer-internal.h | ||
| gl-renderer.c | ||
| gl-renderer.h | ||
| gl-shader-config-color-transformation.c | ||
| gl-shaders.c | ||
| gl-utils.c | ||
| meson.build | ||
| vertex.glsl | ||