diff --git a/modules/core/perf/opencl/perf_channels.cpp b/modules/core/perf/opencl/perf_channels.cpp index 958bb73b5def5b131af9d2b50a8d9a452003b110..4856ed4c397981f2c6036997a6a3e920ddf9a833 100644 --- a/modules/core/perf/opencl/perf_channels.cpp +++ b/modules/core/perf/opencl/perf_channels.cpp @@ -137,10 +137,13 @@ OCL_PERF_TEST_P(MixChannelsFixture, MixChannels, checkDeviceMaxMemoryAllocSize(srcSize, type); - UMat templ(srcSize, type); - std::vector src(n, templ), dst(n, templ); + std::vector src(n), dst(n); for (int i = 0; i < n; ++i) + { + src[i] = UMat(srcSize, type); + dst[i] = UMat(srcSize, type); declare.in(src[i], WARMUP_RNG).out(dst[i]); + } int fromTo[] = { 1,2, 2,0, 0,3, 3,1 };