mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Fill OsInterface in Wddm::init
Change-Id: I0a4645040b06870007a20b46dbea562bf6024ad3 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
259cdae5cd
commit
86f5555f67
@@ -67,6 +67,10 @@ Wddm::~Wddm() {
|
||||
}
|
||||
|
||||
bool Wddm::init() {
|
||||
if (!rootDeviceEnvironment.osInterface) {
|
||||
rootDeviceEnvironment.osInterface = std::make_unique<OSInterface>();
|
||||
rootDeviceEnvironment.osInterface->get()->setWddm(this);
|
||||
}
|
||||
if (!queryAdapterInfo()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user