mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Check new residency model support
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
d223508cad
commit
27ca04f77f
@ -29,6 +29,7 @@ class DrmMockDefault : public DrmMock {
|
||||
};
|
||||
|
||||
Drm **pDrmToReturnFromCreateFunc = nullptr;
|
||||
bool disableBindDefaultInTests = true;
|
||||
|
||||
Drm *Drm::create(std::unique_ptr<HwDeviceId> hwDeviceId, RootDeviceEnvironment &rootDeviceEnvironment) {
|
||||
rootDeviceEnvironment.setHwInfo(defaultHwInfo.get());
|
||||
@ -53,7 +54,9 @@ Drm *Drm::create(std::unique_ptr<HwDeviceId> hwDeviceId, RootDeviceEnvironment &
|
||||
}
|
||||
|
||||
void Drm::overrideBindSupport(bool &useVmBind) {
|
||||
useVmBind = false;
|
||||
if (disableBindDefaultInTests) {
|
||||
useVmBind = false;
|
||||
}
|
||||
if (DebugManager.flags.UseVmBind.get() == 1) {
|
||||
useVmBind = true;
|
||||
}
|
||||
|
@ -133,6 +133,7 @@ class HwHelper {
|
||||
virtual bool additionalKernelExecInfoSupported(const HardwareInfo &hwInfo) const = 0;
|
||||
virtual bool isCpuImageTransferPreferred(const HardwareInfo &hwInfo) const = 0;
|
||||
virtual bool isKmdMigrationSupported(const HardwareInfo &hwInfo) const = 0;
|
||||
virtual bool isNewResidencyModelSupported() const = 0;
|
||||
virtual aub_stream::MMIOList getExtraMmioList(const HardwareInfo &hwInfo, const GmmHelper &gmmHelper) const = 0;
|
||||
virtual uint32_t getDefaultRevisionId(const HardwareInfo &hwInfo) const = 0;
|
||||
virtual uint32_t getNumCacheRegions(const HardwareInfo &hwInfo) const = 0;
|
||||
@ -332,6 +333,8 @@ class HwHelperHw : public HwHelper {
|
||||
|
||||
bool isKmdMigrationSupported(const HardwareInfo &hwInfo) const override;
|
||||
|
||||
bool isNewResidencyModelSupported() const override;
|
||||
|
||||
bool isCopyOnlyEngineType(EngineGroupType type) const override;
|
||||
|
||||
void adjustAddressWidthForCanonize(uint32_t &addressWidth) const override;
|
||||
|
@ -550,6 +550,11 @@ bool HwHelperHw<GfxFamily>::isKmdMigrationSupported(const HardwareInfo &hwInfo)
|
||||
return false;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
bool HwHelperHw<GfxFamily>::isNewResidencyModelSupported() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
bool HwHelperHw<GfxFamily>::isCopyOnlyEngineType(EngineGroupType type) const {
|
||||
return NEO::EngineGroupType::Copy == type;
|
||||
|
Reference in New Issue
Block a user