mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix vulkan subtest for diffCtx and platform/device info (#2046)
Fixes: 1. Multi import diff ctx subtest which acquires/releases external memory via queue not associated with the context in which memory was imported. 2. Platform/Device info subtests to handle different platforms and availability of the query.
This commit is contained in:
@@ -1382,7 +1382,7 @@ int run_test_with_multi_import_diff_ctx(
|
||||
"Failed to set kernel arg");
|
||||
|
||||
err = clEnqueueAcquireExternalMemObjectsKHRptr(
|
||||
cmd_queue1, 1, &buffers2[i][launchIter], 0,
|
||||
cmd_queue2, 1, &buffers2[i][launchIter], 0,
|
||||
nullptr, nullptr);
|
||||
test_error_and_cleanup(err, CLEANUP,
|
||||
"Failed to acquire buffers");
|
||||
@@ -1402,7 +1402,7 @@ int run_test_with_multi_import_diff_ctx(
|
||||
for (int i = 0; i < numBuffers; i++)
|
||||
{
|
||||
err = clEnqueueReleaseExternalMemObjectsKHRptr(
|
||||
cmd_queue1, 1, &buffers2[i][launchIter], 0,
|
||||
cmd_queue2, 1, &buffers2[i][launchIter], 0,
|
||||
nullptr, nullptr);
|
||||
test_error_and_cleanup(err, CLEANUP,
|
||||
"Failed to release buffers");
|
||||
|
||||
Reference in New Issue
Block a user