summaryrefslogtreecommitdiffstats
path: root/video/out/gpu/shader_cache.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2020-12-28 19:38:35 +0100
committerNiklas Haas <git@haasn.xyz>2020-12-28 19:39:41 +0100
commitbe167c227b842427f285732a054ea025a630e591 (patch)
treeb83981f6d44cb95b27327721e9be13ea2f5e4f9f /video/out/gpu/shader_cache.h
parent40ea28c6f9f2f62270c1d07e4d79109d0a2d6b7d (diff)
downloadmpv-be167c227b842427f285732a054ea025a630e591.tar.bz2
mpv-be167c227b842427f285732a054ea025a630e591.tar.xz
vo_gpu: cast bvecN to vecN for mix() on older GLSL
Fixes https://github.com/mpv-player/mpv/issues/8415, among others
Diffstat (limited to 'video/out/gpu/shader_cache.h')
-rw-r--r--video/out/gpu/shader_cache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/gpu/shader_cache.h b/video/out/gpu/shader_cache.h
index 547c6b6307..3c87513b2b 100644
--- a/video/out/gpu/shader_cache.h
+++ b/video/out/gpu/shader_cache.h
@@ -43,6 +43,10 @@ void gl_sc_uniform_mat2(struct gl_shader_cache *sc, char *name,
bool transpose, float *v);
void gl_sc_uniform_mat3(struct gl_shader_cache *sc, char *name,
bool transpose, float *v);
+
+// Return the correct bvecN() variant for using mix() in this GLSL version
+const char *gl_sc_bvec(struct gl_shader_cache *sc, int dims);
+
void gl_sc_blend(struct gl_shader_cache *sc,
enum ra_blend blend_src_rgb,
enum ra_blend blend_dst_rgb,