<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - OpenCL enqueueReadBuffer returns trash"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101952#c12">Comment # 12</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - OpenCL enqueueReadBuffer returns trash"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101952">bug 101952</a>
from <span class="vcard"><a class="email" href="mailto:janpieter.sollie@dommel.be" title="Janpieter Sollie <janpieter.sollie@dommel.be>"> <span class="fn">Janpieter Sollie</span></a>
</span></b>
<pre>the bug seems to be located within this function:
char os_memcmp(private const void* dest, constant const void* src, const uchar
amount) {
char j;
const int* destination = (const int*) dest;
constant int* source = (constant int*) src;
for(j = (amount >> 2) - 1; j >= 0; j--) if(destination[j] != source[j])
return 0;
return amount;
}
if you comment out the for loop, the program behaves as expected, if you don't,
it returns trash</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>