[Beignet] [PATCH 3/3] Remove blocking asserts in clEnqueueXXX apis.
Yang Rong
rong.r.yang at intel.com
Tue Oct 8 23:36:27 PDT 2013
Signed-off-by: Yang Rong <rong.r.yang at intel.com>
---
src/cl_api.c | 25 -------------------------
1 file changed, 25 deletions(-)
diff --git a/src/cl_api.c b/src/cl_api.c
index 42948e8..71bab32 100644
--- a/src/cl_api.c
+++ b/src/cl_api.c
@@ -1270,9 +1270,6 @@ clEnqueueReadBuffer(cl_command_queue command_queue,
goto error;
}
- if (blocking_read != CL_TRUE)
- NOT_IMPLEMENTED;
-
if (!ptr || !size || offset + size > buffer->size) {
err = CL_INVALID_VALUE;
goto error;
@@ -1329,9 +1326,6 @@ clEnqueueReadBufferRect(cl_command_queue command_queue,
goto error;
}
- if (blocking_read != CL_TRUE)
- NOT_IMPLEMENTED;
-
if (!ptr || !region || region[0] == 0 || region[1] == 0 || region[2] == 0) {
err = CL_INVALID_VALUE;
goto error;
@@ -1409,9 +1403,6 @@ clEnqueueWriteBuffer(cl_command_queue command_queue,
goto error;
}
- if (blocking_write != CL_TRUE)
- NOT_IMPLEMENTED;
-
if (!ptr || !size || offset + size > buffer->size) {
err = CL_INVALID_VALUE;
goto error;
@@ -1468,10 +1459,6 @@ clEnqueueWriteBufferRect(cl_command_queue command_queue,
goto error;
}
- if (blocking_write != CL_TRUE)
- NOT_IMPLEMENTED;
-
-
if (!ptr || !region || region[0] == 0 || region[1] == 0 || region[2] == 0) {
err = CL_INVALID_VALUE;
goto error;
@@ -1656,9 +1643,6 @@ clEnqueueReadImage(cl_command_queue command_queue,
goto error;
}
- if (blocking_read != CL_TRUE)
- NOT_IMPLEMENTED;
-
if (!origin || !region || origin[0] + region[0] > image->w || origin[1] + region[1] > image->h || origin[2] + region[2] > image->depth) {
err = CL_INVALID_VALUE;
goto error;
@@ -1738,9 +1722,6 @@ clEnqueueWriteImage(cl_command_queue command_queue,
goto error;
}
- if (blocking_write != CL_TRUE)
- NOT_IMPLEMENTED;
-
if (!origin || !region || origin[0] + region[0] > image->w || origin[1] + region[1] > image->h || origin[2] + region[2] > image->depth) {
err = CL_INVALID_VALUE;
goto error;
@@ -2073,9 +2054,6 @@ clEnqueueMapBuffer(cl_command_queue command_queue,
goto error;
}
- if (blocking_map != CL_TRUE)
- NOT_IMPLEMENTED;
-
if (!size || offset + size > buffer->size) {
err = CL_INVALID_VALUE;
goto error;
@@ -2141,9 +2119,6 @@ clEnqueueMapImage(cl_command_queue command_queue,
goto error;
}
- if (blocking_map != CL_TRUE)
- NOT_IMPLEMENTED;
-
if (!origin || !region || origin[0] + region[0] > image->w || origin[1] + region[1] > image->h || origin[2] + region[2] > image->depth) {
err = CL_INVALID_VALUE;
goto error;
--
1.8.1.2
More information about the Beignet
mailing list