Enhance AUB testing
Change-Id: I45dafca34064ff824c197658051d8ba5c89265f6
This commit is contained in:
parent
f7271d2225
commit
e22626cb3d
|
@ -65,6 +65,17 @@ class AUBCommandStreamFixture : public CommandStreamFixture {
|
||||||
aubCsr->expectMemoryEqual(gfxAddress, srcAddress, length);
|
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>
|
template <typename FamilyType>
|
||||||
void pollForCompletion() {
|
void pollForCompletion() {
|
||||||
CommandStreamReceiver *csr = pCommandStreamReceiver;
|
CommandStreamReceiver *csr = pCommandStreamReceiver;
|
||||||
|
|
Loading…
Reference in New Issue