https://bugs.freedesktop.org/show_bug.cgi?id=71870
Ian Romanick <i...@freedesktop.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #45 from Ian Romanick <i...@freedesktop.org> --- The __ issue should be fixed by the following commits on Mesa master. These are scheduled to inclusion in 10.1 and 10.0.4. commit 2c85fd5a964a78c9f7a93994fb79f1723c6f45b5 Author: Ian Romanick <ian.d.roman...@intel.com> Date: Tue Feb 18 09:36:08 2014 -0800 glsl: Only warn for macro names containing __ From page 14 (page 20 of the PDF) of the GLSL 1.10 spec: "In addition, all identifiers containing two consecutive underscores (__) are reserved as possible future keywords." The intention is that names containing __ are reserved for internal use by the implementation, and names prefixed with GL_ are reserved for use by Khronos. Names simply containing __ are dangerous to use, but should be allowed. Per the Khronos bug mentioned below, a future version of the GLSL specification will clarify this. Signed-off-by: Ian Romanick <ian.d.roman...@intel.com> Cc: "9.2 10.0 10.1" <mesa-sta...@lists.freedesktop.org> Reviewed-by: Kenneth Graunke <kenn...@whitecape.org> Tested-by: Kenneth Graunke <kenn...@whitecape.org> Reviewed-by: Anuj Phogat <anuj.pho...@gmail.com> Tested-by: Darius Spitznagel <d.spitzna...@goodbytez.de> Cc: Tapani Pälli <lem...@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71870 Bugzilla: Khronos #11702 commit 0bd78926304e72ef3566e977d0cb5a959d86b809 Author: Ian Romanick <ian.d.roman...@intel.com> Date: Tue Feb 18 09:10:36 2014 -0800 glcpp: Only warn for macro names containing __ Section 3.3 (Preprocessor) of the GLSL 1.30 spec (and later) and the GLSL ES spec (all versions) say: "All macro names containing two consecutive underscores ( __ ) are reserved for future use as predefined macro names. All macro names prefixed with "GL_" ("GL" followed by a single underscore) are also reserved." The intention is that names containing __ are reserved for internal use by the implementation, and names prefixed with GL_ are reserved for use by Khronos. Since every extension adds a name prefixed with GL_ (i.e., the name of the extension), that should be an error. Names simply containing __ are dangerous to use, but should be allowed. In similar cases, the C++ preprocessor specification says, "no diagnostic is required." Per the Khronos bug mentioned below, a future version of the GLSL specification will clarify this. Signed-off-by: Ian Romanick <ian.d.roman...@intel.com> Cc: "9.2 10.0 10.1" <mesa-sta...@lists.freedesktop.org> Reviewed-by: Kenneth Graunke <kenn...@whitecape.org> Tested-by: Kenneth Graunke <kenn...@whitecape.org> Reviewed-by: Anuj Phogat <anuj.pho...@gmail.com> Tested-by: Darius Spitznagel <d.spitzna...@goodbytez.de> Cc: Tapani Pälli <lem...@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71870 Bugzilla: Khronos #11702 -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev