2018-09-05 15:17:52 +02:00
|
|
|
/*
|
2019-01-10 13:57:40 +01:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2018-09-18 09:11:08 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
2018-09-05 15:17:52 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
2019-03-25 13:21:48 +01:00
|
|
|
#include "engine_limits.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2019-03-04 14:50:26 +01:00
|
|
|
#include <array>
|
2019-03-25 13:21:48 +01:00
|
|
|
#include <cstdint>
|
2019-03-04 14:50:26 +01:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2018-09-07 07:18:38 +02:00
|
|
|
|
2018-09-05 15:17:52 +02:00
|
|
|
struct ResidencyData {
|
2019-03-25 13:21:48 +01:00
|
|
|
bool resident[maxOsContextCount] = {};
|
2018-09-07 07:18:38 +02:00
|
|
|
|
2018-10-22 16:43:20 +02:00
|
|
|
void updateCompletionData(uint64_t newFenceValue, uint32_t contextId);
|
2018-09-07 07:18:38 +02:00
|
|
|
uint64_t getFenceValueForContextId(uint32_t contextId);
|
|
|
|
|
|
|
|
|
|
protected:
|
2019-03-04 14:50:26 +01:00
|
|
|
std::array<uint64_t, maxOsContextCount> lastFenceValues = {};
|
2018-09-05 15:17:52 +02:00
|
|
|
};
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|