Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonique Dewanchand <m.dewanchand@atmind.nl>2012-07-11 00:46:42 +0400
committerMonique Dewanchand <m.dewanchand@atmind.nl>2012-07-11 00:46:42 +0400
commit315698543bfc675a0432b006a2fb94b4ed27b576 (patch)
tree5e113bcfab107e53c5637b20402a9f72a9b7dbea /source/blender/compositor/operations/COM_BokehBlurOperation.cpp
parent9c464ee2bbdca6bfbb18624a62452179677f27a9 (diff)
Fix for issue [#31981] for tiles opencl:
initialize radius with correct value
Diffstat (limited to 'source/blender/compositor/operations/COM_BokehBlurOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_BokehBlurOperation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_BokehBlurOperation.cpp b/source/blender/compositor/operations/COM_BokehBlurOperation.cpp
index a425e406884..a0cc8df826a 100644
--- a/source/blender/compositor/operations/COM_BokehBlurOperation.cpp
+++ b/source/blender/compositor/operations/COM_BokehBlurOperation.cpp
@@ -47,10 +47,8 @@ BokehBlurOperation::BokehBlurOperation() : NodeOperation()
void *BokehBlurOperation::initializeTileData(rcti *rect, MemoryBuffer **memoryBuffers)
{
- //void *buffer = getInputOperation(0)->initializeTileData(NULL, memoryBuffers);
lockMutex();
if (!this->m_sizeavailable) {
- //updateGauss(memoryBuffers);
updateSize(memoryBuffers);
}
void *buffer = getInputOperation(0)->initializeTileData(NULL, memoryBuffers);
@@ -197,7 +195,9 @@ void BokehBlurOperation::executeOpenCL(OpenCLDevice* device,
list<cl_kernel> *clKernelsToCleanUp)
{
cl_kernel kernel = device->COM_clCreateKernel("bokehBlurKernel", NULL);
-
+ if (!this->m_sizeavailable) {
+ updateSize(inputMemoryBuffers);
+ }
cl_int radius = this->getWidth() * this->m_size / 100.0f;
cl_int step = this->getStep();