Lines Matching refs:nativeEvent

28 void CheckCreateEvent(cl_int errorCode, cl_event nativeEvent, CLEventImpl::CreateFunc *createFunc)  in CheckCreateEvent()  argument
32 *createFunc = [nativeEvent](const cl::Event &event) { in CheckCreateEvent()
33 return CLEventImpl::Ptr(new CLEventCL(event, nativeEvent)); in CheckCreateEvent()
85 cl_event nativeEvent = nullptr; in enqueueReadBuffer() local
86 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueReadBuffer()
92 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueReadBuffer()
109 cl_event nativeEvent = nullptr; in enqueueWriteBuffer() local
110 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueWriteBuffer()
116 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueWriteBuffer()
138 cl_event nativeEvent = nullptr; in enqueueReadBufferRect() local
139 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueReadBufferRect()
146 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueReadBufferRect()
168 cl_event nativeEvent = nullptr; in enqueueWriteBufferRect() local
169 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueWriteBufferRect()
176 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueWriteBufferRect()
193 cl_event nativeEvent = nullptr; in enqueueCopyBuffer() local
194 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueCopyBuffer()
200 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueCopyBuffer()
221 cl_event nativeEvent = nullptr; in enqueueCopyBufferRect() local
222 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueCopyBufferRect()
228 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueCopyBufferRect()
244 cl_event nativeEvent = nullptr; in enqueueFillBuffer() local
245 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueFillBuffer()
251 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueFillBuffer()
269 cl_event nativeEvent = nullptr; in enqueueMapBuffer() local
270 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueMapBuffer()
276 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueMapBuffer()
295 cl_event nativeEvent = nullptr; in enqueueReadImage() local
296 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueReadImage()
302 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueReadImage()
321 cl_event nativeEvent = nullptr; in enqueueWriteImage() local
322 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueWriteImage()
328 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueWriteImage()
345 cl_event nativeEvent = nullptr; in enqueueCopyImage() local
346 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueCopyImage()
352 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueCopyImage()
367 cl_event nativeEvent = nullptr; in enqueueFillImage() local
368 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueFillImage()
374 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueFillImage()
391 cl_event nativeEvent = nullptr; in enqueueCopyImageToBuffer() local
392 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueCopyImageToBuffer()
398 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueCopyImageToBuffer()
415 cl_event nativeEvent = nullptr; in enqueueCopyBufferToImage() local
416 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueCopyBufferToImage()
422 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueCopyBufferToImage()
442 cl_event nativeEvent = nullptr; in enqueueMapImage() local
443 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueMapImage()
457 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueMapImage()
470 cl_event nativeEvent = nullptr; in enqueueUnmapMemObject() local
471 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueUnmapMemObject()
476 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueUnmapMemObject()
495 cl_event nativeEvent = nullptr; in enqueueMigrateMemObjects() local
496 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueMigrateMemObjects()
502 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueMigrateMemObjects()
518 cl_event nativeEvent = nullptr; in enqueueNDRangeKernel() local
519 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueNDRangeKernel()
525 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueNDRangeKernel()
537 cl_event nativeEvent = nullptr; in enqueueTask() local
538 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueTask()
543 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueTask()
592 cl_event nativeEvent = nullptr; in enqueueNativeKernel() local
593 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueNativeKernel()
599 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueNativeKernel()
609 cl_event nativeEvent = nullptr; in enqueueMarkerWithWaitList() local
610 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueMarkerWithWaitList()
615 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueMarkerWithWaitList()
621 cl_event nativeEvent = nullptr; in enqueueMarker() local
623 const cl_int errorCode = mNative->getDispatch().clEnqueueMarker(mNative, &nativeEvent); in enqueueMarker()
627 eventCreateFunc = [nativeEvent](const cl::Event &event) { in enqueueMarker()
628 return CLEventImpl::Ptr(new CLEventCL(event, nativeEvent)); in enqueueMarker()
648 cl_event nativeEvent = nullptr; in enqueueBarrierWithWaitList() local
649 cl_event *const nativeEventPtr = eventCreateFunc != nullptr ? &nativeEvent : nullptr; in enqueueBarrierWithWaitList()
654 CheckCreateEvent(errorCode, nativeEvent, eventCreateFunc); in enqueueBarrierWithWaitList()