Add helper function stub to get number of cache regions
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
parent
e88ef75c57
commit
ca84fdd64a
|
@ -1210,3 +1210,8 @@ TEST_F(HwHelperTest, whenGettingDefaultRevisionIdThenCorrectValueIsReturned) {
|
|||
EXPECT_EQ(0u, revisionId);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_F(HwHelperTest, whenGettingNumberOfCacheRegionsThenReturnZero) {
|
||||
auto &hwHelper = HwHelper::get(renderCoreFamily);
|
||||
EXPECT_EQ(0u, hwHelper.getNumCacheRegions(*defaultHwInfo));
|
||||
}
|
||||
|
|
|
@ -133,6 +133,7 @@ class HwHelper {
|
|||
virtual bool isKmdMigrationSupported(const HardwareInfo &hwInfo) const = 0;
|
||||
virtual aub_stream::MMIOList getExtraMmioList(const HardwareInfo &hwInfo) const = 0;
|
||||
virtual uint32_t getDefaultRevisionId(const HardwareInfo &hwInfo) const = 0;
|
||||
virtual uint32_t getNumCacheRegions(const HardwareInfo &hwInfo) const = 0;
|
||||
|
||||
static uint32_t getSubDevicesCount(const HardwareInfo *pHwInfo);
|
||||
static uint32_t getEnginesCount(const HardwareInfo &hwInfo);
|
||||
|
@ -338,6 +339,8 @@ class HwHelperHw : public HwHelper {
|
|||
|
||||
uint32_t getDefaultRevisionId(const HardwareInfo &hwInfo) const override;
|
||||
|
||||
uint32_t getNumCacheRegions(const HardwareInfo &hwInfo) const override;
|
||||
|
||||
protected:
|
||||
LocalMemoryAccessMode getDefaultLocalMemoryAccessMode(const HardwareInfo &hwInfo) const override;
|
||||
|
||||
|
|
|
@ -544,4 +544,9 @@ uint32_t HwHelperHw<GfxFamily>::getDefaultRevisionId(const HardwareInfo &hwInfo)
|
|||
return 0u;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
uint32_t HwHelperHw<GfxFamily>::getNumCacheRegions(const HardwareInfo &hwInfo) const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
|
Loading…
Reference in New Issue