Skip to content

Commit f90cfb9

Browse files
Fix typo: freeGpuVirtualAddres -> freeGpuVirtualAddress
Change-Id: I6cbec2bd4ec5863e2c5df75aa60b3a7a0dbb94c6 Signed-off-by: Mateusz Jablonski <[email protected]>
1 parent f332bf3 commit f90cfb9

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

runtime/os_interface/windows/wddm/wddm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ bool Wddm::mapGpuVirtualAddressImpl(Gmm *gmm, D3DKMT_HANDLE handle, void *cpuPtr
377377
return true;
378378
}
379379

380-
bool Wddm::freeGpuVirtualAddres(D3DGPU_VIRTUAL_ADDRESS &gpuPtr, uint64_t size) {
380+
bool Wddm::freeGpuVirtualAddress(D3DGPU_VIRTUAL_ADDRESS &gpuPtr, uint64_t size) {
381381
NTSTATUS status = STATUS_SUCCESS;
382382
D3DKMT_FREEGPUVIRTUALADDRESS FreeGPUVA = {0};
383383
FreeGPUVA.hAdapter = adapter;

runtime/os_interface/windows/wddm/wddm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Wddm {
6767
bool mapGpuVirtualAddress(AllocationStorageData *allocationStorageData, bool allocation32bit, bool use64kbPages);
6868
MOCKABLE_VIRTUAL bool createContext(D3DKMT_HANDLE &context, EngineInstanceT engineType, PreemptionMode preemptionMode);
6969
MOCKABLE_VIRTUAL void applyAdditionalContextFlags(CREATECONTEXT_PVTDATA &privateData);
70-
MOCKABLE_VIRTUAL bool freeGpuVirtualAddres(D3DGPU_VIRTUAL_ADDRESS &gpuPtr, uint64_t size);
70+
MOCKABLE_VIRTUAL bool freeGpuVirtualAddress(D3DGPU_VIRTUAL_ADDRESS &gpuPtr, uint64_t size);
7171
MOCKABLE_VIRTUAL NTSTATUS createAllocation(WddmAllocation *alloc);
7272
MOCKABLE_VIRTUAL bool createAllocation64k(WddmAllocation *alloc);
7373
MOCKABLE_VIRTUAL NTSTATUS createAllocationsAndMapGpuVa(OsHandleStorage &osHandles);

unit_tests/mocks/mock_wddm.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ bool WddmMock::mapGpuVirtualAddressImpl(Gmm *gmm, D3DKMT_HANDLE handle, void *cp
4545
}
4646
}
4747

48-
bool WddmMock::freeGpuVirtualAddres(D3DGPU_VIRTUAL_ADDRESS &gpuPtr, uint64_t size) {
49-
freeGpuVirtualAddresResult.called++;
50-
return freeGpuVirtualAddresResult.success = Wddm::freeGpuVirtualAddres(gpuPtr, size);
48+
bool WddmMock::freeGpuVirtualAddress(D3DGPU_VIRTUAL_ADDRESS &gpuPtr, uint64_t size) {
49+
freeGpuVirtualAddressResult.called++;
50+
return freeGpuVirtualAddressResult.success = Wddm::freeGpuVirtualAddress(gpuPtr, size);
5151
}
5252

5353
NTSTATUS WddmMock::createAllocation(WddmAllocation *alloc) {

unit_tests/mocks/mock_wddm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class WddmMock : public Wddm {
5757
bool makeResident(D3DKMT_HANDLE *handles, uint32_t count, bool cantTrimFurther, uint64_t *numberOfBytesToTrim) override;
5858
bool evict(D3DKMT_HANDLE *handles, uint32_t num, uint64_t &sizeToTrim) override;
5959
bool mapGpuVirtualAddressImpl(Gmm *gmm, D3DKMT_HANDLE handle, void *cpuPtr, D3DGPU_VIRTUAL_ADDRESS &gpuPtr, bool allocation32Bit, bool use64kbPages, bool useHeap1) override;
60-
bool freeGpuVirtualAddres(D3DGPU_VIRTUAL_ADDRESS &gpuPtr, uint64_t size) override;
60+
bool freeGpuVirtualAddress(D3DGPU_VIRTUAL_ADDRESS &gpuPtr, uint64_t size) override;
6161
NTSTATUS createAllocation(WddmAllocation *alloc) override;
6262
bool createAllocation64k(WddmAllocation *alloc) override;
6363
bool destroyAllocations(D3DKMT_HANDLE *handles, uint32_t allocationCount, D3DKMT_HANDLE resourceHandle) override;
@@ -105,7 +105,7 @@ class WddmMock : public Wddm {
105105
WddmMockHelpers::MakeResidentCall makeResidentResult;
106106
WddmMockHelpers::CallResult makeNonResidentResult;
107107
WddmMockHelpers::CallResult mapGpuVirtualAddressResult;
108-
WddmMockHelpers::CallResult freeGpuVirtualAddresResult;
108+
WddmMockHelpers::CallResult freeGpuVirtualAddressResult;
109109
WddmMockHelpers::CallResult createAllocationResult;
110110
WddmMockHelpers::CallResult destroyAllocationResult;
111111
WddmMockHelpers::CallResult destroyContextResult;

unit_tests/os_interface/windows/wddm20_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ TEST_F(Wddm20Tests, mapAndFreeGpuVa) {
332332
EXPECT_TRUE(error);
333333
EXPECT_TRUE(allocation.gpuPtr != 0);
334334

335-
error = wddm->freeGpuVirtualAddres(allocation.gpuPtr, allocation.getUnderlyingBufferSize());
335+
error = wddm->freeGpuVirtualAddress(allocation.gpuPtr, allocation.getUnderlyingBufferSize());
336336
EXPECT_TRUE(error);
337337
EXPECT_TRUE(allocation.gpuPtr == 0);
338338

unit_tests/os_interface/windows/wddm_kmdaf_listener_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ TEST_F(WddmKmDafListenerTest, givenWddmWhenFreeGpuVirtualAddressIsCalledThenKmDa
104104
WddmAllocation allocation((void *)0x23000, 0x1000, nullptr, MemoryPool::MemoryNull, 1u, false);
105105
allocation.gpuPtr = GPUVA;
106106

107-
wddmWithKmDafMock->freeGpuVirtualAddres(allocation.gpuPtr, allocation.getUnderlyingBufferSize());
107+
wddmWithKmDafMock->freeGpuVirtualAddress(allocation.gpuPtr, allocation.getUnderlyingBufferSize());
108108

109109
EXPECT_EQ(wddmWithKmDafMock->getFeatureTable()->ftrKmdDaf, wddmWithKmDafMock->getKmDafListenerMock().notifyUnmapGpuVAParametrization.ftrKmdDaf);
110110
EXPECT_EQ(wddmWithKmDafMock->getAdapter(), wddmWithKmDafMock->getKmDafListenerMock().notifyUnmapGpuVAParametrization.hAdapter);

0 commit comments

Comments
 (0)