Add isMediaBlockIOSupported helper

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-4848
This commit is contained in:
Kamil Kopryk
2020-11-04 16:40:16 +00:00
committed by Compute-Runtime-Automation
parent 3d9a180c12
commit 77a5443f90
5 changed files with 32 additions and 3 deletions

View File

@@ -128,6 +128,7 @@ class HwHelper {
virtual bool packedFormatsSupported() const = 0;
virtual bool isCooperativeDispatchSupported(const aub_stream::EngineType engine, const PRODUCT_FAMILY productFamily) const = 0;
virtual size_t getMaxFillPaternSizeForCopyEngine() const = 0;
virtual bool isMediaBlockIOSupported(const HardwareInfo &hwInfo) const = 0;
static uint32_t getSubDevicesCount(const HardwareInfo *pHwInfo);
static uint32_t getEnginesCount(const HardwareInfo &hwInfo);
@@ -313,6 +314,8 @@ class HwHelperHw : public HwHelper {
bool isCooperativeDispatchSupported(const aub_stream::EngineType engine, const PRODUCT_FAMILY productFamily) const override;
size_t getMaxFillPaternSizeForCopyEngine() const override;
bool isMediaBlockIOSupported(const HardwareInfo &hwInfo) const override;
protected:
LocalMemoryAccessMode getDefaultLocalMemoryAccessMode(const HardwareInfo &hwInfo) const override;

View File

@@ -499,4 +499,9 @@ bool HwHelperHw<GfxFamily>::isCooperativeDispatchSupported(const aub_stream::Eng
return true;
}
template <typename GfxFamily>
bool HwHelperHw<GfxFamily>::isMediaBlockIOSupported(const HardwareInfo &hwInfo) const {
return hwInfo.capabilityTable.supportsImages;
}
} // namespace NEO