fix: setup correct render/display core family for gmmlib initialization

pass values got from adapter info

Related-To: NEO-10482
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-02-26 12:27:16 +00:00
committed by Compute-Runtime-Automation
parent cfd3edfb2c
commit 9cbc33e23d
4 changed files with 45 additions and 52 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021-2022 Intel Corporation
* Copyright (C) 2021-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -13,6 +13,9 @@ namespace NEO {
void Wddm::setGmmInputArgs(void *args) {
auto gmmInArgs = reinterpret_cast<GMM_INIT_IN_ARGS *>(args);
gmmInArgs->Platform.eRenderCoreFamily = gfxPlatform->eRenderCoreFamily;
gmmInArgs->Platform.eDisplayCoreFamily = gfxPlatform->eDisplayCoreFamily;
gmmInArgs->stAdapterBDF = this->adapterBDF;
gmmInArgs->ClientType = GMM_CLIENT::GMM_OCL_VISTA;
gmmInArgs->DeviceRegistryPath = deviceRegistryPath.c_str();