mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-22 19:29:06 +08:00
feature: add support for query l3 bank count in xe-prelim
Related-To: NEO-11125 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ce122fb1fa
commit
bc5237ca8a
@@ -12,6 +12,8 @@
|
||||
using namespace NEO;
|
||||
|
||||
struct MockIoctlHelperXe : IoctlHelperXe {
|
||||
static const uint16_t mockL3BankTopologyType = 0x100;
|
||||
|
||||
using IoctlHelperXe::bindInfo;
|
||||
using IoctlHelperXe::contextParamEngine;
|
||||
using IoctlHelperXe::defaultEngine;
|
||||
@@ -54,6 +56,14 @@ struct MockIoctlHelperXe : IoctlHelperXe {
|
||||
}
|
||||
return IoctlHelperXe::ioctl(fd, request, arg);
|
||||
}
|
||||
bool isL3BankTopologyType(uint16_t topologyType) const override {
|
||||
if (isL3BankTopologyTypeCallBase) {
|
||||
return IoctlHelperXe::isL3BankTopologyType(topologyType);
|
||||
}
|
||||
return topologyType == mockL3BankTopologyType;
|
||||
}
|
||||
|
||||
bool isL3BankTopologyTypeCallBase = true;
|
||||
bool failPerfDisable = false;
|
||||
bool failPerfEnable = false;
|
||||
bool failPerfOpen = false;
|
||||
|
||||
Reference in New Issue
Block a user