2020-01-22 23:22:30 +08:00
|
|
|
/*
|
2023-01-20 00:11:39 +08:00
|
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
2020-01-22 23:22:30 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/command_stream/csr_deps.h"
|
2020-01-22 23:22:30 +08:00
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/helpers/timestamp_packet.h"
|
2020-01-22 23:22:30 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
void CsrDependencies::makeResident(CommandStreamReceiver &commandStreamReceiver) const {
|
2021-03-11 21:48:04 +08:00
|
|
|
for (auto ×tampPacketContainer : timestampPacketContainer) {
|
2020-01-22 23:22:30 +08:00
|
|
|
timestampPacketContainer->makeResident(commandStreamReceiver);
|
|
|
|
}
|
2023-02-13 23:24:53 +08:00
|
|
|
for (auto ×tampPacketContainer : multiRootTimeStampSyncContainer) {
|
|
|
|
timestampPacketContainer->makeResident(commandStreamReceiver);
|
|
|
|
}
|
2020-01-22 23:22:30 +08:00
|
|
|
}
|
2022-05-11 22:34:38 +08:00
|
|
|
|
|
|
|
void CsrDependencies::copyNodesToNewContainer(TimestampPacketContainer &newTimestampPacketContainer) {
|
|
|
|
for (auto ×tampPacketContainer : timestampPacketContainer) {
|
|
|
|
newTimestampPacketContainer.assignAndIncrementNodesRefCounts(*timestampPacketContainer);
|
|
|
|
}
|
|
|
|
}
|
2023-01-20 00:11:39 +08:00
|
|
|
void CsrDependencies::copyRootDeviceSyncNodesToNewContainer(TimestampPacketContainer &newTimestampPacketContainer) {
|
|
|
|
for (auto ×tampPacketContainer : multiRootTimeStampSyncContainer) {
|
|
|
|
newTimestampPacketContainer.assignAndIncrementNodesRefCounts(*timestampPacketContainer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-22 23:22:30 +08:00
|
|
|
} // namespace NEO
|