From 22311a767d863633d29f136385d4eef4fad8fde8 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Fri, 29 Sep 2017 00:41:50 +0200 Subject: 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) --- video/out/gpu/shader_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') 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) -- cgit v1.2.3