File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ void khrIcdVendorAdd(const char *libraryName)
159159 KHR_ICD_TRACE ("found icd 2 object, but platform is missing clIcdSetPlatformDispatchDataKHR\n" );
160160 continue ;
161161 }
162- if (KHR_ICD2_HAS_TAG (platforms [i ]) && !(( intptr_t )(( platforms [i ]) -> dispatch -> clUnloadCompiler ) == CL_ICD2_TAG_KHR ))
162+ if (KHR_ICD2_HAS_TAG (platforms [i ]) && !(platforms [i ]-> dispatch -> clUnloadCompiler_icd2_tag == CL_ICD2_TAG_KHR ))
163163 {
164164 KHR_ICD_TRACE ("found icd 2 object, but platform is missing tag in clUnloadCompiler\n" );
165165 continue ;
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ struct KHRDisp
7474};
7575
7676#define KHR_ICD2_HAS_TAG (object ) \
77- (((intptr_t)(( object)->dispatch->clGetPlatformIDs)) == CL_ICD2_TAG_KHR)
77+ ((object)->dispatch->clGetPlatformIDs_icd2_tag == CL_ICD2_TAG_KHR)
7878
7979#define KHR_ICD2_DISPATCH (object ) \
8080(KHR_ICD2_HAS_TAG(object) ? \
You can’t perform that action at this time.
0 commit comments