Unit tests: Initialize gmm before wddm initialization

Change-Id: I751bd93248aa78731b9591f494eafcd12d3e6d82
This commit is contained in:
Mateusz Jablonski
2018-07-16 16:37:17 +02:00
committed by sys_ocldev
parent 70b1745c7a
commit 56557ca3a3
20 changed files with 156 additions and 90 deletions

View File

@@ -77,7 +77,6 @@ Wddm::Wddm() : initialized(false),
maximumApplicationAddress = 0;
node = GPUNODE_3D;
preemptionMode = PreemptionMode::Disabled;
gmmMemory = std::unique_ptr<GmmMemory>(GmmMemory::create());
minAddress = 0;
kmDafListener = std::unique_ptr<KmDafListener>(new KmDafListener);
gdi = std::unique_ptr<Gdi>(new Gdi());

View File

@@ -52,6 +52,9 @@ bool Wddm::init() {
if (!createPagingQueue()) {
return false;
}
if (!gmmMemory) {
gmmMemory.reset(GmmMemory::create());
}
if (!configureDeviceAddressSpace<GfxFamily>()) {
return false;
}