diff options
author | Chris Forbes <[email protected]> | 2014-04-12 13:21:09 +1200 |
---|---|---|
committer | Chris Forbes <[email protected]> | 2014-06-10 10:09:31 +1200 |
commit | 5bbb028ef3626e51deea3fbd59578afcfc096c39 (patch) | |
tree | e6c0811b37ab0a06cf9071641e23264c5ddf0985 /src/glsl/glsl_symbol_table.h | |
parent | c75f827f129dbb03e92200c9bfc3d82e02ea82f6 (diff) |
glsl: Validate aux storage qualifier combination with other qualifiers.
We've been allowing `centroid` and `sample` in all kinds of weird places
where they're not valid.
Insist that `sample` is combined with `in` or `out`;
and that `centroid` is combined with `in`, `out`, or the deprecated
`varying`.
V2: Validate this in a more sensible place. This does require an extra
case for uniform blocks members and struct members, though, since they
don't go through the normal path.
V3: Improve error message wording; eliminate redundant error generation
for inputs in VS or outputs in FS.
Signed-off-by: Chris Forbes <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/glsl_symbol_table.h')
0 files changed, 0 insertions, 0 deletions