mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
Linux: pass adapter BDF to GmmLib
Resolves: NEO-5785 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
dfb935fdcf
commit
1823054e08
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user