mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
ocl: disable Laplacian5 and sepFilter2D_SinglePass kernels for AMD OpenCL
This commit is contained in:
parent
0c07836fba
commit
fad3a6bf15
@ -558,6 +558,7 @@ static bool ocl_Laplacian5(InputArray _src, OutputArray _dst,
|
||||
) &&
|
||||
(tileSizeX * tileSizeYmin <= wgs) &&
|
||||
(LAPLACIAN_LOCAL_MEM(tileSizeX, tileSizeYmin, kernelX.cols, loc_mem_cn * 4) <= lmsz)
|
||||
&& OCL_PERFORMANCE_CHECK(!dev.isAMD()) // TODO FIXIT 2018: Problem with AMDGPU on Linux (2482.3)
|
||||
)
|
||||
{
|
||||
Size size = _src.size(), wholeSize;
|
||||
|
@ -4391,7 +4391,7 @@ bool ocl_sepFilter2D( InputArray _src, OutputArray _dst, int ddepth,
|
||||
imgSize.height > optimizedSepFilterLocalHeight + anchor.y &&
|
||||
(!(borderType & BORDER_ISOLATED) || _src.offset() == 0) &&
|
||||
anchor == Point(kernelX.cols >> 1, kernelY.cols >> 1) &&
|
||||
(d.isIntel() || (d.isAMD() && !d.hostUnifiedMemory())),
|
||||
OCL_PERFORMANCE_CHECK(d.isIntel()), // TODO FIXIT
|
||||
ocl_sepFilter2D_SinglePass(_src, _dst, kernelX, kernelY, delta,
|
||||
borderType & ~BORDER_ISOLATED, ddepth, bdepth, int_arithm), true)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user