mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add multiGraphicsAllocation to CSR
Related-To: NEO-5508 Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
7fdbf4f6ef
commit
4abe4a96b8
@ -139,7 +139,7 @@ GraphicsAllocation *MemoryManager::createPaddedAllocation(GraphicsAllocation *in
|
||||
return allocateGraphicsMemoryWithProperties({inputGraphicsAllocation->getRootDeviceIndex(), sizeWithPadding, GraphicsAllocation::AllocationType::INTERNAL_HOST_MEMORY, systemMemoryBitfield});
|
||||
}
|
||||
|
||||
void *MemoryManager::createMultiGraphicsAllocation(std::vector<uint32_t> &rootDeviceIndices, AllocationProperties &properties, MultiGraphicsAllocation &multiGraphicsAllocation) {
|
||||
void *MemoryManager::createMultiGraphicsAllocationInSystemMemoryPool(std::vector<uint32_t> &rootDeviceIndices, AllocationProperties &properties, MultiGraphicsAllocation &multiGraphicsAllocation) {
|
||||
void *ptr = nullptr;
|
||||
|
||||
for (auto &rootDeviceIndex : rootDeviceIndices) {
|
||||
@ -152,7 +152,7 @@ void *MemoryManager::createMultiGraphicsAllocation(std::vector<uint32_t> &rootDe
|
||||
return nullptr;
|
||||
}
|
||||
multiGraphicsAllocation.addAllocation(graphicsAllocation);
|
||||
ptr = reinterpret_cast<void *>(graphicsAllocation->getGpuAddress());
|
||||
ptr = reinterpret_cast<void *>(graphicsAllocation->getUnderlyingBuffer());
|
||||
} else {
|
||||
properties.flags.allocateMemory = false;
|
||||
properties.flags.isUSMHostAllocation = true;
|
||||
|
Reference in New Issue
Block a user