[Mesa-dev] [Bug 90213] glDrawPixels with GL_COLOR_INDEX never returns.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 28 04:10:03 PDT 2015


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

            Bug ID: 90213
           Summary: glDrawPixels with GL_COLOR_INDEX never returns.
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: juhapekka.heikkila at gmail.com
        QA Contact: mesa-dev at lists.freedesktop.org

When I run glDrawPixels(width, height, GL_COLOR_INDEX, GL_UNSIGNED_BYTE, data)
code execution never return.

Commit 84eb402c01962e3ff4b70c9948c85a61ed81678f changed the path so we end up
in _mesa_format_from_format_and_type at src/mesa/main/glformats.c:2682 which
does not seem to know anything about GL_COLOR_INDEX. On release build this
function should return a value but doesn't and gets confused, on debug build I
get assert _mesa_format_from_format_and_type: Assertion `!"Unsupported format"'
failed.

I made minimalistic test for this, one can get it from here
https://github.com/juhapekka/CI_test.git

There seems also exist test in Piglit which does similar and halts Piglit run.
Piglit test is gl-1.0-drawpixels-color-index

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150428/1c5daf1a/attachment-0001.html>


More information about the mesa-dev mailing list