[gegl] operations: missing work-group size querries in stretch-contrast (OpenCL)
- From: Téo Mazars <teom src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operations: missing work-group size querries in stretch-contrast (OpenCL)
- Date: Thu, 14 Nov 2013 15:44:15 +0000 (UTC)
commit aee63677f796c2e24124678f25a5888182accc66
Author: Téo Mazars <teomazars gmail com>
Date: Thu Nov 14 16:40:00 2013 +0100
operations: missing work-group size querries in stretch-contrast (OpenCL)
operations/common/stretch-contrast.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/operations/common/stretch-contrast.c b/operations/common/stretch-contrast.c
index 18b364d..f68f78f 100644
--- a/operations/common/stretch-contrast.c
+++ b/operations/common/stretch-contrast.c
@@ -140,6 +140,10 @@ cl_buffer_get_min_max (cl_mem in_tex,
sizeof (size_t), &max_local_ws, NULL);
CL_CHECK;
+ max_local_ws = MIN (max_local_ws,
+ MIN (cl_data->work_group_size[0],
+ cl_data->work_group_size[1]));
+
/* Needs to be a power of two */
local_ws = 256;
while (local_ws > max_local_ws)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]