From ffc824aa4f796c3169f85fe815a547fbc07c2301 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Thu, 21 Jan 2016 06:37:24 -0500 Subject: [PATCH] glsl: disable varying packing for SSO when we don't have both stages Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93650 Signed-off-by: Ilia Mirkin --- src/glsl/link_varyings.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index 09f80d0..a5151b939 100644 --- a/src/glsl/link_varyings.cpp +++ b/src/glsl/link_varyings.cpp @@ -1582,6 +1582,7 @@ assign_varying_locations(struct gl_context *ctx, */ bool disable_varying_packing = ctx->Const.DisableVaryingPacking || + (!producer && prog->SeparateShader) || (consumer && consumer->Stage == MESA_SHADER_TESS_EVAL) || (consumer && consumer->Stage == MESA_SHADER_TESS_CTRL) || (producer && producer->Stage == MESA_SHADER_TESS_CTRL); -- 2.4.10