aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-02-19 01:27:23 +0100
committerMichael Bien <[email protected]>2010-02-19 01:27:23 +0100
commita49b22397ae525e9b659a112aa11e4647c18c214 (patch)
treecc13baf0bae35131f7f13d1a9c71d3eab8ffe0fe /src/com/mbien/opencl
parent9542b173b10d2bb0eb492230025bdede638631b0 (diff)
enabled putMapImage methods in CLCommandQueue.
added slightly modified mapImage implementation via custom code for mapped image buffer size calculation in the glue layer.
Diffstat (limited to 'src/com/mbien/opencl')
-rw-r--r--src/com/mbien/opencl/CLCommandQueue.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/mbien/opencl/CLCommandQueue.java b/src/com/mbien/opencl/CLCommandQueue.java
index d127363..c8b862b 100644
--- a/src/com/mbien/opencl/CLCommandQueue.java
+++ b/src/com/mbien/opencl/CLCommandQueue.java
@@ -502,7 +502,7 @@ public class CLCommandQueue implements CLResource {
return mappedBuffer;
}
-/* TODO finish putMapImage
+
// 2D
public ByteBuffer putMapImage(CLImage2d<?> image, CLMemory.Map flag, boolean blockingMap) {
return putMapImage(image, flag, blockingMap, null);
@@ -570,7 +570,7 @@ public class CLCommandQueue implements CLResource {
return mappedImage;
}
-*/
+
public CLCommandQueue putUnmapMemory(CLMemory<?> memory) {
return putUnmapMemory(memory, null);
}