Program debug commands for DebuggerL0

Related-To: NEO-4547, NEO-4549

Change-Id: Idf9139190a85aae7ec52de7a1899a46123809e63
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2020-06-22 17:13:30 +02:00
committed by sys_ocldev
parent f5e9abae3d
commit 15b91c4d45
7 changed files with 179 additions and 9 deletions

View File

@@ -333,8 +333,10 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
latestSentStatelessMocsConfig = mocsIndex;
}
bool sourceLevelDebuggerActive = device.getSourceLevelDebugger() != nullptr ? true : false;
//Reprogram state base address if required
if (isStateBaseAddressDirty || device.isDebuggerActive()) {
if (isStateBaseAddressDirty || sourceLevelDebuggerActive) {
addPipeControlBeforeStateBaseAddress(commandStreamCSR);
programAdditionalPipelineSelect(commandStreamCSR, dispatchFlags.pipelineSelectArgs, true);
@@ -436,7 +438,7 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
makeResident(*preemptionAllocation);
}
if (dispatchFlags.preemptionMode == PreemptionMode::MidThread || device.isDebuggerActive()) {
if (dispatchFlags.preemptionMode == PreemptionMode::MidThread || sourceLevelDebuggerActive) {
makeResident(*SipKernel::getSipKernelAllocation(device));
if (debugSurface) {
makeResident(*debugSurface);