Move GMM_INIT_IN_ARGS initialization to dll tests

Change-Id: I8f647c0ecf737492995d34ba6c0344325fdad48a
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2020-03-16 16:58:04 +01:00
committed by sys_ocldev
parent d07e5563f5
commit 265b0c9aa0
13 changed files with 90 additions and 84 deletions

View File

@ -7,8 +7,15 @@
#include "shared/source/os_interface/linux/os_interface.h"
#include "shared/source/gmm_helper/gmm_interface.h"
#include "shared/source/os_interface/linux/drm_neo.h"
namespace NEO {
bool OSInterface::osEnableLocalMemory = true;
} // namespace NEO
void OSInterface::setGmmInputArgs(void *args) {
reinterpret_cast<GMM_INIT_IN_ARGS *>(args)->FileDescriptor = this->get()->getDrm()->getFileDescriptor();
}
} // namespace NEO

View File

@ -8,8 +8,14 @@
#include "shared/source/os_interface/windows/os_interface.h"
#include "shared/source/memory_manager/memory_constants.h"
#include "shared/source/os_interface/windows/wddm/wddm.h"
namespace NEO {
bool OSInterface::osEnableLocalMemory = true;
void OSInterface::setGmmInputArgs(void *args) {
this->get()->getWddm()->setGmmInputArg(args);
}
} // namespace NEO