Skip to content

Commit c8f931f

Browse files
Add getter for Gmm Memory
Related-To: NEO-2881 Change-Id: I3fa322267accef7046518d742c29dc746cceeb43 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
1 parent 973a953 commit c8f931f

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

runtime/os_interface/windows/wddm/wddm.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ class Wddm {
152152
MOCKABLE_VIRTUAL std::unique_lock<SpinLock> acquireLock(SpinLock &lock);
153153
MOCKABLE_VIRTUAL void removeTemporaryResource(const D3DKMT_HANDLE &handle);
154154
void updatePagingFenceValue(uint64_t newPagingFenceValue);
155+
GmmMemory *getGmmMemory() const {
156+
return gmmMemory.get();
157+
}
155158

156159
protected:
157160
bool initialized = false;

unit_tests/mocks/mock_wddm.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,6 @@ D3DGPU_VIRTUAL_ADDRESS WddmMock::reserveGpuVirtualAddress(D3DGPU_VIRTUAL_ADDRESS
282282
return Wddm::reserveGpuVirtualAddress(minimumAddress, maximumAddress, size);
283283
}
284284

285-
GmmMemory *WddmMock::getGmmMemory() const {
286-
return gmmMemory.get();
287-
}
288-
289285
uint64_t *WddmMock::getPagingFenceAddress() {
290286
getPagingFenceAddressResult.called++;
291287
mockPagingFence++;

unit_tests/mocks/mock_wddm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ class WddmMock : public Wddm {
105105
std::unique_lock<SpinLock> acquireLock(SpinLock &lock) override;
106106
D3DGPU_VIRTUAL_ADDRESS reserveGpuVirtualAddress(D3DGPU_VIRTUAL_ADDRESS minimumAddress, D3DGPU_VIRTUAL_ADDRESS maximumAddress, D3DGPU_SIZE_T size) override;
107107
bool reserveValidAddressRange(size_t size, void *&reservedMem);
108-
GmmMemory *getGmmMemory() const;
109108
PLATFORM *getGfxPlatform() { return gfxPlatform.get(); }
110109
uint64_t *getPagingFenceAddress() override;
111110

0 commit comments

Comments
 (0)