refactor: correct variable naming

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski 2023-12-04 10:06:44 +00:00 committed by Compute-Runtime-Automation
parent 6cf6a8def8
commit 552c129c0b
3 changed files with 18 additions and 18 deletions

View File

@ -193,8 +193,8 @@ void D3DSharingBuilderFactory<D3DTypesHelper::D3D11>::setExtensionEnabled(Driver
extensionEnabled = driverInfo->getMediaSharingSupport();
}
static SharingFactory::RegisterSharing<D3DSharingBuilderFactory<D3DTypesHelper::D3D9>, D3DSharingFunctions<D3DTypesHelper::D3D9>> D3D9Sharing;
static SharingFactory::RegisterSharing<D3DSharingBuilderFactory<D3DTypesHelper::D3D10>, D3DSharingFunctions<D3DTypesHelper::D3D10>> D3D10Sharing;
static SharingFactory::RegisterSharing<D3DSharingBuilderFactory<D3DTypesHelper::D3D11>, D3DSharingFunctions<D3DTypesHelper::D3D11>> D3D11Sharing;
static SharingFactory::RegisterSharing<D3DSharingBuilderFactory<D3DTypesHelper::D3D9>, D3DSharingFunctions<D3DTypesHelper::D3D9>> registerD3D9Sharing;
static SharingFactory::RegisterSharing<D3DSharingBuilderFactory<D3DTypesHelper::D3D10>, D3DSharingFunctions<D3DTypesHelper::D3D10>> registerD3D10Sharing;
static SharingFactory::RegisterSharing<D3DSharingBuilderFactory<D3DTypesHelper::D3D11>, D3DSharingFunctions<D3DTypesHelper::D3D11>> registerD3D11Sharing;
} // namespace NEO
#endif

View File

@ -38,7 +38,7 @@ decltype(&LoadLibraryExA) OsLibrary::loadLibraryExA = LoadLibraryExA;
decltype(&GetModuleFileNameA) OsLibrary::getModuleFileNameA = GetModuleFileNameA;
decltype(&GetSystemDirectoryA) OsLibrary::getSystemDirectoryA = GetSystemDirectoryA;
extern "C" IMAGE_DOS_HEADER __ImageBase;
extern "C" IMAGE_DOS_HEADER __ImageBase; // NOLINT(readability-identifier-naming)
__inline HINSTANCE getModuleHINSTANCE() { return (HINSTANCE)&__ImageBase; }
void OsLibrary::getLastErrorString(std::string *errorValue) {

View File

@ -38,7 +38,7 @@ NTSTATUS __stdcall mockD3DKMTEscape(IN CONST D3DKMT_ESCAPE *pData) {
return STATUS_SUCCESS;
}
UINT64 PagingFence = 0;
UINT64 pagingFence = 0;
void mockSetAdapterInfo(const void *pGfxPlatform, const void *pGTSystemInfo, uint64_t gpuAddressSpace) {
if (pGfxPlatform != NULL) {
@ -86,7 +86,7 @@ NTSTATUS __stdcall mockD3DKMTCreatePagingQueue(IN OUT D3DKMT_CREATEPAGINGQUEUE *
}
createQueue->hPagingQueue = PAGINGQUEUE_HANDLE;
createQueue->hSyncObject = PAGINGQUEUE_SYNCOBJECT_HANDLE;
createQueue->FenceValueCPUVirtualAddress = &PagingFence;
createQueue->FenceValueCPUVirtualAddress = &pagingFence;
return STATUS_SUCCESS;
}
@ -217,15 +217,15 @@ NTSTATUS __stdcall mockD3DKMTShareObjects(UINT cObjects, const D3DKMT_HANDLE *hO
return STATUS_SUCCESS;
}
static unsigned int DestroyAllocationWithResourceHandleCalled = 0u;
static unsigned int destroyAllocationWithResourceHandleCalled = 0u;
static D3DKMT_DESTROYALLOCATION2 destroyalloc2{};
static D3DKMT_HANDLE LastDestroyedResourceHandle = 0;
static D3DKMT_CREATEDEVICE CreateDeviceParams{};
static D3DKMT_HANDLE lastDestroyedResourceHandle = 0;
static D3DKMT_CREATEDEVICE createDeviceParams{};
NTSTATUS __stdcall mockD3DKMTDestroyAllocation2(IN CONST D3DKMT_DESTROYALLOCATION2 *destroyAllocation) {
int numOfAllocations;
const D3DKMT_HANDLE *allocationList;
LastDestroyedResourceHandle = 0;
lastDestroyedResourceHandle = 0;
if (destroyAllocation == nullptr || destroyAllocation->hDevice != DEVICE_HANDLE) {
return STATUS_INVALID_PARAMETER;
}
@ -249,8 +249,8 @@ NTSTATUS __stdcall mockD3DKMTDestroyAllocation2(IN CONST D3DKMT_DESTROYALLOCATIO
return STATUS_UNSUCCESSFUL;
}
if (destroyAllocation->hResource) {
DestroyAllocationWithResourceHandleCalled = 1;
LastDestroyedResourceHandle = destroyAllocation->hResource;
destroyAllocationWithResourceHandleCalled = 1;
lastDestroyedResourceHandle = destroyAllocation->hResource;
}
return STATUS_SUCCESS;
@ -682,26 +682,26 @@ NTSTATUS setMockSizes(void *inGmmPtr, UINT inNumAllocsToReturn, UINT inGmmSize,
return STATUS_SUCCESS;
}
NTSTATUS getMockSizes(UINT &destroyAlloactionWithResourceHandleCalled, D3DKMT_DESTROYALLOCATION2 *&ptrDestroyAlloc) {
destroyAlloactionWithResourceHandleCalled = DestroyAllocationWithResourceHandleCalled;
NTSTATUS getMockSizes(UINT &outDestroyAlloactionWithResourceHandleCalled, D3DKMT_DESTROYALLOCATION2 *&ptrDestroyAlloc) {
outDestroyAlloactionWithResourceHandleCalled = destroyAllocationWithResourceHandleCalled;
ptrDestroyAlloc = &destroyalloc2;
return NTSTATUS();
}
D3DKMT_HANDLE getMockLastDestroyedResHandle() {
return LastDestroyedResourceHandle;
return lastDestroyedResourceHandle;
}
void setMockLastDestroyedResHandle(D3DKMT_HANDLE handle) {
LastDestroyedResourceHandle = handle;
lastDestroyedResourceHandle = handle;
}
D3DKMT_CREATEDEVICE getMockCreateDeviceParams() {
return CreateDeviceParams;
return createDeviceParams;
}
void setMockCreateDeviceParams(D3DKMT_CREATEDEVICE params) {
CreateDeviceParams = params;
createDeviceParams = params;
}
D3DKMT_CREATEALLOCATION *getMockAllocation() {