mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
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:
committed by
sys_ocldev
parent
9c42183cd8
commit
73ca617bd3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user