Refactor L0 mock enablers

- add l0_libult target that groups all enablers
- enhance aub fixture - add debugging mode

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2022-02-28 13:21:16 +00:00
committed by Compute-Runtime-Automation
parent 9bc364e7a7
commit a73d3612ce
13 changed files with 59 additions and 22 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -115,6 +115,20 @@ class AUBFixture : public CommandQueueHwFixture {
}
}
template <typename FamilyType>
void expectMMIO(uint32_t mmioRegister, uint32_t expectedValue) {
CommandStreamReceiver *csrtemp = csr;
if (testMode == TestMode::AubTestsWithTbx) {
csrtemp = static_cast<CommandStreamReceiverWithAUBDump<TbxCommandStreamReceiverHw<FamilyType>> *>(csr)->aubCSR.get();
}
if (csrtemp) {
// Write our pseudo-op to the AUB file
auto aubCsr = static_cast<AUBCommandStreamReceiverHw<FamilyType> *>(csrtemp);
aubCsr->expectMMIO(mmioRegister, expectedValue);
}
}
template <typename FamilyType>
void expectNotEqualMemory(void *gfxAddress, const void *srcAddress, size_t length) {
CommandStreamReceiverSimulatedCommonHw<FamilyType> *csrSimulated = getSimulatedCsr<FamilyType>();