From abdde5acb21df96c6ab14cc3e3863a43b9c21118 Mon Sep 17 00:00:00 2001 From: "Dunajski, Bartosz" Date: Thu, 21 Nov 2019 21:32:16 +0100 Subject: [PATCH] Improve aux translation mode helper Change-Id: Id9949fb3030386d7fe498a767c038a252cc28626 Signed-off-by: Dunajski, Bartosz --- core/helpers/hw_helper.h | 1 + core/helpers/hw_helper_base.inl | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/helpers/hw_helper.h b/core/helpers/hw_helper.h index 5dbd129e73..3534c2744e 100644 --- a/core/helpers/hw_helper.h +++ b/core/helpers/hw_helper.h @@ -183,6 +183,7 @@ class HwHelperHw : public HwHelper { static bool isBlitAuxTranslationRequired(const MultiDispatchInfo &multiDispatchInfo); protected: + static const AuxTranslationMode defaultAuxTranslationMode; HwHelperHw() = default; }; diff --git a/core/helpers/hw_helper_base.inl b/core/helpers/hw_helper_base.inl index 4e4d3266f2..ef1afef0c7 100644 --- a/core/helpers/hw_helper_base.inl +++ b/core/helpers/hw_helper_base.inl @@ -24,6 +24,9 @@ namespace NEO { template const aub_stream::EngineType HwHelperHw::lowPriorityEngineType = aub_stream::EngineType::ENGINE_RCS; +template +const AuxTranslationMode HwHelperHw::defaultAuxTranslationMode = AuxTranslationMode::Builtin; + template bool HwHelperHw::obtainRenderBufferCompressionPreference(const HardwareInfo &hwInfo, const size_t size) const { return size > KB; @@ -160,7 +163,7 @@ AuxTranslationMode HwHelperHw::getAuxTranslationMode() { return static_cast(DebugManager.flags.ForceAuxTranslationMode.get()); } - return AuxTranslationMode::Builtin; + return HwHelperHw::defaultAuxTranslationMode; } template