Store residency status for each osContext separately

Change-Id: I2f17f68dcef6db7b596a69579a435b7ccd24e44b
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2018-11-28 11:01:41 +01:00
committed by sys_ocldev
parent 6be8aee45d
commit 1cd59e927a
8 changed files with 97 additions and 86 deletions

View File

@@ -28,7 +28,6 @@ namespace Sharing {
constexpr auto nonSharedResource = 0u;
}
constexpr uint32_t maxOsContextCount = 4u;
class Gmm;
class GraphicsAllocation : public IDNode<GraphicsAllocation> {

View File

@@ -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);