<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [i965] OUT_OF_MEMORY error with maximum size mipmapped depth texture"
href="https://bugs.freedesktop.org/show_bug.cgi?id=72893">72893</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>idr@freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>[i965] OUT_OF_MEMORY error with maximum size mipmapped depth texture
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>anuj.phogat@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Component</th>
<td>Drivers/DRI/i965
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr></table>
<p>
<div>
<pre>Failure is observed in Khronos' OpenGL CTS test depth_texture_mipmap.test on
IVB. I haven't tested on other intel platforms. Test passes on proprietary
linux drivers of NVIDIA and AMD.
Driver fails to map texture memory for a texture with target= GL_TEXTURE_2D,
width=8192, height=8192, internalformat = {GL_DEPTH_COMPONENT24,
GL_DEPTH_COMPONENT32} and GL_TEXTURE_MIN_FILTER = GL_NEAREST_MIPMAP_LINEAR.
intel_miptree_map_gtt() => drm_intel_gem_bo_map_gtt( ) => drmIoctl() returns -1
strerror(errno) = 0x3e36b7b117 "Argument list too long"
dstMap = 0x0 in store_texsubimage(), which results in error "GL_OUT_OF_MEMORY
in glTexSubImage".
OUT_OF_MEMORY error can be easily reproduced by doing minor modifications to
max-texture-size.c piglit test. I will later attach the patch to make these
changes.
stacktrace:
#0 map_gtt (bo=0xc3ff90) at intel_bufmgr_gem.c:1249
#1 0x00007ffff6d19bc2 in drm_intel_gem_bo_map_gtt (bo=0xc3ff90) at
intel_bufmgr_gem.c:1288
#2 0x00007ffff66a28a9 in intel_miptree_map_raw (brw=0x7ffff62c1040,
mt=0xc3fce0) at intel_mipmap_tree.c:1713
#3 0x00007ffff66a298e in intel_miptree_map_gtt (brw=0x7ffff62c1040,
mt=0xc3fce0, map=0x8f16f0, level=0, slice=0) at intel_mipmap_tree.c:1747
#4 0x00007ffff66a4293 in intel_miptree_map_singlesample (brw=0x7ffff62c1040,
mt=0xc3fce0, level=0, slice=0, x=0, y=0, w=8192, h=8192, mode=6,
out_ptr=0x7fffffffd9b0, out_stride=0x7fffffffd9ac)
at intel_mipmap_tree.c:2286
#5 0x00007ffff66a47cd in intel_miptree_map (brw=0x7ffff62c1040, mt=0xc3fce0,
level=0, slice=0, x=0, y=0, w=8192, h=8192, mode=6, out_ptr=0x7fffffffd9b0,
out_stride=0x7fffffffd9ac)
at intel_mipmap_tree.c:2431
#6 0x00007ffff66ab0dc in intel_map_texture_image (ctx=0x7ffff62c1040,
tex_image=0xc4adb0, slice=0, x=0, y=0, w=8192, h=8192, mode=6,
map=0x7fffffffd9b0, stride=0x7fffffffd9ac) at intel_tex.c:222
#7 0x00007ffff648edee in store_texsubimage (ctx=0x7ffff62c1040,
texImage=0xc4adb0, xoffset=0, yoffset=0, zoffset=0, width=8192, height=8192,
depth=1, format=6402, type=5126,
pixels=0x7fffb4f68010, packing=0x7ffff62d0230, caller=0x7ffff67aa802
"glTexImage") at main/texstore.c:4015
#8 0x00007ffff648effc in _mesa_store_teximage (ctx=0x7ffff62c1040, dims=2,
texImage=0xc4adb0, format=6402, type=5126, pixels=0x7fffb4f68010,
packing=0x7ffff62d0230) at main/texstore.c:4071
#9 0x00007ffff66abe5c in intelTexImage (ctx=0x7ffff62c1040, dims=2,
texImage=0xc4adb0, format=6402, type=5126, pixels=0x7fffb4f68010,
unpack=0x7ffff62d0230) at intel_tex_image.c:198
#10 0x00007ffff647624b in teximage (ctx=0x7ffff62c1040, compressed=0 '\000',
dims=2, target=3553, level=0, internalFormat=33190, width=8192, height=8192,
depth=1, border=0, format=6402, type=5126,
imageSize=0, pixels=0x7fffb4f68010) at main/teximage.c:3128
#11 0x00007ffff64763e1 in _mesa_TexImage2D (target=3553, level=0,
internalFormat=33190, width=8192, height=8192, border=0, format=6402,
type=5126, pixels=0x7fffb4f68010) at main/teximage.c:3167
#12 0x00007ffff7d4f799 in stub_glTexImage2D (target=3553, level=0,
internalformat=33190, width=8192, height=8192, border=0, format=6402,
type=5126, pixels=0x7fffb4f68010)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>