[gegl] Pocl wasn't able to compile this kernel.



commit 41556d594bd114085d1bcacd4d7ed39a42771d4b
Author: Victor Oliveira <victormatheus gmail com>
Date:   Sun Oct 27 21:09:42 2013 -0700

    Pocl wasn't able to compile this kernel.

 opencl/motion-blur-linear.cl   |    2 +-
 opencl/motion-blur-linear.cl.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/opencl/motion-blur-linear.cl b/opencl/motion-blur-linear.cl
index 7c94895..88befaf 100644
--- a/opencl/motion-blur-linear.cl
+++ b/opencl/motion-blur-linear.cl
@@ -71,5 +71,5 @@ __kernel void motion_blur_linear(const __global float4 *src_buf,
     }
 
     dst_buf[gidy * get_global_size(0) + gidx] =
-        sum / num_steps;
+        sum / (float4)(num_steps);
 }
diff --git a/opencl/motion-blur-linear.cl.h b/opencl/motion-blur-linear.cl.h
index e3db14f..050286f 100644
--- a/opencl/motion-blur-linear.cl.h
+++ b/opencl/motion-blur-linear.cl.h
@@ -72,6 +72,6 @@ static const char* motion_blur_linear_cl_source =
 "    }                                                                         \n"
 "                                                                              \n"
 "    dst_buf[gidy * get_global_size(0) + gidx] =                               \n"
-"        sum / num_steps;                                                      \n"
+"        sum / (float4)(num_steps);                                            \n"
 "}                                                                             \n"
 ;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]