weston/libweston/renderer-gl
Pekka Paalanen 57d32722a2 gl-renderer: simplify main() in frag
By moving the application of view_alpha after pre-multiplication we can
simplify main() considerably.

The cost is that for straight-alpha input or color_pipeline() we might
be doing three multiplications more than before. However,

 a) the cost of running color_pipeline() probably dominates anyway, and
 b) to get straight-alpha input you have to use a future Wayland
   extension that probably won't be advertised without color management.

So we keep the optimization for the simple case (no color management)
while potentially incurring a small cost on the heavy case (with color
management).

Thanks to Pierre-Yves Mordred for the inspiration in
https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/889#note_1411774

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2022-06-22 12:15:58 +00:00
..
egl-glue.c gl_renderer: log EGL features 2022-05-18 14:18:53 +03:00
fragment.glsl gl-renderer: simplify main() in frag 2022-06-22 12:15:58 +00:00
gl-renderer-internal.h gl-renderer: move extension lists away from log 2022-05-18 13:45:53 +03:00
gl-renderer.c gl-renderer: Ensure gl_buffer_state is present for direct-display 2022-06-03 14:46:37 +03:00
gl-renderer.h gl-renderer: Replace pbuffer-create args with struct 2020-03-20 15:25:24 +00:00
gl-shader-config-color-transformation.c gl-renderer: shaders implementation of color mapping function 2022-02-09 20:42:50 -05:00
gl-shaders.c gl-renderer: call it view_alpha in frag 2022-06-22 12:15:58 +00:00
meson.build gl-renderer: implement 3 x 1D LUT color pre-curve 2021-06-21 14:36:33 +00:00
vertex.glsl gl-renderer: move vertex shader into new file 2021-02-25 13:16:02 +02:00