| Summary: |
[GLSL 1.20] invariant variable shouldn't be used before declaration |
| Product: |
Mesa
|
Reporter: |
Gordon Jin <gordon.jin> |
| Component: |
glsl-compiler | Assignee: |
Ian Romanick <idr> |
| Status: |
VERIFIED
FIXED
|
QA Contact: |
|
| Severity: |
normal
|
|
|
| Priority: |
low
|
CC: |
chadversary
|
| Version: |
git | |
|
| Hardware: |
All | |
|
| OS: |
Linux (All) | |
|
| Whiteboard: |
|
|
i915 platform:
|
|
i915 features:
|
|
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
piglit/tests/glslparsertest/glsl2/invariant-05.vert has been failed since committed on July 1st, with either mesa master branch or glsl2 branch: It's expected to be compiled fail, but it gets compiled successfully. Tested on Piketon. invariant-05.vert: /* FAIL - * * From page 27 (page 33 of the PDF) of the GLSL 1.20 spec: * * "All uses of invariant must be at the global scope, and before any use * of the variables being declared as invariant." */ #version 120 void main() { gl_Position = gl_Vertex; } invariant gl_Position;