From 5f0cb00f40ffe045df720e3465da8f5efd58e233 Mon Sep 17 00:00:00 2001 From: Marcin Hajder Date: Tue, 9 Apr 2024 15:38:55 +0200 Subject: [PATCH] Correction for extected macro argument --- .../extensions/cl_khr_semaphore/test_semaphores.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/test_conformance/extensions/cl_khr_semaphore/test_semaphores.cpp b/test_conformance/extensions/cl_khr_semaphore/test_semaphores.cpp index 3d2ccdb165..101eb7c0ee 100644 --- a/test_conformance/extensions/cl_khr_semaphore/test_semaphores.cpp +++ b/test_conformance/extensions/cl_khr_semaphore/test_semaphores.cpp @@ -673,14 +673,8 @@ int test_semaphores_queries(cl_device_id deviceID, cl_context context, // Confirm that querying CL_SEMAPHORE_PROPERTIES_KHR returns the same // properties the semaphore was created with - size_t size; - err = clGetSemaphoreInfoKHR(sema, CL_SEMAPHORE_PROPERTIES_KHR, 0, nullptr, - &size); - test_error(err, "Unable to get CL_SEMAPHORE_PROPERTIES_KHR from semaphore"); - - SEMAPHORE_PARAM_TEST_ARRAY( - CL_SEMAPHORE_PROPERTIES_KHR, cl_semaphore_properties_khr, - size / sizeof(cl_semaphore_properties_khr), sema_props); + SEMAPHORE_PARAM_TEST_ARRAY(CL_SEMAPHORE_PROPERTIES_KHR, + cl_semaphore_properties_khr, 5, sema_props); // Confirm that querying CL_SEMAPHORE_PAYLOAD_KHR returns the unsignaled // state