mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Workaround for selecting engine
Change-Id: I12deaebb68966a33827e8578a0d907749568ba8e Signed-off-by: Sebastian Luzynski <sebastian.jozef.luzynski@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
4128761479
commit
bc0fbb34da
@ -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,
|
||||||
|
@ -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);
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user