https://bugs.freedesktop.org/show_bug.cgi?id=31923
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: [email protected]
ReportedBy: [email protected]
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.
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev