mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
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:
committed by
sys_ocldev
parent
80407aec15
commit
7b7ac67e47
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user