mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
fix: define isDirectSubmissionSupported per HW release
Related-To: NEO-8187 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9bb559d468
commit
3b2c41e5ee
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user