[Mesa-dev] [Bug 29786] New: [glsl2] #pragma not supported

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Aug 24 11:52:42 PDT 2010


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

           Summary: [glsl2] #pragma not supported
           Product: Mesa
           Version: git
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: idr at freedesktop.org


Neither the preprocessor nor the compiler proper support the #pragma directive
in any form.  Several glslparsertest cases have been added to piglit to
exercise this.  In addition, this bug is evident in the game Regnum Online (see
bug #28138).

Since some of the #pragmas have rules about where they can be used, I believe
the preprocessor should pass all *recognized* pragmas through, unmolested, to
the compiler proper.  All of the actual processing should happen there. 
Unrecognized pragmas should be removed.

The spec also says that pragmas are not subject to macro expansion, so we
should probably add some tests for that.  Some expected-fail tests like the
following should do the trick:

#define FOO on
#pragma debug(FOO)

-- 
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