summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2016-01-12 11:03:14 +0200
committerTapani Pälli <[email protected]>2016-01-13 07:30:46 +0200
commit6b0706b2aab5ec56f13357e9957fbf99a63839f8 (patch)
treebbaf27775be148794023fdb22170793b303f0056 /src/glsl
parent38cdcb000d6890f3bab479ab8061d9811ded9d39 (diff)
glsl: add packed varyings for outputs with single stage program
Commit 8926dc8 added a check where we add packed varyings of output stage only when we have multiple stages, however duplicates are already handled by changes in commit 0508d950 and we want to add outputs also in case where we have only one stage. Fixes regression caused by 8926dc8 for following test: ES31-CTS.program_interface_query.separate-programs-vertex Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Marta Lofstedt <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/linker.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index eb1bdc05932..e8c0b981760 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -3753,13 +3753,8 @@ build_program_resource_list(struct gl_shader_program *shProg)
if (!add_packed_varyings(shProg, input_stage, GL_PROGRAM_INPUT))
return;
- /* Only when dealing with multiple stages, otherwise we would have
- * duplicate gl_shader_variable entries.
- */
- if (input_stage != output_stage) {
- if (!add_packed_varyings(shProg, output_stage, GL_PROGRAM_OUTPUT))
- return;
- }
+ if (!add_packed_varyings(shProg, output_stage, GL_PROGRAM_OUTPUT))
+ return;
}
if (!add_fragdata_arrays(shProg))