diff options
author | Victor Oliveira <victormatheus@gmail.com> | 2013-10-27 21:09:42 -0700 |
---|---|---|
committer | Victor Oliveira <victormatheus@gmail.com> | 2013-10-27 21:11:09 -0700 |
commit | 41556d594bd114085d1bcacd4d7ed39a42771d4b (patch) | |
tree | 47cbc8bef15e699fb502691b2916a96efc24c1d4 /opencl | |
parent | 45de478b58764db01e7154e7af66d7276c4db9cd (diff) |
Pocl wasn't able to compile this kernel.
Diffstat (limited to 'opencl')
-rw-r--r-- | opencl/motion-blur-linear.cl | 2 | ||||
-rw-r--r-- | 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 7c948955..88befafe 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 e3db14f9..050286fc 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" ; |