Skip to content

Commit 79d9843

Browse files
authored
Fix release call in AHB image read test (KhronosGroup#2548)
Ensure clEnqueueReleaseExternalMemObjectsKHR targets imported_image instead of the non-external opencl_image, matching the prior acquire call. Signed-off-by: Xin Jin <[email protected]>
1 parent a1d8c3e commit 79d9843

File tree

1 file changed

+1
-1
lines changed
  • test_conformance/extensions/cl_khr_external_memory_ahb

1 file changed

+1
-1
lines changed

test_conformance/extensions/cl_khr_external_memory_ahb/test_ahb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ REGISTER_TEST(test_images_read)
394394
test_error(err, "clEnqueueNDRangeKernel failed");
395395

396396
err = clEnqueueReleaseExternalMemObjectsKHR(
397-
queue, 1, &opencl_image, 0, nullptr, nullptr);
397+
queue, 1, &imported_image, 0, nullptr, nullptr);
398398
test_error(err, "clEnqueueReleaseExternalMemObjectsKHR failed");
399399

400400
// Read buffer and verify

0 commit comments

Comments
 (0)