Extend an allocation properties constructor

Related-To: NEO-2998

Signed-off-by Jobczyk, Lukasz <lukasz.jobczyk@intel.com>

Change-Id: Ia2a99ff3bae574cc0cc40a973a30bdca126fe12d
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
Jobczyk, Lukasz
2019-11-06 18:46:42 +01:00
committed by sys_ocldev
parent 80407aec15
commit 7b7ac67e47
7 changed files with 26 additions and 24 deletions

View File

@@ -30,9 +30,9 @@ struct AllocationProperties {
size_t alignment = 0;
GraphicsAllocation::AllocationType allocationType = GraphicsAllocation::AllocationType::UNKNOWN;
ImageInfo *imgInfo = nullptr;
bool multiStorageResource = false;
uint32_t subDeviceIndex = AllocationProperties::noDeviceSpecified;
uint32_t rootDeviceIndex = AllocationProperties::noDeviceSpecified;
bool multiStorageResource = false;
AllocationProperties(size_t size,
GraphicsAllocation::AllocationType allocationType)
@@ -49,19 +49,16 @@ struct AllocationProperties {
size_t size,
GraphicsAllocation::AllocationType allocationType,
bool isMultiStorageAllocation)
: AllocationProperties(allocateMemory, size, allocationType, false, AllocationProperties::noDeviceSpecified, AllocationProperties::noDeviceSpecified) {
this->multiStorageResource = isMultiStorageAllocation;
}
: AllocationProperties(allocateMemory, size, allocationType, false, isMultiStorageAllocation, AllocationProperties::noDeviceSpecified, AllocationProperties::noDeviceSpecified) {}
AllocationProperties(bool allocateMemory,
size_t size,
GraphicsAllocation::AllocationType allocationType,
bool multiOsContextCapable,
bool isMultiStorageAllocation,
uint32_t subDeviceIndex,
uint32_t rootDeviceIndex)
: size(size), allocationType(allocationType) {
this->subDeviceIndex = subDeviceIndex;
this->rootDeviceIndex = rootDeviceIndex;
: size(size), allocationType(allocationType), multiStorageResource(isMultiStorageAllocation), subDeviceIndex(subDeviceIndex), rootDeviceIndex(rootDeviceIndex) {
allFlags = 0;
flags.flushL3RequiredForRead = 1;
flags.flushL3RequiredForWrite = 1;