mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 19:32:25 +08:00
This decoupling is needed to move makeResidentResidencyAllocations into WddmResidencyController, where we have only contextId, not the context itself Change-Id: I0d79f1dc7a51fa6b1d713deb6e9003aa2b7be1d4 Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
25 lines
492 B
C++
25 lines
492 B
C++
/*
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include <cinttypes>
|
|
#include <vector>
|
|
namespace OCLRT {
|
|
|
|
struct ResidencyData {
|
|
ResidencyData() = default;
|
|
~ResidencyData() = default;
|
|
bool resident = false;
|
|
|
|
void updateCompletionData(uint64_t newFenceValue, uint32_t contextId);
|
|
uint64_t getFenceValueForContextId(uint32_t contextId);
|
|
|
|
protected:
|
|
std::vector<uint64_t> lastFenceValues;
|
|
};
|
|
} // namespace OCLRT
|