Remove unneeded swap in Buffer for MultiGraphicsAllocation

Mem_obj is connected with MultiGraphicsAllocation swap is no longer needed

Related-To: NEO-4672
Change-Id: I4484caf17770efdfca8e5b57b5637743663076c4
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
Krzysztof Gibala
2020-07-22 14:11:33 +02:00
committed by sys_ocldev
parent 9c42183cd8
commit 73ca617bd3
2 changed files with 18 additions and 3 deletions

View File

@@ -637,9 +637,6 @@ Buffer *Buffer::createBufferHwFromDevice(const Device *device,
auto pBuffer = funcCreate(nullptr, memoryProperties, flags, flagsIntel, size, memoryStorage, hostPtr, multiGraphicsAllocation,
zeroCopy, isHostPtrSVM, isImageRedescribed);
if (!multiGraphicsAllocation.getDefaultGraphicsAllocation()) {
std::swap(pBuffer->multiGraphicsAllocation, multiGraphicsAllocation);
}
pBuffer->offset = offset;
pBuffer->executionEnvironment = device->getExecutionEnvironment();
return pBuffer;