mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
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:
committed by
Compute-Runtime-Automation
parent
66c19c7749
commit
e056082710
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user