2019-01-25 17:20:32 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2020-2021 Intel Corporation
|
2019-01-25 17:20:32 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/utilities/stackvec.h"
|
2019-01-25 17:20:32 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2019-01-25 17:20:32 +08:00
|
|
|
|
|
|
|
class TimestampPacketContainer;
|
|
|
|
class CommandStreamReceiver;
|
|
|
|
|
2021-03-11 21:48:04 +08:00
|
|
|
class CsrDependencies {
|
2019-01-25 17:20:32 +08:00
|
|
|
public:
|
|
|
|
enum class DependenciesType {
|
|
|
|
OnCsr,
|
2019-06-12 17:07:37 +08:00
|
|
|
OutOfCsr,
|
|
|
|
All
|
2019-01-25 17:20:32 +08:00
|
|
|
};
|
|
|
|
|
2021-03-11 21:48:04 +08:00
|
|
|
StackVec<std::pair<uint32_t, uint64_t>, 32> taskCountContainer;
|
|
|
|
StackVec<TimestampPacketContainer *, 32> timestampPacketContainer;
|
|
|
|
|
2019-09-04 17:34:23 +08:00
|
|
|
void makeResident(CommandStreamReceiver &commandStreamReceiver) const;
|
2019-01-25 17:20:32 +08:00
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|