mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Move AllocationProperties::noDeviceSpecified to SubDevice
Change-Id: Idfc1efa4e39168ca32b613201aac8ccd0aa3219a Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
61b6d5248d
commit
026d1324a4
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user