• Harish Krupo's avatar
    gl-renderer: Requirement based shader generation · 76671819
    Harish Krupo authored
    This patch modifies the shader generation code so that the shaders are
    stitched together based on the requirement instead of creating them
    during initilization. This is necessary for HDR use cases where each
    surface would have different properties based on which different
    de-gamma or tone mapping or gamma shaders are stitched together.
    
    v2: Use /* */ instead of // (Pekka)
        Move shader strings to gl-shaders.c file (Pekka)
        Remove Makefile.am changes (Pekka)
        Use a struct instead of uint32_t for storing requirements (Pekka)
        Clean up shader list on destroy (Pekka)
        Rename shader_release -> shader_destroy (Pekka)
        Move shader creation/deletion into gl-shaders.c (Pekka)
        Use create_shaders's multi string capbility instead of
        concatenating (Pekka)
    
    v3: Add length check when adding shader string (Pekka)
    Signed-off-by: Harish Krupo's avatarHarish Krupo <harishkrupo@gmail.com>
    76671819
Name
Last commit
Last update
.gitlab-ci Loading commit data...
clients Loading commit data...
compositor Loading commit data...
data Loading commit data...
desktop-shell Loading commit data...
doc Loading commit data...
fullscreen-shell Loading commit data...
include Loading commit data...
ivi-shell Loading commit data...
libweston Loading commit data...
libweston-desktop Loading commit data...
man Loading commit data...
protocol Loading commit data...
remoting Loading commit data...
shared Loading commit data...
tests Loading commit data...
tools/zunitc Loading commit data...
wcap Loading commit data...
xwayland Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
README.md Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
notes.txt Loading commit data...
releasing.txt Loading commit data...
weston.ini.in Loading commit data...