Move residency to the core dir

Related-To: NEO-3677

Change-Id: Ib4aaa7dcfc46d9bb515c4881ddb6adb974990ca9
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
Jobczyk, Lukasz
2019-09-10 08:18:43 +02:00
committed by sys_ocldev
parent 523d2af942
commit fab659f4a9
5 changed files with 4 additions and 4 deletions

View File

@ -40,8 +40,6 @@ set(RUNTIME_SRCS_MEMORY_MANAGER
${CMAKE_CURRENT_SOURCE_DIR}/page_table.h
${CMAKE_CURRENT_SOURCE_DIR}/page_table.inl
${CMAKE_CURRENT_SOURCE_DIR}/physical_address_allocator.h
${CMAKE_CURRENT_SOURCE_DIR}/residency.h
${CMAKE_CURRENT_SOURCE_DIR}/residency.cpp
${CMAKE_CURRENT_SOURCE_DIR}/residency_container.h
${CMAKE_CURRENT_SOURCE_DIR}/surface.h
${CMAKE_CURRENT_SOURCE_DIR}/unified_memory_manager.cpp

View File

@ -6,7 +6,7 @@
*/
#pragma once
#include "runtime/memory_manager/residency.h"
#include "core/memory_manager/residency.h"
#include <cinttypes>
#include <cstdlib>

View File

@ -1,18 +0,0 @@
/*
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/memory_manager/residency.h"
using namespace NEO;
void ResidencyData::updateCompletionData(uint64_t newFenceValue, uint32_t contextId) {
lastFenceValues[contextId] = newFenceValue;
}
uint64_t ResidencyData::getFenceValueForContextId(uint32_t contextId) {
return lastFenceValues[contextId];
}

View File

@ -1,25 +0,0 @@
/*
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "engine_limits.h"
#include <array>
#include <cstdint>
namespace NEO {
struct ResidencyData {
bool resident[maxOsContextCount] = {};
void updateCompletionData(uint64_t newFenceValue, uint32_t contextId);
uint64_t getFenceValueForContextId(uint32_t contextId);
protected:
std::array<uint64_t, maxOsContextCount> lastFenceValues = {};
};
} // namespace NEO