diff options
author | Chris Forbes <[email protected]> | 2014-04-21 15:45:32 +1200 |
---|---|---|
committer | Chris Forbes <[email protected]> | 2014-04-22 09:07:05 +1200 |
commit | 0dfa6e7cf5a1f5207b32140f48cd3870db8a189b (patch) | |
tree | 071d838554b96d301d22aa95abc2c5e9f314357b /Android.common.mk | |
parent | 0a0075666c7132cf284769802332017db42d42ed (diff) |
glsl: Only allow `invariant` on shader in/out between stages.
Previously this was special-cased for VS and FS; it never got updated
when geometry shaders came along. Generalize using is_varying_var() so
this won't be broken again with tessellation.
Note that there are two copies of the logic for `invariant`: It can be
present as part of a new declaration, and also as a redeclaration of an
existing variable or block member.
Fixes the four new piglits:
spec/glsl-1.50/compiler/invariant-qualifier-*.geom
Note for stable: This won't quite pick cleanly due to whitespace and
state->target -> state->stage renames. Should be straightforward
adjustments though.
Cc: "10.0 10.1" <[email protected]>
Signed-off-by: Chris Forbes <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'Android.common.mk')
0 files changed, 0 insertions, 0 deletions