mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 17:13:29 +08:00
Related-To: NEO-3677 Change-Id: Ib36d24e8e6f0605033cfbc79afea45e85a058aad Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
19 lines
411 B
C++
19 lines
411 B
C++
/*
|
|
* 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];
|
|
}
|