mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
fix: Add new debug sip kernel type for heapless
Related-to: NEO-7979 Signed-off-by: Brandon Yates <brandon.yates@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
48dc0a823d
commit
7f0a0ae034
@@ -15,6 +15,7 @@
|
||||
#include "shared/source/execution_environment/execution_environment.h"
|
||||
#include "shared/source/execution_environment/root_device_environment.h"
|
||||
#include "shared/source/helpers/aligned_memory.h"
|
||||
#include "shared/source/helpers/compiler_product_helper.h"
|
||||
#include "shared/source/helpers/debug_helpers.h"
|
||||
#include "shared/source/helpers/gfx_core_helper.h"
|
||||
#include "shared/source/helpers/hw_info.h"
|
||||
@@ -122,7 +123,12 @@ size_t SipKernel::getStateSaveAreaSize(Device *device) const {
|
||||
|
||||
SipKernelType SipKernel::getSipKernelType(Device &device) {
|
||||
if (device.getDebugger() != nullptr) {
|
||||
return SipKernelType::dbgBindless;
|
||||
auto &compilerProductHelper = device.getRootDeviceEnvironment().getHelper<CompilerProductHelper>();
|
||||
if (compilerProductHelper.isHeaplessModeEnabled()) {
|
||||
return SipKernelType::dbgHeapless;
|
||||
} else {
|
||||
return SipKernelType::dbgBindless;
|
||||
}
|
||||
}
|
||||
bool debuggingEnabled = device.getDebugger() != nullptr;
|
||||
return getSipKernelType(device, debuggingEnabled);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2023 Intel Corporation
|
||||
* Copyright (C) 2020-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -16,6 +16,7 @@ enum class SipKernelType : std::uint32_t {
|
||||
dbgCsr,
|
||||
dbgCsrLocal,
|
||||
dbgBindless,
|
||||
dbgHeapless,
|
||||
count
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user