diff options
author | Kenneth Graunke <[email protected]> | 2013-07-13 15:27:52 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-07-18 16:57:22 -0700 |
commit | 48e3bd33dc28aedcd9fccf4ba3bdc5e8a894b27b (patch) | |
tree | c136bc4cdf4750ef0bb5c826c6b9baf18897f53a /src/glsl/lower_discard_flow.cpp | |
parent | 1b719df14dcde947f3d9c43282866a65cf3a3fd2 (diff) |
glsl: Handle most qualifier ordering in C code rather than the grammar.
The GL_ARB_shading_language_420pack extension/GLSL 4.20 allow qualifiers
to be specified in (basically) any order. In order to support this, we
can't hardcode the ordering restrictions in the grammar.
This patch alters the grammar to accept invariant, storage, layout, and
interpolation qualifiers in any order, but adds C code to enforce the
ordering requirements. In the 420pack case, we should be able to simply
skip the error checks.
As a bonus, this also lets us generate decent error messages, rather
than Bison's awful "unexpected TOKEN" errors.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/lower_discard_flow.cpp')
0 files changed, 0 insertions, 0 deletions