mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Improve aux translation mode helper
Change-Id: Id9949fb3030386d7fe498a767c038a252cc28626 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
@ -183,6 +183,7 @@ class HwHelperHw : public HwHelper {
|
||||
static bool isBlitAuxTranslationRequired(const MultiDispatchInfo &multiDispatchInfo);
|
||||
|
||||
protected:
|
||||
static const AuxTranslationMode defaultAuxTranslationMode;
|
||||
HwHelperHw() = default;
|
||||
};
|
||||
|
||||
|
@ -24,6 +24,9 @@ namespace NEO {
|
||||
template <typename Family>
|
||||
const aub_stream::EngineType HwHelperHw<Family>::lowPriorityEngineType = aub_stream::EngineType::ENGINE_RCS;
|
||||
|
||||
template <typename Family>
|
||||
const AuxTranslationMode HwHelperHw<Family>::defaultAuxTranslationMode = AuxTranslationMode::Builtin;
|
||||
|
||||
template <typename Family>
|
||||
bool HwHelperHw<Family>::obtainRenderBufferCompressionPreference(const HardwareInfo &hwInfo, const size_t size) const {
|
||||
return size > KB;
|
||||
@ -160,7 +163,7 @@ AuxTranslationMode HwHelperHw<Family>::getAuxTranslationMode() {
|
||||
return static_cast<AuxTranslationMode>(DebugManager.flags.ForceAuxTranslationMode.get());
|
||||
}
|
||||
|
||||
return AuxTranslationMode::Builtin;
|
||||
return HwHelperHw<Family>::defaultAuxTranslationMode;
|
||||
}
|
||||
|
||||
template <typename Family>
|
||||
|
Reference in New Issue
Block a user