diff options
author | Timothy Arceri <[email protected]> | 2015-11-21 12:47:25 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2015-12-01 12:45:03 +1100 |
commit | 12ba6cfba7974cdf4609b146303a5988447d30c2 (patch) | |
tree | 9f3c004317ca9cee410a1a8b4954b88079d3f564 /src/glsl/lower_named_interface_blocks.cpp | |
parent | 4d64459a92a4c1a64fb7051fd1320c14c1854dcb (diff) |
glsl: optimise inputs/outputs with explicit locations
This change allows used defined inputs/outputs with explicit locations
to be removed if they are detected to not be used between shaders
at link time.
To enable this we change the is_unmatched_generic_inout field to be
flagged when we have a user defined varying. Previously
explicit_location was assumed to be set only in builtins however SSO
allows the user to set an explicit location.
We then add a function to match explicit locations between shaders.
V2: call match_explicit_outputs_to_inputs() after
is_unmatched_generic_inout has been initialised.
Cc: Gregory Hainaut <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/glsl/lower_named_interface_blocks.cpp')
0 files changed, 0 insertions, 0 deletions