mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
Create method to deduce transfer type
Related-To: NEO-7564 Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
eb002acaa1
commit
d6bfcdb245
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2022 Intel Corporation
|
||||
* Copyright (C) 2019-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -17,6 +17,20 @@ enum InternalMemoryType : uint32_t {
|
||||
SHARED_UNIFIED_MEMORY = 0b1000
|
||||
};
|
||||
|
||||
enum TransferType : uint32_t {
|
||||
HOST_NON_USM_TO_HOST_USM = 0,
|
||||
HOST_NON_USM_TO_DEVICE_USM = 1,
|
||||
HOST_NON_USM_TO_HOST_NON_USM = 2,
|
||||
|
||||
HOST_USM_TO_HOST_USM = 3,
|
||||
HOST_USM_TO_DEVICE_USM = 4,
|
||||
HOST_USM_TO_HOST_NON_USM = 5,
|
||||
|
||||
DEVICE_USM_TO_HOST_USM = 6,
|
||||
DEVICE_USM_TO_DEVICE_USM = 7,
|
||||
DEVICE_USM_TO_HOST_NON_USM = 8
|
||||
};
|
||||
|
||||
struct UnifiedMemoryControls {
|
||||
uint32_t generateMask();
|
||||
bool indirectDeviceAllocationsAllowed = false;
|
||||
|
||||
Reference in New Issue
Block a user