Workaround for selecting engine

Change-Id: I12deaebb68966a33827e8578a0d907749568ba8e
Signed-off-by: Sebastian Luzynski <sebastian.jozef.luzynski@intel.com>
This commit is contained in:
Sebastian Luzynski
2020-08-04 16:30:20 +02:00
committed by sys_ocldev
parent 4128761479
commit bc0fbb34da
3 changed files with 10 additions and 0 deletions

View File

@ -98,6 +98,8 @@ void RootDevice::initializeRootCommandStreamReceiver() {
auto &hwInfo = getHardwareInfo(); auto &hwInfo = getHardwareInfo();
auto defaultEngineType = getChosenEngineType(hwInfo); auto defaultEngineType = getChosenEngineType(hwInfo);
auto &hwHelper = NEO::HwHelper::get(hwInfo.platform.eRenderCoreFamily);
defaultEngineType = static_cast<aub_stream::EngineType>(hwHelper.getDefaultEngineWithWa(hwInfo, defaultEngineType));
auto preemptionMode = PreemptionHelper::getDefaultPreemptionMode(hwInfo); auto preemptionMode = PreemptionHelper::getDefaultPreemptionMode(hwInfo);
auto osContext = getMemoryManager()->createAndRegisterOsContext(rootCommandStreamReceiver.get(), defaultEngineType, auto osContext = getMemoryManager()->createAndRegisterOsContext(rootCommandStreamReceiver.get(), defaultEngineType,

View File

@ -106,6 +106,7 @@ class HwHelper {
uint32_t threadsPerEu) = 0; uint32_t threadsPerEu) = 0;
virtual uint32_t alignSlmSize(uint32_t slmSize) = 0; virtual uint32_t alignSlmSize(uint32_t slmSize) = 0;
virtual uint32_t computeSlmValues(uint32_t slmSize) = 0; virtual uint32_t computeSlmValues(uint32_t slmSize) = 0;
virtual uint32_t getDefaultEngineWithWa(const HardwareInfo &hwInfo, uint32_t defaultEngineType) const = 0;
virtual bool isForceEmuInt32DivRemSPWARequired(const HardwareInfo &hwInfo) = 0; virtual bool isForceEmuInt32DivRemSPWARequired(const HardwareInfo &hwInfo) = 0;
virtual uint32_t getMinimalSIMDSize() = 0; virtual uint32_t getMinimalSIMDSize() = 0;
@ -268,6 +269,8 @@ class HwHelperHw : public HwHelper {
uint32_t computeSlmValues(uint32_t slmSize) override; uint32_t computeSlmValues(uint32_t slmSize) override;
uint32_t getDefaultEngineWithWa(const HardwareInfo &hwInfo, uint32_t defaultEngineType) const override;
static AuxTranslationMode getAuxTranslationMode(); static AuxTranslationMode getAuxTranslationMode();
static bool isBlitAuxTranslationRequired(const HardwareInfo &hwInfo, const MultiDispatchInfo &multiDispatchInfo); static bool isBlitAuxTranslationRequired(const HardwareInfo &hwInfo, const MultiDispatchInfo &multiDispatchInfo);

View File

@ -471,4 +471,9 @@ uint32_t HwHelperHw<GfxFamily>::getDefaultThreadArbitrationPolicy() const {
return 0; return 0;
} }
template <typename GfxFamily>
uint32_t HwHelperHw<GfxFamily>::getDefaultEngineWithWa(const HardwareInfo &hwInfo, uint32_t defaultEngineType) const {
return defaultEngineType;
}
} // namespace NEO } // namespace NEO