mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

- use correct deviceId in tests Change-Id: Ifa4a0cd0ddd97870fdd5947e6cc71ad75b25cd0b Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
23 lines
439 B
C++
23 lines
439 B
C++
/*
|
|
* Copyright (C) 2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "runtime/os_interface/linux/drm_neo.h"
|
|
|
|
#include "drm/i915_drm.h"
|
|
|
|
class DrmWrap : public NEO::Drm {
|
|
public:
|
|
static NEO::Drm *createDrm(int32_t deviceOrdinal) {
|
|
return NEO::Drm::create(deviceOrdinal);
|
|
}
|
|
static void closeDevice(int32_t deviceOrdinal) {
|
|
NEO::Drm::closeDevice(deviceOrdinal);
|
|
};
|
|
};
|