mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:11:16 +08:00
Enable memory transfer in enqueueFillBuffer
Related-To: NEO-4589 Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
239f37da64
commit
801affde66
@@ -33,6 +33,10 @@ cl_int CommandQueueHw<GfxFamily>::enqueueFillBuffer(
|
||||
auto memoryManager = getDevice().getMemoryManager();
|
||||
DEBUG_BREAK_IF(nullptr == memoryManager);
|
||||
|
||||
auto rootDeviceIndex = getDevice().getRootDeviceIndex();
|
||||
|
||||
buffer->getMigrateableMultiGraphicsAllocation().ensureMemoryOnDevice(*getDevice().getMemoryManager(), rootDeviceIndex);
|
||||
|
||||
auto patternAllocation = memoryManager->allocateGraphicsMemoryWithProperties({getDevice().getRootDeviceIndex(), alignUp(patternSize, MemoryConstants::cacheLineSize), GraphicsAllocation::AllocationType::FILL_PATTERN, getDevice().getDeviceBitfield()});
|
||||
|
||||
if (patternSize == 1) {
|
||||
|
||||
Reference in New Issue
Block a user