core(OpenCL): fix lifetime handling of Image kernel args#19334
core(OpenCL): fix lifetime handling of Image kernel args#19334opencv-pushbot merged 1 commit intoopencv:3.4from
Conversation
|
/cc @diablodale |
|
👍 |
|
This pull request has a bug that severely limits the number of kernel arguments. The intent of the code seems to be limiting the number of image arguments to
As a result of this pull request, previously working code now fails at |
|
Would you write a test case that demonstrates that fail? |
|
Here is the test that triggers the exception: https://github.com/rasmus25/opencv/commit/0365be4877d5f9428b72b58d5b32bdc8abaff9e1 MAX_ARRS is 16, but the test reaches that limit already with 4 arrays. |
Keep Image instance alive while it is used in Kernel's argument.
resolves #19134
relates #2621
replaces #19135