<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - WebGL conformance/textures/misc/texture-size-limit.html fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99108#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - WebGL conformance/textures/misc/texture-size-limit.html fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99108">bug 99108</a>
from <span class="vcard"><a class="email" href="mailto:xinghua.cao@intel.com" title="xinghua <xinghua.cao@intel.com>"> <span class="fn">xinghua</span></a>
</span></b>
<pre>The failure case may be related with
<a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - Can't configure a desktop with 3x4k monitors in one row"
href="show_bug.cgi?id=98297">https://bugs.freedesktop.org/show_bug.cgi?id=98297</a>
This bug changes "MaxTextureLevels" from 14 to 15. It means that buffer object
size for GL_TEXTURE_CUBE_MAP is from 2425421824 to 9682681856. This size is too
large that may cause mmap failure.
// intel_bufmgr_gem.c
static int drm_intel_gem_bo_map(drm_intel_bo *bo, int write_enable)
{
...
if (!bo_gem->mem_virtual) {
struct drm_i915_gem_mmap mmap_arg;
memclear(mmap_arg);
mmap_arg.handle = bo_gem->gem_handle;
mmap_arg.size = bo->size;
ret = drmIoctl(bufmgr_gem->fd,
DRM_IOCTL_I915_GEM_MMAP,
&mmap_arg);
...
}
...
}
drmIoctl call would fail, if call texImage2D continuously with same target but
different format and type as below,
gl.texImage2D(TEXTURE_CUBE_MAP_POSITIVE_X, 14, RGB, 1, 1, 0, RGB,
UNSIGNED_SHORT_5_6_5, Unit16Array);
gl.texImage2D(TEXTURE_CUBE_MAP_POSITIVE_X, 14, RGBA, 1, 1, 0, RGBA,
UNSIGNED_BYTE, Unit8Array);
It will create two buffer objects, their size all 9682681856. out_of_memory
issue will frequently happen when mapping buf2 but buf1 does not be released.
I am not sure this issue should be covered by application, or resolved by
driver. Please help to check it, thank you.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>