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:
aab6f6c
)
Disable OpenCL version of minMaxIdx with mask on AMD devices
author
vbystricky
<user@user-pc.(none)>
Thu, 14 Aug 2014 13:39:41 +0000
(17:39 +0400)
committer
vbystricky
<user@user-pc.(none)>
Thu, 14 Aug 2014 13:39:41 +0000
(17:39 +0400)
modules/core/src/stat.cpp
patch
|
blob
|
history
diff --git
a/modules/core/src/stat.cpp
b/modules/core/src/stat.cpp
index
f3b6b9a
..
51154a4
100644
(file)
--- a/
modules/core/src/stat.cpp
+++ b/
modules/core/src/stat.cpp
@@
-1446,6
+1446,9
@@
static bool ocl_minMaxIdx( InputArray _src, double* minVal, double* maxVal, int*
int type = _src.type(), depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type),
kercn = haveMask ? cn : std::min(4, ocl::predictOptimalVectorWidth(_src, _src2));
+ if (haveMask && dev.isAMD())
+ return false;
+
CV_Assert( (cn == 1 && (!haveMask || _mask.type() == CV_8U)) ||
(cn >= 1 && !minLoc && !maxLoc) );