Add zeMemGetAllocProperties extension for sub-allocations

Signed-off-by: John Falkowski <john.falkowski@intel.com>
This commit is contained in:
John Falkowski
2023-03-16 18:55:02 +00:00
committed by Compute-Runtime-Automation
parent a65de57e33
commit a1e2eca9e8
6 changed files with 203 additions and 0 deletions

View File

@@ -280,6 +280,9 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
constexpr static TaskCountType objectAlwaysResident = std::numeric_limits<TaskCountType>::max() - 1;
std::atomic<uint32_t> hostPtrTaskCountAssignment{0};
bool isShareableHostMemory = false;
bool isSubAllocSet = false;
StackVec<size_t, EngineLimits::maxHandleCount> subAllocSize;
StackVec<uint64_t, EngineLimits::maxHandleCount> subAllocBase;
protected:
struct UsageInfo {