File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ void khrIcdVendorAdd(const char *libraryName)
159
159
KHR_ICD_TRACE ("found icd 2 object, but platform is missing clIcdSetPlatformDispatchDataKHR\n" );
160
160
continue ;
161
161
}
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 ))
163
163
{
164
164
KHR_ICD_TRACE ("found icd 2 object, but platform is missing tag in clUnloadCompiler\n" );
165
165
continue ;
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ struct KHRDisp
74
74
};
75
75
76
76
#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)
78
78
79
79
#define KHR_ICD2_DISPATCH (object ) \
80
80
(KHR_ICD2_HAS_TAG(object) ? \
You can’t perform that action at this time.
0 commit comments