[Mesa-dev] [Bug 29164] New: [GLSL 1.20] invariant variable shouldn't be used before declaration

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jul 20 00:30:40 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=29164

           Summary: [GLSL 1.20] invariant variable shouldn't be used
                    before declaration
           Product: Mesa
           Version: git
          Platform: All
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: gordon.jin at intel.com


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;

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list