mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
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:
committed by
Compute-Runtime-Automation
parent
0002eb3fcc
commit
d3541a8149
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user