[gegl] opencl: Do not ignore the CL error
- From: Téo Mazars <teom src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] opencl: Do not ignore the CL error
- Date: Sat, 22 Feb 2014 11:17:32 +0000 (UTC)
commit 4613a9b68462fa1b0783a72820d862b71065e117
Author: Téo Mazars <teomazars gmail com>
Date: Sat Feb 22 12:13:48 2014 +0100
opencl: Do not ignore the CL error
gegl/buffer/gegl-buffer-cl-cache.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-cl-cache.c b/gegl/buffer/gegl-buffer-cl-cache.c
index 10db36f..84ef07e 100644
--- a/gegl/buffer/gegl-buffer-cl-cache.c
+++ b/gegl/buffer/gegl-buffer-cl-cache.c
@@ -155,7 +155,6 @@ gegl_buffer_cl_cache_flush2 (GeglTileHandlerCache *cache,
cl_err = gegl_clEnqueueReadBuffer(gegl_cl_get_command_queue(),
entry->tex, CL_TRUE, 0, entry->roi.width * entry->roi.height *
size, data,
0, NULL, NULL);
-
/* tile-ize */
gegl_buffer_set (entry->buffer, &entry->roi, 0, entry->buffer->soft_format, data,
GEGL_AUTO_ROWSTRIDE);
@@ -163,6 +162,8 @@ gegl_buffer_cl_cache_flush2 (GeglTileHandlerCache *cache,
need_cl = TRUE;
g_free(data);
+
+ CL_CHECK;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]