mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Change-Id: I7b2f7733be74abf4ae299396d616b249b67de58e Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
25 lines
580 B
C++
25 lines
580 B
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "runtime/memory_manager/memory_manager.h"
|
|
|
|
#include <vector>
|
|
|
|
namespace NEO {
|
|
|
|
struct ResidencyData {
|
|
std::vector<bool> resident = std::vector<bool>(MemoryManager::maxOsContextCount, 0);
|
|
|
|
void updateCompletionData(uint64_t newFenceValue, uint32_t contextId);
|
|
uint64_t getFenceValueForContextId(uint32_t contextId);
|
|
|
|
protected:
|
|
std::vector<uint64_t> lastFenceValues = std::vector<uint64_t>(MemoryManager::maxOsContextCount, 0);
|
|
};
|
|
} // namespace NEO
|