<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - link_shader and deserialize_glsl_program suddenly consume huge amount of RAM"
href="https://bugs.freedesktop.org/show_bug.cgi?id=111077#c22">Comment # 22</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - link_shader and deserialize_glsl_program suddenly consume huge amount of RAM"
href="https://bugs.freedesktop.org/show_bug.cgi?id=111077">bug 111077</a>
from <span class="vcard"><a class="email" href="mailto:roland@rptd.ch" title="roland@rptd.ch <roland@rptd.ch>"> <span class="fn">roland@rptd.ch</span></a>
</span></b>
<pre>Hi Marek,
This is going to be complicated. The application is not yet free to use by
others (working on getting it to release shape). I would have to figure out
first how to break this down into a reproducible test case since I don't know
myself what triggers the bug.
If you can think of some corner values to narrow down in what direction to
search I can fully mess with the source code over here. The faulty commit talks
about UBO maximum size so this might be a start. The OpenGL Capabilities from
the GPU is this:
- UBO Maximum Block Size = 65536
- UBO Buffer Offset Alignment = 4
So the maximum size used by the application is 65536 bytes.
UBOs are used as shared buffers so blocks of data are placed next to each other
respecting alignment and updated.
UBOs are created like this:
glBindBuffer(GL_UNIFORM_BUFFER, pUBO) // <= done once
glBufferData(GL_UNIFORM_BUFFER, bufferSize, NULL, GL_DYNAMIC_DRAW) // <= done
once
glMapBufferRange(GL_UNIFORM_BUFFER, stride * elementCount, elementStride,
GL_WRITE_ONLY | GL_MAP_INVALIDATE_RANGE_BIT) // <= done for each data block
written
Data then written and unmapped
In particular this means a larger UBO is created once then individual blocks
are written to it using ranged mapping. Just a wield guess but could the
problem be related to this kind of usage pattern?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>