Add function to check whether resolves are required

Change-Id: I0f81a4101b626ad7ddc17f19daabdf7a15c34467
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
Mrozek, Michal
2019-09-05 08:24:22 +02:00
committed by sys_ocldev
parent 3f433baf38
commit 15ba4b6788
3 changed files with 10 additions and 0 deletions

View File

@ -67,6 +67,7 @@ class HwHelper {
static uint32_t getMaxThreadsForVfe(const HardwareInfo &hwInfo);
virtual uint32_t getMetricsLibraryGenId() const = 0;
virtual uint32_t getMocsIndex(GmmHelper &gmmHelper, bool l3enabled, bool l1enabled) const = 0;
virtual bool requiresAuxResolves() const = 0;
static constexpr uint32_t lowPriorityGpgpuEngineIndex = 1;
@ -164,6 +165,8 @@ class HwHelperHw : public HwHelper {
uint32_t getMocsIndex(GmmHelper &gmmHelper, bool l3enabled, bool l1enabled) const override;
bool requiresAuxResolves() const override;
protected:
HwHelperHw() = default;
};

View File

@ -215,4 +215,9 @@ template <typename GfxFamily>
uint32_t HwHelperHw<GfxFamily>::getMetricsLibraryGenId() const {
return static_cast<uint32_t>(MetricsLibraryApi::ClientGen::Gen9);
}
template <typename GfxFamily>
inline bool HwHelperHw<GfxFamily>::requiresAuxResolves() const {
return true;
}
} // namespace NEO

View File

@ -356,6 +356,8 @@ cl_int Kernel::initialize() {
}
}
auxTranslationRequired &= HwHelper::get(device.getHardwareInfo().platform.eRenderCoreFamily).requiresAuxResolves();
if (DebugManager.flags.DisableAuxTranslation.get()) {
auxTranslationRequired = false;
}