mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Pass Drm object to OsContext on Linux
Change-Id: I341925eef9bc892f5c321c668736bb6a3aff38f5 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
76efeae9d8
commit
728932ed44
21
runtime/os_interface/linux/os_context_linux.h
Normal file
21
runtime/os_interface/linux/os_context_linux.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "runtime/os_interface/os_context.h"
|
||||
|
||||
namespace OCLRT {
|
||||
class Drm;
|
||||
using OsContextLinux = OsContext::OsContextImpl;
|
||||
|
||||
class OsContext::OsContextImpl {
|
||||
public:
|
||||
OsContextImpl(Drm &drm);
|
||||
|
||||
protected:
|
||||
Drm &drm;
|
||||
};
|
||||
} // namespace OCLRT
|
||||
Reference in New Issue
Block a user