[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48819] trunk/blender/source/blender/ compositor/operations/COM_BokehBlurOperation.cpp: Fix for issue [#31981] for tiles opencl:

Monique Dewanchand m.dewanchand at atmind.nl
Tue Jul 10 22:46:43 CEST 2012


Revision: 48819
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48819
Author:   mdewanchand
Date:     2012-07-10 20:46:42 +0000 (Tue, 10 Jul 2012)
Log Message:
-----------
Fix for issue [#31981] for tiles opencl:
initialize radius with correct value

Modified Paths:
--------------
    trunk/blender/source/blender/compositor/operations/COM_BokehBlurOperation.cpp

Modified: trunk/blender/source/blender/compositor/operations/COM_BokehBlurOperation.cpp
===================================================================
--- trunk/blender/source/blender/compositor/operations/COM_BokehBlurOperation.cpp	2012-07-10 20:44:25 UTC (rev 48818)
+++ trunk/blender/source/blender/compositor/operations/COM_BokehBlurOperation.cpp	2012-07-10 20:46:42 UTC (rev 48819)
@@ -47,10 +47,8 @@
 
 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 @@
                                        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();
 	




More information about the Bf-blender-cvs mailing list