mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Source Level Debugger fixes
when SLD is active: - make Sip Kernel Resident - program GPGPU_CSR_BASE_ADDRESS - Disable Preemption - adjust getDebuggerOption input param, value passed has to be at least 2 bytes in size change unit test behaviour accordingly Change-Id: I4ec87d0e8dfcf02437fdeeffc5363314eea5dd07
This commit is contained in:
committed by
sys_ocldev
parent
749d89a9bf
commit
47f1abe543
@@ -168,12 +168,13 @@ bool SourceLevelDebugger::notifySourceCode(const char *source, size_t sourceSize
|
||||
|
||||
bool SourceLevelDebugger::isOptimizationDisabled() const {
|
||||
if (isActive) {
|
||||
char value;
|
||||
const size_t optionValueSize = 4;
|
||||
char value[optionValueSize] = {0};
|
||||
GfxDbgOption option;
|
||||
option.version = IGFXDBG_CURRENT_VERSION;
|
||||
option.optionName = DBG_OPTION_IS_OPTIMIZATION_DISABLED;
|
||||
option.valueLen = sizeof(value);
|
||||
option.value = &value;
|
||||
option.value = &value[0];
|
||||
|
||||
int result = sourceLevelDebuggerInterface->getDebuggerOptionFunc(&option);
|
||||
if (result == 1) {
|
||||
|
||||
Reference in New Issue
Block a user