mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
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:
committed by
sys_ocldev
parent
f5e9abae3d
commit
15b91c4d45
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user