mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
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:
committed by
Compute-Runtime-Automation
parent
d3c78a5011
commit
31f97717db
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user