[Bug 72273] New: GLSL preprocessor does not support expressions in #line

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 3 09:50:58 PST 2013


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

          Priority: medium
            Bug ID: 72273
          Assignee: idr at freedesktop.org
           Summary: GLSL preprocessor does not support expressions in
                    #line
        QA Contact: intel-3d-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: idr at freedesktop.org
          Hardware: Other
            Status: NEW
           Version: git
         Component: glsl-compiler
           Product: Mesa

The GLSL spec says (emphasis mine):

    "#line must have, after macro substitution, one of the following forms:

        #line line
        #line line source-string-number

    where line and source-string-number are constant integer *expressions*."

However, Mesa's preprocessor rejects shaders like:

#line 20
#line (20)
#line (10+10)
#line +20

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20131203/629707ed/attachment.html>


More information about the intel-3d-bugs mailing list