2018-10-30 18:31:08 +08:00
|
|
|
/*
|
2021-04-23 22:30:04 +08:00
|
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
2018-10-30 18:31:08 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/os_interface/linux/os_interface.h"
|
2018-10-30 18:31:08 +08:00
|
|
|
|
2020-03-16 23:58:04 +08:00
|
|
|
#include "shared/source/gmm_helper/gmm_interface.h"
|
|
|
|
#include "shared/source/os_interface/linux/drm_neo.h"
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2018-10-30 18:31:08 +08:00
|
|
|
|
2019-07-01 22:22:53 +08:00
|
|
|
bool OSInterface::osEnableLocalMemory = true;
|
2018-10-30 18:31:08 +08:00
|
|
|
|
2020-03-16 23:58:04 +08:00
|
|
|
void OSInterface::setGmmInputArgs(void *args) {
|
2020-07-22 18:51:48 +08:00
|
|
|
auto gmmInArgs = reinterpret_cast<GMM_INIT_IN_ARGS *>(args);
|
2021-04-23 22:30:04 +08:00
|
|
|
auto adapterBDF = this->get()->getDrm()->getAdapterBDF();
|
|
|
|
gmmInArgs->FileDescriptor = adapterBDF.Data;
|
2020-07-22 18:51:48 +08:00
|
|
|
gmmInArgs->ClientType = GMM_CLIENT::GMM_OCL_VISTA;
|
2020-03-16 23:58:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace NEO
|