refactor graphics allocation structure elements for sub-allocation properties

Resolves:  LOCI-3772

Signed-off-by: John Falkowski <john.falkowski@intel.com>
This commit is contained in:
John Falkowski
2023-04-06 22:35:11 +00:00
committed by Compute-Runtime-Automation
parent 66c19c7749
commit e056082710
8 changed files with 70 additions and 53 deletions

View File

@@ -182,6 +182,14 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
virtual void setNumHandles(uint32_t numHandles) {
}
virtual uint64_t getHandleAddressBase(uint32_t handleIndex) {
return 0lu;
}
virtual size_t getHandleSize(uint32_t handleIndex) {
return 0lu;
}
static bool isCpuAccessRequired(AllocationType allocationType) {
return allocationType == AllocationType::COMMAND_BUFFER ||
allocationType == AllocationType::CONSTANT_SURFACE ||
@@ -280,9 +288,6 @@ 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 {