Refactor: don't pass redundant hw info to applyAdditionalContextFlags

Wddm already contains reference to root device environment

Related-To: NEO-6853
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-01-02 08:41:11 +00:00
committed by Compute-Runtime-Automation
parent 30f0b1d9eb
commit 28319a8e81
9 changed files with 22 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 Intel Corporation
* Copyright (C) 2022-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -30,7 +30,7 @@ Wddm::CreateDXGIFactoryFcn getCreateDxgiFactory() {
}
Wddm::DXCoreCreateAdapterFactoryFcn getDXCoreCreateAdapterFactory() {
return ULTDXCoreCreateAdapterFactory;
return ultDxCoreCreateAdapterFactory;
}
Wddm::GetSystemInfoFcn getGetSystemInfo() {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021-2022 Intel Corporation
* Copyright (C) 2021-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -11,12 +11,12 @@
namespace NEO {
HRESULT WINAPI ULTDXCoreCreateAdapterFactory(REFIID riid, void **ppFactory) {
HRESULT WINAPI ultDxCoreCreateAdapterFactory(REFIID riid, void **ppFactory) {
*reinterpret_cast<UltDXCoreAdapterFactory **>(ppFactory) = new UltDXCoreAdapterFactory;
return S_OK;
}
void WINAPI ULTGetSystemInfo(SYSTEM_INFO *pSystemInfo) {
void WINAPI ultGetSystemInfo(SYSTEM_INFO *pSystemInfo) {
#ifdef _WIN32
pSystemInfo->lpMaximumApplicationAddress = is32bit ? (LPVOID)MemoryConstants::max32BitAppAddress : (LPVOID)MemoryConstants::max64BitAppAddress;
#endif

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021-2022 Intel Corporation
* Copyright (C) 2021-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -284,7 +284,7 @@ class UltDXCoreAdapterFactory : public IDXCoreAdapterFactory {
}
};
HRESULT WINAPI ULTDXCoreCreateAdapterFactory(REFIID riid, void **ppFactory);
void WINAPI ULTGetSystemInfo(SYSTEM_INFO *pSystemInfo);
HRESULT WINAPI ultDxCoreCreateAdapterFactory(REFIID riid, void **ppFactory);
void WINAPI ultGetSystemInfo(SYSTEM_INFO *pSystemInfo);
} // namespace NEO

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -16,10 +16,10 @@ Wddm::CreateDXGIFactoryFcn getCreateDxgiFactory() {
}
Wddm::DXCoreCreateAdapterFactoryFcn getDXCoreCreateAdapterFactory() {
return ULTDXCoreCreateAdapterFactory;
return ultDxCoreCreateAdapterFactory;
}
Wddm::GetSystemInfoFcn getGetSystemInfo() {
return ULTGetSystemInfo;
return ultGetSystemInfo;
}
} // namespace NEO