Add getter for Gmm Memory

Related-To: NEO-2881

Change-Id: I3fa322267accef7046518d742c29dc746cceeb43
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2019-06-06 14:00:08 +02:00
committed by sys_ocldev
parent 973a953cc8
commit c8f931f016
3 changed files with 3 additions and 5 deletions

View File

@@ -282,10 +282,6 @@ D3DGPU_VIRTUAL_ADDRESS WddmMock::reserveGpuVirtualAddress(D3DGPU_VIRTUAL_ADDRESS
return Wddm::reserveGpuVirtualAddress(minimumAddress, maximumAddress, size);
}
GmmMemory *WddmMock::getGmmMemory() const {
return gmmMemory.get();
}
uint64_t *WddmMock::getPagingFenceAddress() {
getPagingFenceAddressResult.called++;
mockPagingFence++;

View File

@@ -105,7 +105,6 @@ class WddmMock : public Wddm {
std::unique_lock<SpinLock> acquireLock(SpinLock &lock) override;
D3DGPU_VIRTUAL_ADDRESS reserveGpuVirtualAddress(D3DGPU_VIRTUAL_ADDRESS minimumAddress, D3DGPU_VIRTUAL_ADDRESS maximumAddress, D3DGPU_SIZE_T size) override;
bool reserveValidAddressRange(size_t size, void *&reservedMem);
GmmMemory *getGmmMemory() const;
PLATFORM *getGfxPlatform() { return gfxPlatform.get(); }
uint64_t *getPagingFenceAddress() override;