still trying to fix failure in opencv_test_imgproc

This commit is contained in:
Vadim Pisarevsky 2013-12-02 13:46:54 +04:00
parent 7626a8e8de
commit 5fea17ff0d
2 changed files with 4 additions and 4 deletions

View File

@ -2268,8 +2268,8 @@ bool Kernel::run(int dims, size_t _globalsize[], size_t _localsize[],
CV_Assert(_globalsize != 0);
for (int i = 0; i < dims; i++)
{
size_t val = _localsize ? _localsize[i] :
dims == 1 ? 64 : dims == 2 ? (16>>i) : dims == 3 ? (8>>(int)(i>0)) : 1;
size_t val = _localsize ? _localsize[i] : 1;
//dims == 1 ? 64 : dims == 2 ? (16>>i) : dims == 3 ? (8>>(int)(i>0)) : 1;
CV_Assert( val > 0 );
total *= _globalsize[i];
globalsize[i] = ((_globalsize[i] + val - 1)/val)*val;

View File

@ -286,8 +286,8 @@ void UMat::copySize(const UMat& m)
UMat::~UMat()
{
if( u && u->refcount > 0 )
u->currAllocator->sync(u);
//if( u && u->refcount > 0 )
// u->currAllocator->sync(u);
release();
if( step.p != step.buf )
fastFree(step.p);