Replace virtual method call for DC flush with stored bool value 1/n

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2022-10-11 10:37:19 +00:00
committed by Compute-Runtime-Automation
parent d3c78a5011
commit 31f97717db
18 changed files with 60 additions and 32 deletions

View File

@@ -2199,3 +2199,12 @@ HWTEST2_F(CommandStreamReceiverHwTest, givenSshHeapNotProvidedWhenFlushTaskPerfo
itorCmd = find<_3DSTATE_BINDING_TABLE_POOL_ALLOC *>(commands.begin(), commands.end());
EXPECT_EQ(commands.end(), itorCmd);
}
HWTEST_F(CommandStreamReceiverHwTest, givenDcFlushFlagSetWhenGettingCsrFlagValueThenCsrValueMatchesHelperValue) {
auto &hwInfo = pDevice->getHardwareInfo();
auto &commandStreamReceiver = pDevice->getUltCommandStreamReceiver<FamilyType>();
bool csrValue = commandStreamReceiver.getDcFlushSupport();
bool helperValue = MemorySynchronizationCommands<FamilyType>::getDcFlushEnable(true, hwInfo);
EXPECT_EQ(helperValue, csrValue);
}