[Mesa-dev] [PATCH 2/3] glsl: assign location for all outputs of SSO

Timothy Arceri t_arceri at yahoo.com.au
Thu Nov 19 02:48:19 PST 2015


From: Timothy Arceri <timothy.arceri at collabora.com>

We can have multistage separate programs so assign locations
for outputs even when a consumer is available for SSO.

Cc: Ian Romanick <ian.d.romanick at intel.com>
Cc: Gregory Hainaut <gregory.hainaut at gmail.com>
---
 src/glsl/link_varyings.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp
index 7e77a67..cc8321d 100644
--- a/src/glsl/link_varyings.cpp
+++ b/src/glsl/link_varyings.cpp
@@ -1501,7 +1501,7 @@ assign_varying_locations(struct gl_context *ctx,
           * Always add TCS outputs. They are shared by all invocations
           * within a patch and can be used as shared memory.
           */
-         if (input_var || (prog->SeparateShader && consumer == NULL) ||
+         if (input_var || (prog->SeparateShader) ||
              producer->Type == GL_TESS_CONTROL_SHADER) {
             matches.record(output_var, input_var);
          }
-- 
2.4.3



More information about the mesa-dev mailing list