[Mesa-dev] [Bug 96629] dEQP-GLES2.functional.texture.completeness.cube.not_positive_level_0: Assertion `width >= 1' failed.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jun 22 05:44:48 UTC 2016


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

            Bug ID: 96629
           Summary: dEQP-GLES2.functional.texture.completeness.cube.not_po
                    sitive_level_0: Assertion `width >= 1' failed.
           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: imirkin at alum.mit.edu
        QA Contact: mesa-dev at lists.freedesktop.org

Pretty sure this affects st/mesa. Not sure if it's a recent regression or
not... this code did have some changes around it, but I don't think anything
that would affect this.

Looks like the first level is all 0's (invalid), and then when we set level 1
to something, we try to allocate a full mipmap. But of course the first image's
dimensions are all wrong. I guess in that case we should just not combine it
(and thus not even make it into guess_base_level_size)?

Starting program: /home/ilia/src/deqp/modules/gles2/deqp-gles2
--deqp-visibility=hidden
--deqp-case=dEQP-GLES2.functional.texture.completeness.cube.not_positive_level_0
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
dEQP Core git-cf4407563b4783b69214f3542728806468b200a6 (0xcf440756) starting..
  target implementation = 'X11 EGL/GLX'
Mesa: _mesa_make_current()
Mesa: glGetError <-- GL_NO_ERROR

Test case
'dEQP-GLES2.functional.texture.completeness.cube.not_positive_level_0'..
Mesa: glClear 0x4000
Mesa: glGenTextures 1
Mesa: glBindTexture GL_TEXTURE_CUBE_MAP 1
Mesa: glTexImage2D GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0 GL_RGBA 0 0 1 0 GL_RGBA
GL_UNSIGNED_BYTE 0x12fef68
Mesa: glTexImage2D GL_TEXTURE_CUBE_MAP_POSITIVE_X 0 GL_RGBA 0 0 1 0 GL_RGBA
GL_UNSIGNED_BYTE 0x12fef68
Mesa: glTexImage2D GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0 GL_RGBA 0 0 1 0 GL_RGBA
GL_UNSIGNED_BYTE 0x12fef68
Mesa: glTexImage2D GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0 GL_RGBA 0 0 1 0 GL_RGBA
GL_UNSIGNED_BYTE 0x12fef68
Mesa: glTexImage2D GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0 GL_RGBA 0 0 1 0 GL_RGBA
GL_UNSIGNED_BYTE 0x12fef68
Mesa: glTexImage2D GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0 GL_RGBA 0 0 1 0 GL_RGBA
GL_UNSIGNED_BYTE 0x12fef68
Mesa: glTexImage2D GL_TEXTURE_CUBE_MAP_NEGATIVE_X 1 GL_RGBA 32 32 1 0 GL_RGBA
GL_UNSIGNED_BYTE 0x1307148
state_tracker/st_cb_texture.c:336:guess_base_level_size: Assertion `width >= 1'
failed.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff20a8fda in _debug_assert_fail (expr=0x7ffff23b6125 "width >= 1",
file=0x7ffff23b60f0 "state_tracker/st_cb_texture.c", line=336, 
    function=0x7ffff23b6860 <__func__.44392> "guess_base_level_size") at
util/u_debug.c:330
330        os_abort();
(gdb) bt
#0  0x00007ffff20a8fda in _debug_assert_fail (expr=0x7ffff23b6125 "width >= 1",
file=0x7ffff23b60f0 "state_tracker/st_cb_texture.c", line=336, 
    function=0x7ffff23b6860 <__func__.44392> "guess_base_level_size") at
util/u_debug.c:330
#1  0x00007ffff1e47f38 in guess_base_level_size (target=34067, width=0,
height=0, depth=1, level=0, width0=0x7fffffffd238, height0=0x7fffffffd23c, 
    depth0=0x7fffffffd240) at state_tracker/st_cb_texture.c:336
#2  0x00007ffff1e4824a in guess_and_alloc_texture (st=0x11f3690,
stObj=0x133ca40, stImage=0x12f4410) at state_tracker/st_cb_texture.c:475
#3  0x00007ffff1e485a4 in st_AllocTextureImageBuffer (ctx=0x12a2bf0,
texImage=0x12f4410) at state_tracker/st_cb_texture.c:582
#4  0x00007ffff1e4a940 in st_TexImage (ctx=0x12a2bf0, dims=2,
texImage=0x12f4410, format=6408, type=5121, pixels=0x1307148, unpack=0x12bde60)
    at state_tracker/st_cb_texture.c:1577
#5  0x00007ffff1d8867b in teximage (ctx=0x12a2bf0, compressed=0 '\000', dims=2,
target=34070, level=1, internalFormat=6408, width=32, height=32, depth=1,
border=0, 
    format=6408, type=5121, imageSize=0, pixels=0x1307148) at
main/teximage.c:3019
#6  0x00007ffff1d88832 in _mesa_TexImage2D (target=34070, level=1,
internalFormat=6408, width=32, height=32, border=0, format=6408, type=5121,
pixels=0x1307148)
    at main/teximage.c:3058

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160622/8cfce90b/attachment.html>


More information about the mesa-dev mailing list