Enhance AUB testing

Change-Id: I45dafca34064ff824c197658051d8ba5c89265f6
This commit is contained in:
hjnapiat 2019-01-16 15:21:00 +01:00 committed by sys_ocldev
parent f7271d2225
commit e22626cb3d
1 changed files with 11 additions and 0 deletions

View File

@ -65,6 +65,17 @@ class AUBCommandStreamFixture : public CommandStreamFixture {
aubCsr->expectMemoryEqual(gfxAddress, srcAddress, length);
}
template <typename FamilyType>
void expectMemoryNotEqual(void *gfxAddress, const void *srcAddress, size_t length) {
CommandStreamReceiver *csr = pCommandStreamReceiver;
if (testMode == TestMode::AubTestsWithTbx) {
csr = reinterpret_cast<CommandStreamReceiverWithAUBDump<TbxCommandStreamReceiverHw<FamilyType>> *>(pCommandStreamReceiver)->aubCSR;
}
auto aubCsr = reinterpret_cast<AUBCommandStreamReceiverHw<FamilyType> *>(csr);
aubCsr->expectMemoryNotEqual(gfxAddress, srcAddress, length);
}
template <typename FamilyType>
void pollForCompletion() {
CommandStreamReceiver *csr = pCommandStreamReceiver;