mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 07:00:17 +08:00
Related-To: NEO-3677 Change-Id: Ib4aaa7dcfc46d9bb515c4881ddb6adb974990ca9 Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
19 lines
408 B
C++
19 lines
408 B
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "core/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];
|
|
}
|