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:
Xin Jin
2025-10-21 18:40:35 +01:00
committed by GitHub
parent a1d8c3e419
commit 79d98433cc

View File

@@ -394,7 +394,7 @@ REGISTER_TEST(test_images_read)
test_error(err, "clEnqueueNDRangeKernel failed");
err = clEnqueueReleaseExternalMemObjectsKHR(
queue, 1, &opencl_image, 0, nullptr, nullptr);
queue, 1, &imported_image, 0, nullptr, nullptr);
test_error(err, "clEnqueueReleaseExternalMemObjectsKHR failed");
// Read buffer and verify