fix for own error with opencl bokeh blur.

This commit is contained in:
Campbell Barton
2012-08-11 18:47:09 +00:00
parent df1dd658c9
commit 823083a744
2 changed files with 2 additions and 2 deletions

View File

@@ -727,7 +727,6 @@ macro(set_lib_path
endmacro()
# TODO, create a C binary and call it instead!, doing this in cmake its slow
macro(data_to_c
file_from file_to
list_to_add)
@@ -744,6 +743,7 @@ macro(data_to_c
unset(_file_to_path)
endmacro()
# same as above but generates the var name and output automatic.
macro(data_to_c_simple
file_from

View File

@@ -78,7 +78,7 @@ __kernel void bokehBlurKernel(__read_only image2d_t boundingBox, __read_only ima
__kernel void defocusKernel(__read_only image2d_t inputImage, __read_only image2d_t bokehImage,
__read_only image2d_t inputSize,
__write_only image2d_t output, int2 offsetInput, int2 offsetOutput,
int step, int maxBlurScalar, float threshold, int2 dimension, int2 offset, float scalar)
int step, int maxBlurScalar, float threshold, float scalar, int2 dimension, int2 offset)
{
float4 color = {1.0f, 0.0f, 0.0f, 1.0f};
int2 coords = {get_global_id(0), get_global_id(1)};