mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 07:14:10 +08:00
Store residency status for each osContext separately
Change-Id: I2f17f68dcef6db7b596a69579a435b7ccd24e44b Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
6be8aee45d
commit
1cd59e927a
@@ -28,7 +28,6 @@ namespace Sharing {
|
||||
constexpr auto nonSharedResource = 0u;
|
||||
}
|
||||
|
||||
constexpr uint32_t maxOsContextCount = 4u;
|
||||
class Gmm;
|
||||
|
||||
class GraphicsAllocation : public IDNode<GraphicsAllocation> {
|
||||
|
||||
@@ -10,10 +10,15 @@
|
||||
#include <vector>
|
||||
namespace OCLRT {
|
||||
|
||||
constexpr uint32_t maxOsContextCount = 4u;
|
||||
|
||||
struct ResidencyData {
|
||||
ResidencyData() = default;
|
||||
ResidencyData() {
|
||||
std::fill_n(resident, sizeof(resident), false);
|
||||
}
|
||||
|
||||
~ResidencyData() = default;
|
||||
bool resident = false;
|
||||
bool resident[maxOsContextCount];
|
||||
|
||||
void updateCompletionData(uint64_t newFenceValue, uint32_t contextId);
|
||||
uint64_t getFenceValueForContextId(uint32_t contextId);
|
||||
|
||||
Reference in New Issue
Block a user