mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 01:48:50 +08:00
Change-Id: I341925eef9bc892f5c321c668736bb6a3aff38f5 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
25 lines
633 B
C++
25 lines
633 B
C++
/*
|
|
* Copyright (C) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/os_interface/os_context.h"
|
|
#include "runtime/os_interface/linux/drm_neo.h"
|
|
#include "runtime/os_interface/linux/os_context_linux.h"
|
|
#include "runtime/os_interface/linux/os_interface.h"
|
|
|
|
namespace OCLRT {
|
|
|
|
OsContext::OsContext(OSInterface *osInterface, uint32_t contextId) : contextId(contextId) {
|
|
if (osInterface) {
|
|
osContextImpl = std::make_unique<OsContextLinux>(*osInterface->get()->getDrm());
|
|
}
|
|
}
|
|
|
|
OsContext::~OsContext() = default;
|
|
|
|
OsContextLinux::OsContextImpl(Drm &drm) : drm(drm) {}
|
|
} // namespace OCLRT
|