<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - glBufferSubData is corrupting data when buffer is > 32k"
href="https://bugs.freedesktop.org/show_bug.cgi?id=90734#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - glBufferSubData is corrupting data when buffer is > 32k"
href="https://bugs.freedesktop.org/show_bug.cgi?id=90734">bug 90734</a>
from <span class="vcard"><a class="email" href="mailto:kaillasse91@hotmail.fr" title="kaillasse91@hotmail.fr">kaillasse91@hotmail.fr</a>
</span></b>
<pre>Well, I built mesa with the patch and the test is ok but my application is not.
I use various buffer size and update is quasi random so I modified the test
case to reflect this and the first errors were at the 64k boundary.
Changing from :
//#define ELEMENT_CNT (4095 * 2) // NO ERROR
#define ELEMENT_CNT (4096 * 2) // ERROR, >= 4096
to :
//#define ELEMENT_CNT (8191 * 2) // NO ERROR
#define ELEMENT_CNT (8192 * 2) // ERROR, >= 8192
catches more errors.
Tested on sandy bridge hd 2000, in bytes as it seems to be the relevant factor
:
buffer size 65536 updating [44-65536] size 65492 bytes
buffer size 65536 updating [64-65536] size 65472 bytes
buffer size 65536 updating [56-65536] size 65480 bytes
And increasing the buffer size:
buffer size 400000 updating [50820-149076] size 98256 bytes
buffer size 400000 updating [11312-142364] size 131052 bytes
buffer size 4000000 updating [3255368-3484676] size 229308 bytes
buffer size 4000000 updating [2179900-2802388] size 622488 bytes
...</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>