mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
This patch adds support to open and close the drm fd, so that more granular control of drm fd could be achieved. Related-To: LOCI-3986 Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
18 lines
317 B
C++
18 lines
317 B
C++
/*
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/os_interface/linux/hw_device_id.h"
|
|
#include "shared/source/os_interface/linux/sys_calls.h"
|
|
|
|
namespace NEO {
|
|
|
|
HwDeviceIdDrm::~HwDeviceIdDrm() {
|
|
SysCalls::close(fileDescriptor);
|
|
}
|
|
|
|
} // namespace NEO
|