Bug 77245

Summary: Bogus GL_ARB_explicit_attrib_location layout identifier warnings
Product: Mesa Reporter: Kenneth Graunke <kenneth>
Component: glsl-compilerAssignee: Tapani Pälli <lemody>
Status: RESOLVED FIXED QA Contact: Intel 3D Bugs Mailing List <intel-3d-bugs>
Severity: minor    
Priority: medium CC: lemody
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: patch to fix the issue

Description Kenneth Graunke 2014-04-09 17:11:12 UTC
Compiling the following shader:

#version 150
#extension GL_ARB_explicit_attrib_location : warn
layout(triangle_strip, max_vertices = 4) out;

yields the following warning:

0:3(24): warning: GL_ARB_explicit_attrib_location layout identifier `max_vertices' used

This is bogus - max_vertices is part of 1.50, and was never part of the GL_ARB_explicit_attrib_location extension.  It appears that as people have added more layout qualifiers, they haven't sorted out the warn flags appropriately.

It would be nice to fix this.
Comment 1 Tapani Pälli 2014-04-30 08:04:37 UTC
Created attachment 98220 [details] [review]
patch to fix the issue

Patch fixes the warnings for GL_ARB_explicit_attrib_location.
Comment 2 Tapani Pälli 2014-05-06 05:39:49 UTC
fix pushed to master

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.