mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Dates corrected in copyright headers to reflect original publication date (2018 for OpenCL, 2020 for Level Zero). Signed-off-by: lgotszal <lukasz.gotszald@intel.com>
26 lines
595 B
C++
26 lines
595 B
C++
/*
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/utilities/stackvec.h"
|
|
|
|
#include <vector>
|
|
|
|
namespace NEO {
|
|
|
|
struct ResidencyData {
|
|
ResidencyData(size_t maxOsContextCount) : resident(maxOsContextCount, 0), lastFenceValues(static_cast<size_t>(maxOsContextCount)) {}
|
|
std::vector<bool> resident;
|
|
|
|
void updateCompletionData(uint64_t newFenceValue, uint32_t contextId);
|
|
uint64_t getFenceValueForContextId(uint32_t contextId);
|
|
|
|
protected:
|
|
StackVec<uint64_t, 32> lastFenceValues;
|
|
};
|
|
} // namespace NEO
|