glsl/linker: Fix out variables linking during single stage
authorVadym Shovkoplias <vadim.shovkoplias@gmail.com>
Wed, 24 Oct 2018 10:28:23 +0000 (13:28 +0300)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 29 Oct 2018 23:19:17 +0000 (10:19 +1100)
commit7d66eddbbdec98df21dc9d8286f8e047d575b52d
tree16e525ddb3b15732f41db1977a02b883edb73caf
parent8676af12c8e8e223f186059705f189ae7d3cae60
glsl/linker: Fix out variables linking during single stage

Since out variables are copied from shader objects instruction
streams to linked shader instruction steam it should be cloned
at first to keep source instruction steam unaltered.

Fixes: 966a797e433 ("glsl/linker: Link all out vars from a shader
objects on a single stage")

Signed-off-by: Vadym Shovkoplias <vadym.shovkoplias@globallogic.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105731
src/compiler/glsl/linker.cpp