mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
Kernel Source Level debugger support 4/n
- adding DebugSurface allocation and setup
- unit tests refactors:
- mock kernel with kernel debug option
- separating fixtures to headers
- added helper for getting internal-options kernels
filenames
Change-Id: I7b6f4d46e2ab7cff0da8d5212483f44ae0d4be31
This commit is contained in:
committed by
sys_ocldev
parent
7b1fd38fe6
commit
7f32eb06d1
@@ -169,6 +169,11 @@ void CommandStreamReceiver::cleanupResources() {
|
||||
scratchAllocation = nullptr;
|
||||
}
|
||||
|
||||
if (debugSurface) {
|
||||
memoryManager->freeGraphicsMemory(debugSurface);
|
||||
debugSurface = nullptr;
|
||||
}
|
||||
|
||||
if (commandStream.getCpuBase()) {
|
||||
memoryManager->freeGraphicsMemory(commandStream.getGraphicsAllocation());
|
||||
commandStream.replaceGraphicsAllocation(nullptr);
|
||||
@@ -220,4 +225,10 @@ void CommandStreamReceiver::initializeInstructionHeapCmdStreamReceiverReservedBl
|
||||
return PreemptionHelper::initializeInstructionHeapSipKernelReservedBlock(ih, *memoryManager->device);
|
||||
}
|
||||
|
||||
GraphicsAllocation *CommandStreamReceiver::allocateDebugSurface(size_t size) {
|
||||
UNRECOVERABLE_IF(debugSurface != nullptr);
|
||||
debugSurface = memoryManager->allocateGraphicsMemory(size);
|
||||
return debugSurface;
|
||||
}
|
||||
|
||||
} // namespace OCLRT
|
||||
|
||||
Reference in New Issue
Block a user