mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Use GraphicsAllocation for blit operation instead of Buffer object
Change-Id: I7e59a25db97082a6396d441a8fa603df27d6424d Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com> Related-To: NEO-3020
This commit is contained in:
committed by
sys_ocldev
parent
83ee99ad3d
commit
41cca6d790
@@ -287,8 +287,9 @@ Buffer *Buffer::create(Context *context,
|
||||
auto blitCommandStreamReceiver = context->getCommandStreamReceiverForBlitOperation(*pBuffer);
|
||||
if (blitCommandStreamReceiver) {
|
||||
auto blitProperties = BlitProperties::constructPropertiesForReadWriteBuffer(BlitterConstants::BlitWithHostPtrDirection::FromHostPtr,
|
||||
pBuffer, hostPtr, true, 0, size);
|
||||
blitCommandStreamReceiver->blitWithHostPtr(blitProperties);
|
||||
*blitCommandStreamReceiver, memory,
|
||||
hostPtr, true, 0, size);
|
||||
blitCommandStreamReceiver->blitBuffer(blitProperties);
|
||||
} 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