mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +08:00
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:

committed by
sys_ocldev

parent
3f433baf38
commit
15ba4b6788
@ -67,6 +67,7 @@ class HwHelper {
|
|||||||
static uint32_t getMaxThreadsForVfe(const HardwareInfo &hwInfo);
|
static uint32_t getMaxThreadsForVfe(const HardwareInfo &hwInfo);
|
||||||
virtual uint32_t getMetricsLibraryGenId() const = 0;
|
virtual uint32_t getMetricsLibraryGenId() const = 0;
|
||||||
virtual uint32_t getMocsIndex(GmmHelper &gmmHelper, bool l3enabled, bool l1enabled) 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;
|
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;
|
uint32_t getMocsIndex(GmmHelper &gmmHelper, bool l3enabled, bool l1enabled) const override;
|
||||||
|
|
||||||
|
bool requiresAuxResolves() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
HwHelperHw() = default;
|
HwHelperHw() = default;
|
||||||
};
|
};
|
||||||
|
@ -215,4 +215,9 @@ template <typename GfxFamily>
|
|||||||
uint32_t HwHelperHw<GfxFamily>::getMetricsLibraryGenId() const {
|
uint32_t HwHelperHw<GfxFamily>::getMetricsLibraryGenId() const {
|
||||||
return static_cast<uint32_t>(MetricsLibraryApi::ClientGen::Gen9);
|
return static_cast<uint32_t>(MetricsLibraryApi::ClientGen::Gen9);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename GfxFamily>
|
||||||
|
inline bool HwHelperHw<GfxFamily>::requiresAuxResolves() const {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
} // namespace NEO
|
} // namespace NEO
|
||||||
|
@ -356,6 +356,8 @@ cl_int Kernel::initialize() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auxTranslationRequired &= HwHelper::get(device.getHardwareInfo().platform.eRenderCoreFamily).requiresAuxResolves();
|
||||||
|
|
||||||
if (DebugManager.flags.DisableAuxTranslation.get()) {
|
if (DebugManager.flags.DisableAuxTranslation.get()) {
|
||||||
auxTranslationRequired = false;
|
auxTranslationRequired = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user