[Mesa-dev] [Bug 71870] Metro: Last Light rendering issues

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Feb 17 15:38:52 PST 2014


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

--- Comment #41 from Thomas Rohloff <v10lator at myway.de> ---
(In reply to comment #40)
> I'm not an expert on GLSL, but forbidding identifiers that contain '__'
> *anywhere* seems stupid to me. I'm not aware of any other programming
> language that imposes such a limitation on identifiers. What's the reason
> for this?

    "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."
(source: Comment 33)

In other words: When you have a macro called "MY__SUPER_COOL_MACRO" Khronos
could step up telling "MY__SUPER_COOL_MACRO" is now a predefined macro and as
such your program is incompatible. I just fail to see why this is needed for
already finished specifications.
Anyway in that example Mesa could just disallow "MY__SUPER_COOL_MACRO" (expose
the internal macro instead) and not everything. Also I don't think the
specification says you're not allowed to use "MY__SUPER_COOL_MACRO", it just
tells you that it's a bad idea, so mesa is overstrict here.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140217/5a1a7031/attachment.html>


More information about the mesa-dev mailing list