Fix reservation size

Change-Id: I1cc3d4405b00365908c5915c9d2a1c512d572530
This commit is contained in:
Kamil Diedrich
2020-10-07 14:32:23 +02:00
committed by sys_ocldev
parent a9d0ead3c5
commit 960860e4cb
7 changed files with 25 additions and 3 deletions

View File

@@ -929,5 +929,13 @@ HWTEST2_F(CommandListCreate, givenCopyCommandListWhenTimestampPassedToMemoryCopy
EXPECT_EQ(cmdList.end(), itor);
}
using SupportedPlatforms = IsWithinProducts<IGFX_SKYLAKE, IGFX_DG1>;
HWTEST2_F(CommandListCreate, givenCommandList, SupportedPlatforms) {
MockCommandListHw<gfxCoreFamily> commandList;
commandList.initialize(device, NEO::EngineGroupType::Compute);
auto &helper = NEO::HwHelper::get(commandList.device->getHwInfo().platform.eRenderCoreFamily);
auto size = helper.getRenderSurfaceStateSize();
EXPECT_EQ(commandList.getReserveSshSize(), size);
}
} // namespace ult
} // namespace L0