mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-13 10:14:36 +08:00
Related-To: NEO-4207 Change-Id: Ic59abf9221702333efea69213391b9646ae0864e Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
23 lines
510 B
C++
23 lines
510 B
C++
/*
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "core/os_interface/linux/drm_neo.h"
|
|
|
|
#include "drm/i915_drm.h"
|
|
|
|
class DrmWrap : public NEO::Drm {
|
|
public:
|
|
static NEO::Drm *createDrm(int32_t deviceOrdinal, RootDeviceEnvironment &rootDeviceEnvironment) {
|
|
return NEO::Drm::create(deviceOrdinal, rootDeviceEnvironment);
|
|
}
|
|
static void closeDevice(int32_t deviceOrdinal) {
|
|
NEO::Drm::closeDevice(deviceOrdinal);
|
|
};
|
|
};
|