These two patches adds a flexible shader generation which is based on concatenating strings instead of duplicating them into a lot of literals. This becomes more useful as I add shader variants for converting to/from sRGB gamma and it also allows me to easily get rid of the alpha uniform used for fading surfaces.
I have not tested the YUV shaders since that doesn't appear to be too easy without an Intel GPU. I also have a more vectorized variant of the YUV->RGB conversion I'd like to test. I've split this into two patches to make the introduction of this a bit clearer. I seemed to rewrite all of gl-shaders.c anyway with only 2 functions being recognisable. So I was wondering if I should just merge these patches. The first commit which really utilizes this is the one which adds gamma correct rendering. Should I wait until cleaning up that before submitting this? John Kåre Alsaker (2): gl-renderer: Move shader functions into it's own file. gl-renderer: Add flexible shader generation. src/Makefile.am | 2 + src/gl-internal.h | 171 ++++++++++++++++ src/gl-renderer.c | 428 ++++---------------------------------- src/gl-shaders.c | 602 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 819 insertions(+), 384 deletions(-) create mode 100644 src/gl-internal.h create mode 100644 src/gl-shaders.c -- 1.8.0 _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
