Linux: pass adapter BDF to GmmLib

Resolves: NEO-5785
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2021-04-23 14:30:04 +00:00
committed by Compute-Runtime-Automation
parent dfb935fdcf
commit 1823054e08
5 changed files with 52 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Intel Corporation
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -16,8 +16,8 @@ bool OSInterface::osEnableLocalMemory = true;
void OSInterface::setGmmInputArgs(void *args) {
auto gmmInArgs = reinterpret_cast<GMM_INIT_IN_ARGS *>(args);
gmmInArgs->FileDescriptor = this->get()->getDrm()->getFileDescriptor();
auto adapterBDF = this->get()->getDrm()->getAdapterBDF();
gmmInArgs->FileDescriptor = adapterBDF.Data;
gmmInArgs->ClientType = GMM_CLIENT::GMM_OCL_VISTA;
}