Skip to content

Commit 8bae2a8

Browse files
committed
add context property tracing for cl_arm_printf
1 parent 0760d6d commit 8bae2a8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

intercept/src/intercept.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2176,6 +2176,7 @@ void CLIntercept::getContextPropertiesString(
21762176
case CL_CONTEXT_ADAPTER_D3D9EX_KHR:
21772177
case CL_CONTEXT_ADAPTER_DXVA_KHR:
21782178
#endif
2179+
case CL_PRINTF_CALLBACK_ARM:
21792180
{
21802181
const void** pp = (const void**)( properties + 1 );
21812182
const void* value = pp[0];
@@ -2191,6 +2192,14 @@ void CLIntercept::getContextPropertiesString(
21912192
str += enumName().name_bool( value );
21922193
}
21932194
break;
2195+
case CL_PRINTF_BUFFERSIZE_ARM:
2196+
{
2197+
const size_t* psz = (const size_t*)( properties + 1);
2198+
size_t value = psz[0];
2199+
CLI_SPRINTF( s, 256, "%zu", value );
2200+
str += s;
2201+
}
2202+
break;
21942203
case CL_CONTEXT_MEMORY_INITIALIZE_KHR:
21952204
// TODO: this is a cl_context_memory_initialize_khr bitfield.
21962205
// Fall through for now.

0 commit comments

Comments
 (0)