fix: don't abort in clearCommandsToPatch with CwImplicitArgsScratch

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>

Related-To: NEO-11874
Related-To: HSD-18039321798
Related-To: HSD-18039443985
Related-To: HSD-18039321794
This commit is contained in:
Kamil Kopryk
2024-08-06 00:47:50 +00:00
committed by Compute-Runtime-Automation
parent 0002eb3fcc
commit d3541a8149
2 changed files with 6 additions and 0 deletions

View File

@@ -3313,6 +3313,7 @@ void CommandListCoreFamily<gfxCoreFamily>::clearCommandsToPatch() {
UNRECOVERABLE_IF(commandToPatch.pCommand == nullptr);
break;
case CommandToPatch::ComputeWalkerInlineDataScratch:
case CommandToPatch::ComputeWalkerImplicitArgsScratch:
break;
default:
UNRECOVERABLE_IF(true);

View File

@@ -1483,6 +1483,11 @@ HWTEST2_F(CommandListCreate, givenNonEmptyCommandsToPatchWhenClearCommandsToPatc
pCommandList->commandsToPatch.push_back(commandToPatch);
EXPECT_NO_THROW(pCommandList->clearCommandsToPatch());
EXPECT_TRUE(pCommandList->commandsToPatch.empty());
pCommandList->commandsToPatch.clear();
commandToPatch.type = CommandToPatch::ComputeWalkerImplicitArgsScratch;
pCommandList->commandsToPatch.push_back(commandToPatch);
EXPECT_NO_THROW(pCommandList->clearCommandsToPatch());
}
template <NEO::AllocationType allocType>