[Bug 89697] New: color index = _mesa_format_from_format_and_type: Assertion `!"Unsupported format"' failed.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 20 10:22:34 PDT 2015


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

            Bug ID: 89697
           Summary: color index = _mesa_format_from_format_and_type:
                    Assertion `!"Unsupported format"' failed.
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/i965
          Assignee: idr at freedesktop.org
          Reporter: imirkin at alum.mit.edu
        QA Contact: intel-3d-bugs at lists.freedesktop.org

See piglit test at http://patchwork.freedesktop.org/patch/42736/ (remove the
all.py hunk so that it applies cleanly).

With mesa 10.3.7: pass. With mesa 10.5: crash:

gl-1.0-drawpixels-color-index: main/glformats.c:2754:
_mesa_format_from_format_and_type: Assertion `!"Unsupported format"' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff5ae7277 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff5ae7277 in raise () from /lib64/libc.so.6
#1  0x00007ffff5ae8598 in abort () from /lib64/libc.so.6
#2  0x00007ffff5ae03a6 in ?? () from /lib64/libc.so.6
#3  0x00007ffff5ae0452 in __assert_fail () from /lib64/libc.so.6
#4  0x00007ffff20908df in _mesa_format_from_format_and_type (
    format=format at entry=6400, type=type at entry=5121) at main/glformats.c:2754
#5  0x00007ffff21535a4 in draw_rgba_pixels (ctx=ctx at entry=0x7ffff7f85038, 
    x=x at entry=10, y=y at entry=10, width=width at entry=28, height=height at entry=18, 
    format=format at entry=6400, type=type at entry=5121, 
    unpack=unpack at entry=0x7ffff7fa0730, pixels=pixels at entry=0xd6a4b0)
    at swrast/s_drawpix.c:489
#6  0x00007ffff2153f08 in _swrast_DrawPixels (ctx=ctx at entry=0x7ffff7f85038, 
    x=x at entry=10, y=y at entry=10, width=width at entry=28, height=height at entry=18, 
    format=format at entry=6400, type=type at entry=5121, 
    unpack=unpack at entry=0x7ffff7fa0730, pixels=pixels at entry=0xd6a4b0)
    at swrast/s_drawpix.c:729
#7  0x00007ffff218c367 in _mesa_meta_DrawPixels (ctx=ctx at entry=0x7ffff7f85038, 
    x=x at entry=10, y=y at entry=10, width=width at entry=28, height=height at entry=18, 
    format=format at entry=6400, type=type at entry=5121, 
    unpack=unpack at entry=0x7ffff7fa0730, pixels=pixels at entry=0xd6a4b0)
    at drivers/common/meta.c:2141
#8  0x00007ffff232f646 in intelDrawPixels (ctx=0x7ffff7f85038, x=10, y=10, 
    width=28, height=18, format=6400, type=5121, unpack=0x7ffff7fa0730, 
    pixels=0xd6a4b0) at intel_pixel_draw.c:167
#9  0x00007ffff2015020 in _mesa_DrawPixels (width=28, height=18, format=6400, 
    type=5121, pixels=0xd6a4b0) at main/drawpix.c:162
#10 0x00007ffff7ad88e5 in stub_glDrawPixels (width=28, height=18, format=6400, 
    type=5121, pixels=0xd6a4b0)
    at /home/ilia/src/piglit/tests/util/piglit-dispatch-gen.c:11918
#11 0x0000000000401047 in test_ci (x=10, y=10)
    at /home/ilia/src/piglit/tests/spec/gl-1.0/drawpixels-color-index.c:68

The line in question:

glDrawPixels(width, height, GL_COLOR_INDEX, GL_UNSIGNED_BYTE, image);

Perhaps as a result of the recent format rework. This remains at commit
c02c4b567ce001f6605c46e71e089692b837bf26^ (can't go past that due to libdrm
version bump).

I guess _mesa_format_from_format_and_type needs to handle color index and any
other weird gl things? Note that you also need to handle GL_BITMAP. OTOH the
gallium paths don't end up hitting this, so... who knows. OTTH, gallium also
fails this test, so perhaps not the best example to take on.

-- 
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/20150320/a5947198/attachment.html>


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