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:
Jose Lopez
2026-01-20 18:02:26 +00:00
committed by GitHub
parent 5af0e74ef4
commit 584f27afd4
9 changed files with 662 additions and 673 deletions

View File

@@ -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