From e7c93f972c5b73d068c4f466733ca79c2ff551ad Mon Sep 17 00:00:00 2001 From: Brice Videau Date: Tue, 28 Nov 2023 14:36:38 -0600 Subject: [PATCH] New symbols should be queried through the library. --- loader/icd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loader/icd.c b/loader/icd.c index fd17f5c7..4101e34d 100644 --- a/loader/icd.c +++ b/loader/icd.c @@ -110,8 +110,8 @@ void khrIcdVendorAdd(const char *libraryName) #if KHR_LOADER_MANAGED_DISPATCH // try to get clIcdGetFunctionAddressForPlatformKHR and clIcdSetPlatformDispatchDataKHR to detect cl_khr_icd2 support - p_clIcdGetFunctionAddressForPlatform = (clIcdGetFunctionAddressForPlatformKHR_fn)(size_t)p_clGetExtensionFunctionAddress("clIcdGetFunctionAddressForPlatformKHR"); - p_clIcdSetPlatformDispatchData = (clIcdSetPlatformDispatchDataKHR_fn)(size_t)p_clGetExtensionFunctionAddress("clIcdSetPlatformDispatchDataKHR"); + p_clIcdGetFunctionAddressForPlatform = (clIcdGetFunctionAddressForPlatformKHR_fn)(size_t)khrIcdOsLibraryGetFunctionAddress(library, "clIcdGetFunctionAddressForPlatformKHR"); + p_clIcdSetPlatformDispatchData = (clIcdSetPlatformDispatchDataKHR_fn)(size_t)khrIcdOsLibraryGetFunctionAddress(library, "clIcdSetPlatformDispatchDataKHR"); #endif // query the number of platforms available and allocate space to store them