Skip to content

Commit 22bbce4

Browse files
Enable Flush task by default for immediate commandlist
Related-To: LOCI-1988 Signed-off-by: Aravind Gopalakrishnan <[email protected]>
1 parent 0c933d8 commit 22bbce4

File tree

4 files changed

+439
-23
lines changed

4 files changed

+439
-23
lines changed

level_zero/core/source/cmdlist/cmdlist_hw.inl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,11 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::initialize(Device *device, NEO
135135
this->partitionCount = static_cast<uint32_t>(this->device->getNEODevice()->getDeviceBitfield().count());
136136
}
137137

138-
if (this->cmdListType == CommandListType::TYPE_IMMEDIATE) {
139-
this->isFlushTaskSubmissionEnabled = NEO::DebugManager.flags.EnableFlushTaskSubmission.get();
138+
if ((this->cmdListType == CommandListType::TYPE_IMMEDIATE) && !(this->internalUsage)) {
139+
this->isFlushTaskSubmissionEnabled = true;
140+
if (!NEO::DebugManager.flags.EnableFlushTaskSubmission.get()) {
141+
this->isFlushTaskSubmissionEnabled = false;
142+
}
140143
commandContainer.setFlushTaskUsedForImmediate(this->isFlushTaskSubmissionEnabled);
141144
}
142145

0 commit comments

Comments
 (0)