mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
Compute-Runtime-Automation

parent
9bc364e7a7
commit
a73d3612ce
@ -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>();
|
||||
|
Reference in New Issue
Block a user