mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
refactor: add method to adjust regular context count
Related-To: NEO-12258 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2f4d240779
commit
8000133b2a
@@ -179,6 +179,7 @@ class GfxCoreHelper {
|
||||
virtual bool areSecondaryContextsSupported() const = 0;
|
||||
virtual uint32_t getContextGroupContextsCount() const = 0;
|
||||
virtual uint32_t getContextGroupHpContextsCount(EngineGroupType type, bool hpEngineAvailable) const = 0;
|
||||
virtual void adjustCopyEngineRegularContextCount(const size_t enginesCount, uint32_t &contextCount) const = 0;
|
||||
virtual aub_stream::EngineType getDefaultHpCopyEngine(const HardwareInfo &hwInfo) const = 0;
|
||||
virtual void initializeDefaultHpCopyEngine(const HardwareInfo &hwInfo) = 0;
|
||||
|
||||
@@ -412,6 +413,7 @@ class GfxCoreHelperHw : public GfxCoreHelper {
|
||||
bool areSecondaryContextsSupported() const override;
|
||||
uint32_t getContextGroupContextsCount() const override;
|
||||
uint32_t getContextGroupHpContextsCount(EngineGroupType type, bool hpEngineAvailable) const override;
|
||||
void adjustCopyEngineRegularContextCount(const size_t enginesCount, uint32_t &contextCount) const override;
|
||||
aub_stream::EngineType getDefaultHpCopyEngine(const HardwareInfo &hwInfo) const override;
|
||||
void initializeDefaultHpCopyEngine(const HardwareInfo &hwInfo) override;
|
||||
|
||||
|
||||
@@ -720,6 +720,10 @@ uint32_t GfxCoreHelperHw<GfxFamily>::getContextGroupHpContextsCount(EngineGroupT
|
||||
return std::min(getContextGroupContextsCount() / 2, 4u);
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
void GfxCoreHelperHw<GfxFamily>::adjustCopyEngineRegularContextCount(const size_t enginesCount, uint32_t &contextCount) const {
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
aub_stream::EngineType GfxCoreHelperHw<GfxFamily>::getDefaultHpCopyEngine(const HardwareInfo &hwInfo) const {
|
||||
return hpCopyEngineType;
|
||||
|
||||
Reference in New Issue
Block a user