mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
Bind the drm context.
Related-To: NEO-3008 Change-Id: I4d63b8bc1f831c306ae5535067e2818155963cf5 Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "runtime/memory_manager/memory_manager.h"
|
||||
#include "runtime/os_interface/linux/engine_info.h"
|
||||
#include "runtime/os_interface/linux/memory_info.h"
|
||||
#include "runtime/utilities/api_intercept.h"
|
||||
@@ -64,6 +65,7 @@ class Drm {
|
||||
uint32_t createDrmContext();
|
||||
void destroyDrmContext(uint32_t drmContextId);
|
||||
void setLowPriorityContextParam(uint32_t drmContextId);
|
||||
int bindDrmContext(uint32_t drmContextId, DeviceBitfield deviceBitfield, aub_stream::EngineType engineType);
|
||||
|
||||
void setGtType(GTTYPE eGtType) { this->eGtType = eGtType; }
|
||||
GTTYPE getGtType() const { return this->eGtType; }
|
||||
|
||||
@@ -19,4 +19,8 @@ void Drm::queryEngineInfo() {
|
||||
void Drm::queryMemoryInfo() {
|
||||
}
|
||||
|
||||
int Drm::bindDrmContext(uint32_t drmContextId, DeviceBitfield deviceBitfield, aub_stream::EngineType engineType) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -31,6 +31,7 @@ OsContextLinux::OsContextLinux(Drm &drm, uint32_t contextId, DeviceBitfield devi
|
||||
if (drm.isPreemptionSupported() && lowPriority) {
|
||||
drm.setLowPriorityContextParam(this->drmContextId);
|
||||
}
|
||||
drm.bindDrmContext(this->drmContextId, deviceBitfield, engineType);
|
||||
}
|
||||
|
||||
OsContextLinux::~OsContextLinux() {
|
||||
|
||||
Reference in New Issue
Block a user