Fill OsInterface in Wddm::init

Change-Id: I0a4645040b06870007a20b46dbea562bf6024ad3
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-04-08 11:45:54 +02:00
committed by sys_ocldev
parent 259cdae5cd
commit 86f5555f67
20 changed files with 78 additions and 104 deletions

View File

@ -300,11 +300,6 @@ void WddmMock::createPagingFenceLogger() {
}
}
bool WddmMock::init() {
osInterfaceAvailable = rootDeviceEnvironment.osInterface != nullptr;
return Wddm::init();
}
void *GmockWddm::virtualAllocWrapper(void *inPtr, size_t size, uint32_t flags, uint32_t type) {
void *tmp = reinterpret_cast<void *>(virtualAllocAddress);
size += MemoryConstants::pageSize;

View File

@ -85,7 +85,6 @@ class WddmMock : public Wddm {
uint64_t *getPagingFenceAddress() override;
void waitOnPagingFenceFromCpu() override;
void createPagingFenceLogger() override;
bool init() override;
bool configureDeviceAddressSpace() {
configureDeviceAddressSpaceResult.called++;
@ -135,7 +134,6 @@ class WddmMock : public Wddm {
bool makeResidentStatus = true;
bool callBaseMakeResident = true;
bool callBaseCreatePagingLogger = true;
bool osInterfaceAvailable = false;
};
struct GmockWddm : WddmMock {