diff --git a/test_conformance/images/clCopyImage/test_copy_generic.cpp b/test_conformance/images/clCopyImage/test_copy_generic.cpp index 3bd1b6ef..3e0b60d9 100644 --- a/test_conformance/images/clCopyImage/test_copy_generic.cpp +++ b/test_conformance/images/clCopyImage/test_copy_generic.cpp @@ -289,12 +289,6 @@ cl_mem create_image( cl_context context, cl_command_queue queue, BufferOwningPtr return img; } -// WARNING -- not thread safe -BufferOwningPtr srcData; -BufferOwningPtr dstData; -BufferOwningPtr srcHost; -BufferOwningPtr dstHost; - int test_copy_image_generic( cl_context context, cl_command_queue queue, image_descriptor *srcImageInfo, image_descriptor *dstImageInfo, const size_t sourcePos[], const size_t destPos[], const size_t regionSize[], MTdata d ) { @@ -302,6 +296,11 @@ int test_copy_image_generic( cl_context context, cl_command_queue queue, image_d clMemWrapper srcImage, dstImage; + BufferOwningPtr srcData; + BufferOwningPtr dstData; + BufferOwningPtr srcHost; + BufferOwningPtr dstHost; + if( gDebugTrace ) log_info( " ++ Entering inner test loop...\n" );