<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - OpenCL/Clover: AMD Turks: corrupt output buffer (depending on dimension order?)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103586#c15">Comment # 15</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - OpenCL/Clover: AMD Turks: corrupt output buffer (depending on dimension order?)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103586">bug 103586</a>
from <span class="vcard"><a class="email" href="mailto:freedesktop@treblig.org" title="Dave Gilbert <freedesktop@treblig.org>"> <span class="fn">Dave Gilbert</span></a>
</span></b>
<pre>Hi Jan,
Yes, doing:
--- a/ocl.cpp
+++ b/ocl.cpp
@@ -65,6 +65,7 @@ static int got_dev(cl::Platform &plat,
std::vector<cl::Device> &devices, cl::Dev
events.push_back(event);
cl::Event eventMap;
queue.enqueueBarrierWithWaitList(&events);
+ event.wait();
mapped = (cl_uint*)queue.enqueueMapBuffer(output, CL_TRUE /* blocking */,
CL_MAP_READ,
0 /* offset */,
SIZE * SIZE * SIZE * sizeof(cl_uint) /* size */,
does seem to work.
Vedran: I've only got a Turks to play with; feel free to try my test on
something else.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>