Skip to content

Commit ab23b77

Browse files
authored
add decoding for CL_SEMAPHORE_EXPORT_HANDLE_TYPES (#347)
1 parent e5be25a commit ab23b77

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

intercept/src/intercept.cpp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2533,6 +2533,28 @@ void CLIntercept::getSemaphorePropertiesString(
25332533
str += " }";
25342534
}
25352535
break;
2536+
case CL_SEMAPHORE_EXPORT_HANDLE_TYPES_KHR:
2537+
{
2538+
++properties;
2539+
str += "{ ";
2540+
while( true )
2541+
{
2542+
if( *properties == CL_SEMAPHORE_EXPORT_HANDLE_TYPES_LIST_END_KHR )
2543+
{
2544+
str += "CL_SEMAPHORE_EXPORT_HANDLE_TYPES_LIST_END_KHR";
2545+
properties++;
2546+
break;
2547+
}
2548+
else
2549+
{
2550+
auto pt = (const cl_external_semaphore_handle_type_khr *)properties++;
2551+
str += enumName().name( pt[0] );
2552+
str += ", ";
2553+
}
2554+
}
2555+
str += " }";
2556+
}
2557+
break;
25362558
case CL_SEMAPHORE_HANDLE_OPAQUE_FD_KHR:
25372559
case CL_SEMAPHORE_HANDLE_SYNC_FD_KHR:
25382560
{

0 commit comments

Comments
 (0)