mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
Updating files modified in 2018 only. Older files remain with old style copyright header Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
32 lines
651 B
C++
32 lines
651 B
C++
/*
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include <cinttypes>
|
|
#include <vector>
|
|
namespace OCLRT {
|
|
class OsContext;
|
|
|
|
struct FenceData {
|
|
uint64_t lastFence = 0;
|
|
OsContext *osContext = nullptr;
|
|
};
|
|
|
|
struct ResidencyData {
|
|
ResidencyData() = default;
|
|
~ResidencyData() = default;
|
|
bool resident = false;
|
|
|
|
void updateCompletionData(uint64_t newFenceValue, OsContext *context);
|
|
uint64_t getFenceValueForContextId(uint32_t contextId);
|
|
OsContext *getOsContextFromId(uint32_t contextId);
|
|
|
|
protected:
|
|
std::vector<FenceData> completionData;
|
|
};
|
|
} // namespace OCLRT
|