[Mesa-dev] [Bug 31923] New: [GLSL 1.20] allowing inconsistent centroid declaration between two vertex shaders

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Nov 25 17:43:41 PST 2010


           Summary: [GLSL 1.20] allowing inconsistent centroid declaration
                    between two vertex shaders
           Product: Mesa
           Version: git
          Platform: All
        OS/Version: Linux (All)
            Status: NEW
          Severity: minor
          Priority: medium
         Component: Mesa core
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: gordon.jin at intel.com

Created an attachment (id=40576)
 View: https://bugs.freedesktop.org/attachment.cgi?id=40576
 Review: https://bugs.freedesktop.org/review?bug=31923&attachment=40576

test case for piglit

This is similar to bug#30261, just s/invariant/centroid.

GLSL 1.20 section 4.3.6 says:
The type and presence of the centroid and invariant qualifiers of varying
variables with the same name declared in linked vertex and fragments shaders
must match, otherwise the link command will fail.

The mesa glsl compiler fails link correctly for one vertex shader and one
fragment shader.

But it links (incorrectly) successfully for two vertex shaders. The attached
case fails with below message:
Program should have failed linking, but it was (incorrectly) successful.
PIGLIT: {'result': 'fail' }

Tested on Piketon (i965) with mesa master.

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