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:
Mateusz Hoppe
2024-05-07 19:09:49 +00:00
committed by Compute-Runtime-Automation
parent 4667f55ea2
commit e8afccd071

View File

@@ -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();