refactor: Move isLinearStoragePreferred function from gfx to product helper

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2023-03-15 13:53:53 +00:00
committed by Compute-Runtime-Automation
parent 75fbaa0642
commit 0bee81c0c0
11 changed files with 35 additions and 30 deletions

View File

@@ -117,11 +117,6 @@ void GfxCoreHelperHw<Family>::adjustDefaultEngineType(HardwareInfo *pHwInfo, con
}
}
template <>
bool GfxCoreHelperHw<Family>::isLinearStoragePreferred(bool isSharedContext, bool isImage1d, bool forceLinearStorage) const {
return true;
}
template <>
uint32_t GfxCoreHelperHw<Family>::getMetricsLibraryGenId() const {
return static_cast<uint32_t>(MetricsLibraryApi::ClientGen::XeHPC);

View File

@@ -59,4 +59,10 @@ template <>
bool ProductHelperHw<gfxProduct>::isPrefetcherDisablingInDirectSubmissionRequired() const {
return false;
}
template <>
bool ProductHelperHw<gfxProduct>::isLinearStoragePreferred(bool isSharedContext, bool isImage1d, bool forceLinearStorage) const {
return true;
}
} // namespace NEO