Move AllocationProperties::noDeviceSpecified to SubDevice

Change-Id: Idfc1efa4e39168ca32b613201aac8ccd0aa3219a
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2019-11-25 11:33:02 +01:00
committed by sys_ocldev
parent 61b6d5248d
commit 026d1324a4
4 changed files with 7 additions and 5 deletions

View File

@@ -7,11 +7,11 @@
#pragma once
#include "core/memory_manager/graphics_allocation.h"
#include "runtime/device/sub_device.h"
namespace NEO {
struct ImageInfo;
struct AllocationProperties {
constexpr static uint32_t noDeviceSpecified = std::numeric_limits<uint32_t>::max();
union {
struct {
uint32_t allocateMemory : 1;
@@ -32,7 +32,7 @@ struct AllocationProperties {
GraphicsAllocation::AllocationType allocationType = GraphicsAllocation::AllocationType::UNKNOWN;
ImageInfo *imgInfo = nullptr;
bool multiStorageResource = false;
uint32_t subDeviceIndex = AllocationProperties::noDeviceSpecified;
uint32_t subDeviceIndex = SubDevice::unspecifiedSubDeviceIndex;
AllocationProperties(uint32_t rootDeviceIndex, size_t size,
GraphicsAllocation::AllocationType allocationType)
@@ -50,7 +50,7 @@ struct AllocationProperties {
size_t size,
GraphicsAllocation::AllocationType allocationType,
bool isMultiStorageAllocation)
: AllocationProperties(rootDeviceIndex, allocateMemory, size, allocationType, false, isMultiStorageAllocation, AllocationProperties::noDeviceSpecified) {}
: AllocationProperties(rootDeviceIndex, allocateMemory, size, allocationType, false, isMultiStorageAllocation, SubDevice::unspecifiedSubDeviceIndex) {}
AllocationProperties(uint32_t rootDeviceIndexParam,
bool allocateMemoryParam,