mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
fix: use IoctlHelperXe::create method
- create ioctl helper with dedicated method Related-To: NEO-11160 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4667f55ea2
commit
e8afccd071
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2023 Intel Corporation
|
||||
* Copyright (C) 2023-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -17,7 +17,7 @@ bool Drm::isDrmSupported(int fileDescriptor) {
|
||||
bool Drm::queryDeviceIdAndRevision() {
|
||||
auto drmVersion = Drm::getDrmVersion(getFileDescriptor());
|
||||
if ("xe" == drmVersion) {
|
||||
this->ioctlHelper = std::make_unique<IoctlHelperXe>(*this);
|
||||
this->ioctlHelper = IoctlHelperXe::create(*this);
|
||||
auto xeIoctlHelperPtr = static_cast<IoctlHelperXe *>(this->ioctlHelper.get());
|
||||
this->setPerContextVMRequired(false);
|
||||
return xeIoctlHelperPtr->initialize();
|
||||
|
||||
Reference in New Issue
Block a user