2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2020-02-05 16:07:52 +01:00
|
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-21 15:35:08 +01:00
|
|
|
#include "core/command_stream/command_stream_receiver.h"
|
2020-02-06 18:57:00 +01:00
|
|
|
#include "core/device/device.h"
|
2020-02-05 16:07:52 +01:00
|
|
|
#include "core/memory_manager/surface.h"
|
2020-02-22 09:28:27 +01:00
|
|
|
|
|
|
|
|
#include "command_queue/command_queue_hw.h"
|
|
|
|
|
#include "event/event.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2017-12-21 00:45:38 +01:00
|
|
|
#include <new>
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
|
template <typename GfxFamily>
|
|
|
|
|
cl_int CommandQueueHw<GfxFamily>::enqueueBarrierWithWaitList(
|
|
|
|
|
cl_uint numEventsInWaitList,
|
|
|
|
|
const cl_event *eventWaitList,
|
|
|
|
|
cl_event *event) {
|
|
|
|
|
NullSurface s;
|
|
|
|
|
Surface *surfaces[] = {&s};
|
|
|
|
|
enqueueHandler<CL_COMMAND_BARRIER>(surfaces,
|
|
|
|
|
false,
|
2019-02-22 13:22:06 +01:00
|
|
|
MultiDispatchInfo(),
|
2017-12-21 00:45:38 +01:00
|
|
|
numEventsInWaitList,
|
|
|
|
|
eventWaitList,
|
|
|
|
|
event);
|
|
|
|
|
return CL_SUCCESS;
|
|
|
|
|
}
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|