projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6db776f
)
fix stereobm crash on some cpu ocl
author
yao
<bitwangyaoyao@gmail.com>
Tue, 25 Jun 2013 06:12:02 +0000
(14:12 +0800)
committer
yao
<bitwangyaoyao@gmail.com>
Tue, 25 Jun 2013 06:12:02 +0000
(14:12 +0800)
modules/ocl/src/opencl/stereobm.cl
patch
|
blob
|
history
diff --git
a/modules/ocl/src/opencl/stereobm.cl
b/modules/ocl/src/opencl/stereobm.cl
index
bd86a7f
..
552874d
100644
(file)
--- a/
modules/ocl/src/opencl/stereobm.cl
+++ b/
modules/ocl/src/opencl/stereobm.cl
@@
-162,8
+162,8
@@
__kernel void stereoKernel(__global unsigned char *left, __global unsigned char
int y_tex;
int x_tex = X - radius;
- if (x_tex >= cwidth)
- return;
+
//
if (x_tex >= cwidth)
+
//
return;
for(int d = STEREO_MIND; d < maxdisp; d += STEREO_DISP_STEP)
{