Fix clang-tidy issues

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2021-06-10 19:43:22 +00:00
committed by Compute-Runtime-Automation
parent 4d6d5ba90e
commit 67216047db
13 changed files with 44 additions and 43 deletions

View File

@@ -16,8 +16,8 @@ namespace NEO {
bool GmmMemoryBase::configureDeviceAddressSpace(GMM_ESCAPE_HANDLE hAdapter,
GMM_ESCAPE_HANDLE hDevice,
GMM_ESCAPE_FUNC_TYPE pfnEscape,
GMM_GFX_SIZE_T SvmSize,
BOOLEAN BDWL3Coherency) {
GMM_GFX_SIZE_T svmSize,
BOOLEAN bdwL3Coherency) {
return true;
}

View File

@@ -16,16 +16,16 @@ namespace NEO {
bool GmmMemoryBase::configureDeviceAddressSpace(GMM_ESCAPE_HANDLE hAdapter,
GMM_ESCAPE_HANDLE hDevice,
GMM_ESCAPE_FUNC_TYPE pfnEscape,
GMM_GFX_SIZE_T SvmSize,
BOOLEAN BDWL3Coherency) {
GMM_GFX_SIZE_T svmSize,
BOOLEAN bdwL3Coherency) {
return clientContext.ConfigureDeviceAddressSpace(
{hAdapter},
{hDevice},
{pfnEscape},
SvmSize,
svmSize,
0,
0,
BDWL3Coherency,
bdwL3Coherency,
0,
0) != 0;
}

View File

@@ -19,12 +19,12 @@ GmmMemoryBase::GmmMemoryBase(GmmClientContext *gmmClientContext) : clientContext
bool GmmMemoryBase::configureDevice(GMM_ESCAPE_HANDLE hAdapter,
GMM_ESCAPE_HANDLE hDevice,
GMM_ESCAPE_FUNC_TYPE pfnEscape,
GMM_GFX_SIZE_T SvmSize,
BOOLEAN BDWL3Coherency,
GMM_GFX_SIZE_T svmSize,
BOOLEAN bdwL3Coherency,
uintptr_t &minAddress,
bool obtainMinAddress) {
minAddress = windowsMinAddress;
auto retVal = configureDeviceAddressSpace(hAdapter, hDevice, pfnEscape, SvmSize, BDWL3Coherency);
auto retVal = configureDeviceAddressSpace(hAdapter, hDevice, pfnEscape, svmSize, bdwL3Coherency);
if (obtainMinAddress) {
minAddress = getInternalGpuVaRangeLimit();
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Intel Corporation
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -19,14 +19,14 @@ class GmmMemoryBase {
MOCKABLE_VIRTUAL bool configureDeviceAddressSpace(GMM_ESCAPE_HANDLE hAdapter,
GMM_ESCAPE_HANDLE hDevice,
GMM_ESCAPE_FUNC_TYPE pfnEscape,
GMM_GFX_SIZE_T SvmSize,
BOOLEAN BDWL3Coherency);
GMM_GFX_SIZE_T svmSize,
BOOLEAN bdwL3Coherency);
bool configureDevice(GMM_ESCAPE_HANDLE hAdapter,
GMM_ESCAPE_HANDLE hDevice,
GMM_ESCAPE_FUNC_TYPE pfnEscape,
GMM_GFX_SIZE_T SvmSize,
BOOLEAN BDWL3Coherency,
GMM_GFX_SIZE_T svmSize,
BOOLEAN bdwL3Coherency,
uintptr_t &minAddress,
bool obtainMinAddress);