1
1
/*
2
- * Copyright (C) 2017-2018 Intel Corporation
2
+ * Copyright (C) 2017-2019 Intel Corporation
3
3
*
4
4
* SPDX-License-Identifier: MIT
5
5
*
@@ -155,18 +155,18 @@ __global IGIL_KernelData* IGIL_GetKernelData( __global IGIL_KernelDataHeader* pK
155
155
}
156
156
157
157
158
- inline __global IGIL_CommandHeader * TEMP_IGIL_GetCommandHeader ( queue_t q , uint offset )
158
+ inline __global IGIL_CommandHeader * TEMP_IGIL_GetCommandHeader ( __global IGIL_CommandQueue * q , uint offset )
159
159
{
160
- __global uchar * pQueueRaw = __builtin_astype ( q , __global uchar * ) ;
160
+ __global uchar * pQueueRaw = ( __global uchar * ) q ;
161
161
162
162
__global IGIL_CommandHeader * pCommand = ( __global IGIL_CommandHeader * )( pQueueRaw + offset );
163
163
164
164
return pCommand ;
165
165
}
166
166
//Make sure enough command packets are in command queue before calling this function.
167
- __global IGIL_CommandHeader * TEMP_IGIL_GetNthCommandHeader ( queue_t q , uint initialOffset , uint number )
167
+ __global IGIL_CommandHeader * TEMP_IGIL_GetNthCommandHeader ( __global IGIL_CommandQueue * q , uint initialOffset , uint number )
168
168
{
169
- __global uchar * pQueueRaw = __builtin_astype ( q , __global uchar * ) ;
169
+ __global uchar * pQueueRaw = ( __global uchar * ) q ;
170
170
171
171
__global IGIL_CommandHeader * pCommand = ( __global IGIL_CommandHeader * )( pQueueRaw + initialOffset );
172
172
uint Offset = initialOffset ;
@@ -182,9 +182,9 @@ __global IGIL_CommandHeader* TEMP_IGIL_GetNthCommandHeader( queue_t q, uint init
182
182
}
183
183
184
184
//Make sure enough command packets are in command queue before calling this function.
185
- uint TEMP_IGIL_GetNthCommandHeaderOffset ( queue_t q , uint initialOffset , uint number )
185
+ uint TEMP_IGIL_GetNthCommandHeaderOffset ( __global IGIL_CommandQueue * q , uint initialOffset , uint number )
186
186
{
187
- __global uchar * pQueueRaw = __builtin_astype ( q , __global uchar * ) ;
187
+ __global uchar * pQueueRaw = ( __global uchar * ) q ;
188
188
189
189
__global IGIL_CommandHeader * pCommand = ( __global IGIL_CommandHeader * )( pQueueRaw + initialOffset );
190
190
uint Offset = initialOffset ;
@@ -2878,13 +2878,13 @@ void SchedulerParallel20(
2878
2878
{
2879
2879
if ( CurrentPacket == GroupID )
2880
2880
{
2881
- offset = TEMP_IGIL_GetNthCommandHeaderOffset ( __builtin_astype ( pQueue , queue_t ) , InitialOffset , CurrentPacket );
2881
+ offset = TEMP_IGIL_GetNthCommandHeaderOffset ( pQueue , InitialOffset , CurrentPacket );
2882
2882
}
2883
2883
else
2884
2884
{
2885
- offset = TEMP_IGIL_GetNthCommandHeaderOffset ( __builtin_astype ( pQueue , queue_t ) , offset , get_num_groups ( 0 ) );
2885
+ offset = TEMP_IGIL_GetNthCommandHeaderOffset ( pQueue , offset , get_num_groups ( 0 ) );
2886
2886
}
2887
- pCommand = TEMP_IGIL_GetCommandHeader ( __builtin_astype ( pQueue , queue_t ) , offset );
2887
+ pCommand = TEMP_IGIL_GetCommandHeader ( pQueue , offset );
2888
2888
2889
2889
//Initialize command packet with proper lws
2890
2890
if ( get_local_id ( 0 ) == 0 )
0 commit comments