mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Clean up cl_khr_external_semaphore_dx_fence test (#2580)
Removes the duplicated code from the tests. Improves the Base test class.
This commit is contained in:
@@ -32,5 +32,15 @@
|
||||
} \
|
||||
} while (false)
|
||||
|
||||
#define GET_FUNCTION_EXTENSION_ADDRESS(device, FUNC) \
|
||||
FUNC = \
|
||||
reinterpret_cast<FUNC##_fn>(clGetExtensionFunctionAddressForPlatform( \
|
||||
getPlatformFromDevice(device), #FUNC)); \
|
||||
if (FUNC == nullptr) \
|
||||
{ \
|
||||
log_error("ERROR: clGetExtensionFunctionAddressForPlatform failed" \
|
||||
" with " #FUNC "\n"); \
|
||||
return TEST_FAIL; \
|
||||
}
|
||||
|
||||
#endif // _extensionHelpers_h
|
||||
|
||||
Reference in New Issue
Block a user