[Mesa-dev] [Bug 103586] OpenCL/Clover: AMD Turks: corrupt output buffer (depending on dimension order?)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Nov 19 03:21:58 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103586

--- Comment #15 from Dave Gilbert <freedesktop at treblig.org> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171119/3d99bef1/attachment.html>


More information about the mesa-dev mailing list