diff options
author | Niklas Haas <git@haasn.xyz> | 2017-09-29 00:41:50 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.xyz> | 2017-09-29 00:41:50 +0200 |
commit | 22311a767d863633d29f136385d4eef4fad8fde8 (patch) | |
tree | 644f6ef33ee6ef4c2d774def339f4b4eeb1140da /video/out | |
parent | 07fa5c8a8f4b070db2c31ae05daaaa57615c4b66 (diff) | |
download | mpv-22311a767d863633d29f136385d4eef4fad8fde8.tar.bz2 mpv-22311a767d863633d29f136385d4eef4fad8fde8.tar.xz |
vo_gpu: force layout std430 for PCs
Seems to be fixed upstream in the nvidia driver, so it's probably a good
idea to 1. force the layout and 2. remove the warning, as it now
actually works. Users with older drivers would run into errors, but they
can still use shaderc as a replacement. (And it's not like the old
status quo was any better)
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/gpu/shader_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gpu/shader_cache.c b/video/out/gpu/shader_cache.c index 0aeac8c844..c3eccac9e9 100644 --- a/video/out/gpu/shader_cache.c +++ b/video/out/gpu/shader_cache.c @@ -674,7 +674,7 @@ static void add_uniforms(struct gl_shader_cache *sc, bstr *dst) // Ditto for push constants if (sc->pushc_size > 0) { - ADD(dst, "layout(push_constant) uniform PushC {\n"); + ADD(dst, "layout(std430, push_constant) uniform PushC {\n"); for (int n = 0; n < sc->num_uniforms; n++) { struct sc_uniform *u = &sc->uniforms[n]; if (u->type != SC_UNIFORM_TYPE_PUSHC) |