mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Change-Id: Iba929a2b4fcd993b38dd674be578aad0a481e8de Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
29 lines
676 B
C++
29 lines
676 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/os_interface/os_context.h"
|
|
|
|
namespace OCLRT {
|
|
class Drm;
|
|
|
|
class OsContextLinux : public OsContext {
|
|
public:
|
|
OsContextLinux() = delete;
|
|
~OsContextLinux() override;
|
|
OsContextLinux(Drm &drm, uint32_t contextId, uint32_t deviceBitfiled,
|
|
EngineInstanceT engineType, PreemptionMode preemptionMode);
|
|
|
|
unsigned int getEngineFlag() const { return engineFlag; }
|
|
uint32_t getDrmContextId() const { return drmContextId; }
|
|
|
|
protected:
|
|
unsigned int engineFlag = 0;
|
|
uint32_t drmContextId = 0;
|
|
Drm &drm;
|
|
};
|
|
} // namespace OCLRT
|