fix: define isDirectSubmissionSupported per HW release

Related-To: NEO-8187
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-09-20 13:08:46 +00:00
committed by Compute-Runtime-Automation
parent 9bb559d468
commit 3b2c41e5ee
32 changed files with 69 additions and 51 deletions

View File

@@ -79,10 +79,11 @@ bool OsContextLinux::initializeContext() {
return true;
}
bool OsContextLinux::isDirectSubmissionSupported(const HardwareInfo &hwInfo) const {
auto &productHelper = this->getDrm().getRootDeviceEnvironment().getHelper<ProductHelper>();
bool OsContextLinux::isDirectSubmissionSupported() const {
auto &rootDeviceEnvironment = this->getDrm().getRootDeviceEnvironment();
auto &productHelper = rootDeviceEnvironment.getHelper<ProductHelper>();
return this->getDrm().isVmBindAvailable() && productHelper.isDirectSubmissionSupported(hwInfo);
return this->getDrm().isVmBindAvailable() && productHelper.isDirectSubmissionSupported(rootDeviceEnvironment.getReleaseHelper());
}
Drm &OsContextLinux::getDrm() const {