mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-26 08:49:02 +00:00
Fix release call in AHB image read test (#2548)
Ensure clEnqueueReleaseExternalMemObjectsKHR targets imported_image instead of the non-external opencl_image, matching the prior acquire call. Signed-off-by: Xin Jin <xin.jin@arm.com>
This commit is contained in:
@@ -394,7 +394,7 @@ REGISTER_TEST(test_images_read)
|
|||||||
test_error(err, "clEnqueueNDRangeKernel failed");
|
test_error(err, "clEnqueueNDRangeKernel failed");
|
||||||
|
|
||||||
err = clEnqueueReleaseExternalMemObjectsKHR(
|
err = clEnqueueReleaseExternalMemObjectsKHR(
|
||||||
queue, 1, &opencl_image, 0, nullptr, nullptr);
|
queue, 1, &imported_image, 0, nullptr, nullptr);
|
||||||
test_error(err, "clEnqueueReleaseExternalMemObjectsKHR failed");
|
test_error(err, "clEnqueueReleaseExternalMemObjectsKHR failed");
|
||||||
|
|
||||||
// Read buffer and verify
|
// Read buffer and verify
|
||||||
|
|||||||
Reference in New Issue
Block a user