mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
sys_ocldev

parent
d07e5563f5
commit
265b0c9aa0
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user