diff options
author | Jan Vesely <[email protected]> | 2013-12-15 17:28:16 -0500 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2013-12-18 16:21:59 +0100 |
commit | 56647c5d8f8e60269f0a3277e3caa7ee57d1fe6a (patch) | |
tree | 65ef0f7f21723056c0ef61f3eee6e78e66670579 | |
parent | 21f82188ce389a2543c894dd6d88fbebb25cc796 (diff) |
clover: Append buffers that use CL_MEM_USE_HOST_PTR.
Specs say it's legal for implementations to use internal copies, and
the write synchronization seems to work. Fixes clCreateBuffer
(together with previous patches) and buffer-flags piglits.
Signed-off-by: Jan Vesely <[email protected]>
Acked-by: Francisco Jerez <[email protected]>
-rw-r--r-- | src/gallium/state_trackers/clover/core/memory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/core/memory.cpp b/src/gallium/state_trackers/clover/core/memory.cpp index 87a9f7a5488..1db3f68d371 100644 --- a/src/gallium/state_trackers/clover/core/memory.cpp +++ b/src/gallium/state_trackers/clover/core/memory.cpp @@ -31,7 +31,7 @@ memory_obj::memory_obj(context &ctx, cl_mem_flags flags, ctx(ctx), _flags(flags), _size(size), _host_ptr(host_ptr), _destroy_notify([]{}) { - if (flags & CL_MEM_COPY_HOST_PTR) + if (flags & (CL_MEM_COPY_HOST_PTR | CL_MEM_USE_HOST_PTR)) data.append((char *)host_ptr, size); } |