2018-09-05 21:17:52 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2019-2021 Intel Corporation
|
2018-09-18 15:11:08 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
2018-09-05 21:17:52 +08:00
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/memory_manager/residency.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
using namespace NEO;
|
2018-09-05 21:17:52 +08:00
|
|
|
|
2018-10-22 22:43:20 +08:00
|
|
|
void ResidencyData::updateCompletionData(uint64_t newFenceValue, uint32_t contextId) {
|
|
|
|
lastFenceValues[contextId] = newFenceValue;
|
2018-09-07 13:18:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
uint64_t ResidencyData::getFenceValueForContextId(uint32_t contextId) {
|
2018-10-22 22:43:20 +08:00
|
|
|
return lastFenceValues[contextId];
|
2018-09-05 21:17:52 +08:00
|
|
|
}
|