mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
Enqueue Read/Write operations with blitter
- Program dependencies from Event and IOQ - Obtain new TimestampPacket - Update output TimestampPacket if needed Change-Id: I4ad020f5c5b05ceca8b096fafe1257523e2bc343 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com> Related-To: NEO-3020
This commit is contained in:
committed by
sys_ocldev
parent
aae31c3c1b
commit
3e88907201
@@ -18,6 +18,7 @@
|
||||
#include "runtime/helpers/hw_helper.h"
|
||||
#include "runtime/helpers/hw_info.h"
|
||||
#include "runtime/helpers/string.h"
|
||||
#include "runtime/helpers/timestamp_packet.h"
|
||||
#include "runtime/helpers/validators.h"
|
||||
#include "runtime/mem_obj/mem_obj_helper.h"
|
||||
#include "runtime/memory_manager/host_ptr_manager.h"
|
||||
@@ -286,8 +287,9 @@ Buffer *Buffer::create(Context *context,
|
||||
auto blitCommandStreamReceiver = context->getCommandStreamReceiverForBlitOperation(*pBuffer);
|
||||
if (blitCommandStreamReceiver) {
|
||||
CsrDependencies dependencies;
|
||||
TimestampPacketContainer timestampPacketContainer;
|
||||
blitCommandStreamReceiver->blitWithHostPtr(*pBuffer, hostPtr, true, 0, size, BlitterConstants::BlitWithHostPtrDirection::FromHostPtr,
|
||||
dependencies);
|
||||
dependencies, timestampPacketContainer);
|
||||
} else {
|
||||
auto cmdQ = context->getSpecialQueue();
|
||||
if (CL_SUCCESS != cmdQ->enqueueWriteBuffer(pBuffer, CL_TRUE, 0, size, hostPtr, nullptr, 0, nullptr, nullptr)) {
|
||||
|
||||
Reference in New Issue
Block a user