mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +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
@ -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;
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user