aub_stream interfaces update

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2021-02-16 10:20:34 +00:00
committed by Compute-Runtime-Automation
parent 6dd0f0c728
commit 584da13ff8
11 changed files with 110 additions and 35 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2020 Intel Corporation
* Copyright (C) 2019-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -10,6 +10,8 @@
#include "shared/source/aub_mem_dump/aub_mem_dump.h"
#include "shared/source/memory_manager/graphics_allocation.h"
#include "third_party/aub_stream/headers/allocation_params.h"
#include <algorithm>
namespace NEO {
@@ -25,12 +27,12 @@ MemoryOperationsStatus AubMemoryOperationsHandler::makeResident(Device *device,
auto lock = acquireLock(resourcesLock);
int hint = AubMemDump::DataTypeHintValues::TraceNotype;
for (const auto &allocation : gfxAllocations) {
aubManager->writeMemory(allocation->getGpuAddress(),
allocation->getUnderlyingBuffer(),
allocation->getUnderlyingBufferSize(),
allocation->storageInfo.getMemoryBanks(),
hint,
allocation->getUsedPageSize());
aubManager->writeMemory2({allocation->getGpuAddress(),
allocation->getUnderlyingBuffer(),
allocation->getUnderlyingBufferSize(),
allocation->storageInfo.getMemoryBanks(),
hint,
allocation->getUsedPageSize()});
residentAllocations.push_back(allocation);
}
return MemoryOperationsStatus::SUCCESS;