mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 17:13:29 +08:00
refactor: Extended drm wrapper with primary context export / import handle
Related-To: NEO-12952 Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2170f5ca88
commit
8e251ed274
@@ -202,6 +202,14 @@ struct PrimeHandle {
|
||||
int32_t fileDescriptor;
|
||||
};
|
||||
|
||||
struct PrimaryContextHandle {
|
||||
uint32_t handle;
|
||||
uint32_t pad;
|
||||
int32_t fd;
|
||||
uint32_t pad2;
|
||||
uint64_t reserved[2];
|
||||
};
|
||||
|
||||
#pragma pack(1)
|
||||
template <uint32_t numEngines = 10> // 1 + max engines
|
||||
struct ContextParamEngines {
|
||||
@@ -284,7 +292,9 @@ enum class DrmIoctl {
|
||||
metadataDestroy,
|
||||
perfOpen,
|
||||
perfEnable,
|
||||
perfDisable
|
||||
perfDisable,
|
||||
primaryContextExport,
|
||||
primaryContextImport
|
||||
};
|
||||
|
||||
enum class DrmParam {
|
||||
|
||||
Reference in New Issue
Block a user