<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - dEQP-GLES2.functional.texture.completeness.cube.not_positive_level_0: Assertion `width >= 1' failed."
href="https://bugs.freedesktop.org/show_bug.cgi?id=96629">96629</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>dEQP-GLES2.functional.texture.completeness.cube.not_positive_level_0: Assertion `width >= 1' failed.
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Mesa core
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>imirkin@alum.mit.edu
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>