mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 12:11:31 +08:00
refactor: correct variable namings
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9e3a8bdf1b
commit
36194c4e7d
@@ -15,7 +15,7 @@
|
||||
#include "level_zero/tools/source/debug/linux/debug_session_factory.h"
|
||||
|
||||
namespace L0 {
|
||||
DebugSessionLinuxAllocatorFn DebugSessionLinuxFactory[DEBUG_SESSION_LINUX_TYPE_MAX] = {};
|
||||
DebugSessionLinuxAllocatorFn debugSessionLinuxFactory[DEBUG_SESSION_LINUX_TYPE_MAX] = {};
|
||||
|
||||
DebugSession *DebugSession::create(const zet_debug_config_t &config, Device *device, ze_result_t &result, bool isRootAttach) {
|
||||
|
||||
@@ -28,9 +28,9 @@ DebugSession *DebugSession::create(const zet_debug_config_t &config, Device *dev
|
||||
|
||||
DebugSessionLinuxAllocatorFn allocator = nullptr;
|
||||
if ("xe" == drmVersion) {
|
||||
allocator = DebugSessionLinuxFactory[DEBUG_SESSION_LINUX_TYPE_XE];
|
||||
allocator = debugSessionLinuxFactory[DEBUG_SESSION_LINUX_TYPE_XE];
|
||||
} else {
|
||||
allocator = DebugSessionLinuxFactory[DEBUG_SESSION_LINUX_TYPE_I915];
|
||||
allocator = debugSessionLinuxFactory[DEBUG_SESSION_LINUX_TYPE_I915];
|
||||
}
|
||||
if (!allocator) {
|
||||
result = ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
|
||||
|
||||
@@ -16,12 +16,12 @@ enum DebugSessionLinuxType {
|
||||
};
|
||||
|
||||
using DebugSessionLinuxAllocatorFn = DebugSession *(*)(const zet_debug_config_t &, Device *, ze_result_t &, bool);
|
||||
extern DebugSessionLinuxAllocatorFn DebugSessionLinuxFactory[];
|
||||
extern DebugSessionLinuxAllocatorFn debugSessionLinuxFactory[];
|
||||
|
||||
template <uint32_t driverType, typename DebugSessionType>
|
||||
struct DebugSessionLinuxPopulateFactory {
|
||||
DebugSessionLinuxPopulateFactory() {
|
||||
DebugSessionLinuxFactory[driverType] = DebugSessionType::createLinuxSession;
|
||||
debugSessionLinuxFactory[driverType] = DebugSessionType::createLinuxSession;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user