diff --git a/shared/source/command_stream/command_stream_receiver.cpp b/shared/source/command_stream/command_stream_receiver.cpp index df346d43a1..58b7367fb5 100644 --- a/shared/source/command_stream/command_stream_receiver.cpp +++ b/shared/source/command_stream/command_stream_receiver.cpp @@ -284,12 +284,12 @@ void CommandStreamReceiver::setTagAllocation(GraphicsAllocation *allocation) { reinterpret_cast(allocation->getUnderlyingBuffer()) + debugPauseStateAddressOffset); } -MultiGraphicsAllocation &CommandStreamReceiver::createTagsMultiAllocation(ExecutionEnvironment &executionEnvironment, MemoryManager &memoryManager, uint32_t currentRootDeviceIndex) { +MultiGraphicsAllocation &CommandStreamReceiver::createTagsMultiAllocation() { std::vector rootDeviceIndices; - for (auto index = 0u; index < executionEnvironment.rootDeviceEnvironments.size(); index++) { - if (executionEnvironment.rootDeviceEnvironments[index].get()->getHardwareInfo()->platform.eProductFamily == - executionEnvironment.rootDeviceEnvironments[currentRootDeviceIndex].get()->getHardwareInfo()->platform.eProductFamily) { + for (auto index = 0u; index < this->executionEnvironment.rootDeviceEnvironments.size(); index++) { + if (this->executionEnvironment.rootDeviceEnvironments[index].get()->getHardwareInfo()->platform.eProductFamily == + this->executionEnvironment.rootDeviceEnvironments[this->rootDeviceIndex].get()->getHardwareInfo()->platform.eProductFamily) { rootDeviceIndices.push_back(index); } } @@ -299,7 +299,7 @@ MultiGraphicsAllocation &CommandStreamReceiver::createTagsMultiAllocation(Execut AllocationProperties unifiedMemoryProperties{rootDeviceIndices.at(0), MemoryConstants::pageSize, GraphicsAllocation::AllocationType::TAG_BUFFER, systemMemoryBitfield}; - memoryManager.createMultiGraphicsAllocationInSystemMemoryPool(rootDeviceIndices, unifiedMemoryProperties, *allocations); + this->getMemoryManager()->createMultiGraphicsAllocationInSystemMemoryPool(rootDeviceIndices, unifiedMemoryProperties, *allocations); return *allocations; } @@ -496,7 +496,7 @@ void *CommandStreamReceiver::asyncDebugBreakConfirmation(void *arg) { } bool CommandStreamReceiver::initializeTagAllocation() { - this->tagsMultiAllocation = &this->createTagsMultiAllocation(this->executionEnvironment, *this->getMemoryManager(), rootDeviceIndex); + this->tagsMultiAllocation = &this->createTagsMultiAllocation(); auto tagAllocation = tagsMultiAllocation->getGraphicsAllocation(rootDeviceIndex); if (!tagAllocation) { diff --git a/shared/source/command_stream/command_stream_receiver.h b/shared/source/command_stream/command_stream_receiver.h index 411a53b2a9..f1736c5c15 100644 --- a/shared/source/command_stream/command_stream_receiver.h +++ b/shared/source/command_stream/command_stream_receiver.h @@ -116,7 +116,7 @@ class CommandStreamReceiver { MultiGraphicsAllocation *getTagsMultiAllocation() const { return tagsMultiAllocation; } - MultiGraphicsAllocation &createTagsMultiAllocation(ExecutionEnvironment &executionEnvironment, MemoryManager &memoryManager, uint32_t currentRootDeviceIndex); + MultiGraphicsAllocation &createTagsMultiAllocation(); MOCKABLE_VIRTUAL volatile uint32_t *getTagAddress() const { return tagAddress; } uint64_t getDebugPauseStateGPUAddress() const { return tagAllocation->getGpuAddress() + debugPauseStateAddressOffset; }