diff options
author | Marek Olšák <[email protected]> | 2013-06-12 02:18:09 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-07-02 17:02:14 +0200 |
commit | 284d9549123d7a5417310d359c2c46a4317e47bb (patch) | |
tree | 21484d5d55b26feeb51d03a1a57d9811e68a0823 /src/glsl/link_varyings.h | |
parent | 030ca230e25192307336cb39f1ee414d0392b620 (diff) |
glsl/linker: link shaders in the opposite order (from fragment to vertex)
This ensures that inter-shader outputs and inputs are properly eliminated
across 3 or more shader stages. The behavior is unchanged with 2 or less
shader stages.
For example, elimination of unused FS inputs causes elimination of matching
GS outputs, which causes elimination of the GS inputs that were needed for
evaluation of the eliminated GS outputs, which causes elimination of
matching VS outputs. An unused FS input is all that's needed to trigger
this chain reaction.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/link_varyings.h')
0 files changed, 0 insertions, 0 deletions