SWDEV-311271 - Add dependency tracking for streams
Mempool has capability to track dependency between streams for faster memory reuse. Enable that capability. Change-Id: I28266a7e38d0fc4c5d027b9542d3719653840821
Этот коммит содержится в:
@@ -127,6 +127,15 @@ void Device::RemoveStreamFromPools(Stream* stream) {
|
||||
}
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
void Device::AddSafeStream(Stream* event_stream, Stream* wait_stream) {
|
||||
amd::ScopedLock lock(lock_);
|
||||
// Update all pools with the safe streams
|
||||
for (auto it : mem_pools_) {
|
||||
it->AddSafeStream(event_stream, wait_stream);
|
||||
}
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
void Device::Reset() {
|
||||
{
|
||||
|
||||
Ссылка в новой задаче
Block a user