refactor: command container tests

Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska
2024-05-09 13:38:31 +00:00
committed by Compute-Runtime-Automation
parent 5052d4ac4b
commit 02e2a13c84
3 changed files with 14 additions and 7 deletions

View File

@@ -1335,7 +1335,10 @@ HWTEST2_F(CommandListCreate, givenStateBaseAddressTrackingStateWhenCommandListCr
auto &commandContainer = commandList->getCmdContainer();
auto sshSize = commandContainer.getIndirectHeap(NEO::IndirectHeapType::surfaceState)->getMaxAvailableSpace();
EXPECT_EQ(NEO::HeapSize::defaultHeapSize, sshSize);
auto &gfxCoreHelper = device->getGfxCoreHelper();
auto &productHelper = device->getProductHelper();
auto expectedSshSize = gfxCoreHelper.getDefaultSshSize(productHelper);
EXPECT_EQ(expectedSshSize, sshSize);
}
{
debugManager.flags.EnableStateBaseAddressTracking.set(1);