[Mesa-dev] [Bug 82472] New: piglit 16385-consecutive-chars regression

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Aug 11 12:16:03 PDT 2014


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

          Priority: medium
            Bug ID: 82472
          Keywords: bisected, regression
                CC: cworth at cworth.org, idr at freedesktop.org
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: piglit 16385-consecutive-chars regression
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: vlee at freedesktop.org
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: git
         Component: Mesa core
           Product: Mesa

mesa: 23d782067ae834ad53522b46638ea21c62e94ca3 (master 10.3.0-devel)

$ ./bin/glslparsertest tests/glslparsertest/glsl2/16385-consecutive-chars.frag
pass 1.10
Aborted (core dumped)

04e40fd337a244ee77ef9553985e9398ff0344af is the first bad commit
commit 04e40fd337a244ee77ef9553985e9398ff0344af
Author: Carl Worth <cworth at cworth.org>
Date:   Tue Jul 1 16:31:07 2014 -0700

    glsl/glcpp: Treat CR+LF pair as a single newline

    The GLSL specification says that either carriage-return, line-feed, or both
    together can be used to terminate lines. Further, it says that when used
    together, the pair of terminators shall be interpreted as a single line.

    This final requirement has not been respected by glcpp up until now, (it
has
    been emitting two newlines for every CR+LF pair).

    Here, we fix the lexer by using a regular expression for NEWLINE that eats
    up both "\r\n" (or even "\n\r") if possible before also considering a
single
    '\n' or a single '\r' as a line terminator.

    Before this commit, the test results are as follows:

        \r:    135/143 tests pass
        \r\n:      4/143 tests pass
        \n\r:      4/143 tests pass

    After this commit, the test results are as follows:

        \r:    135/143 tests pass
        \r\n:    140/143 tests pass
        \n\r:    139/143 tests pass

    So, obviously, a dramatic improvement.

    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

:040000 040000 1f73084ed2a50bab0d7561b087f8c9ae3a480322
e696705124b77a67588c80b91c9e68c56a2586b9 M    src
bisect run success

-- 
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/20140811/5dfebb46/attachment.html>


More information about the mesa-dev mailing list