mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Change-Id: I18692a444663c11103f8991415b38000c633f24a Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
26 lines
494 B
C++
26 lines
494 B
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "engine_limits.h"
|
|
|
|
#include <array>
|
|
#include <cstdint>
|
|
|
|
namespace OCLRT {
|
|
|
|
struct ResidencyData {
|
|
bool resident[maxOsContextCount] = {};
|
|
|
|
void updateCompletionData(uint64_t newFenceValue, uint32_t contextId);
|
|
uint64_t getFenceValueForContextId(uint32_t contextId);
|
|
|
|
protected:
|
|
std::array<uint64_t, maxOsContextCount> lastFenceValues = {};
|
|
};
|
|
} // namespace OCLRT
|