Create reusable list per immediate cmd list

Related-To: NEO-7361

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2022-11-09 15:47:00 +00:00
committed by Compute-Runtime-Automation
parent 25a5ed0dca
commit aac8754e67
4 changed files with 76 additions and 20 deletions

View File

@@ -1332,7 +1332,7 @@ HWTEST2_F(CreateCommandListXeHpcTest, givenXeHpcPlatformsWhenImmediateCommandLis
EXPECT_EQ(commandListImmediate->isFlushTaskSubmissionEnabled, commandListImmediate->immediateCmdListHeapSharing);
}
HWTEST2_F(CreateCommandListXeHpcTest, whenCreateImmediateCommandListThenAllocationListFilledWithCommandBuffer, IsXeHpcCore) {
HWTEST2_F(CreateCommandListXeHpcTest, whenDestroyImmediateCommandListThenGlobalAllocationListFilledWithCommandBuffer, IsXeHpcCore) {
const ze_command_queue_desc_t desc = {};
bool internalEngine = true;
@@ -1344,6 +1344,7 @@ HWTEST2_F(CreateCommandListXeHpcTest, whenCreateImmediateCommandListThenAllocati
NEO::EngineGroupType::RenderCompute,
returnValue));
ASSERT_NE(nullptr, commandList);
commandList.reset();
EXPECT_FALSE(static_cast<DeviceImp *>(device)->allocationsForReuse->peekIsEmpty());
}