Move init of image builtins to separate function in level_zero

Change-Id: I15879af545159da3646a6bd71bf0d952735b37aa
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska
2020-04-28 11:35:35 +02:00
committed by sys_ocldev
parent 9dab9a654d
commit 9cdd0574c1
5 changed files with 63 additions and 33 deletions

View File

@@ -576,6 +576,9 @@ Device *Device::create(DriverHandle *driverHandle, NEO::Device *neoDevice) {
if (neoDevice->getCompilerInterface()) {
device->getBuiltinFunctionsLib()->initFunctions();
device->getBuiltinFunctionsLib()->initPageFaultFunction();
if (device->getHwInfo().capabilityTable.supportsImages) {
device->getBuiltinFunctionsLib()->initImageFunctions();
}
}
auto supportDualStorageSharedMemory = device->getDriverHandle()->getMemoryManager()->isLocalMemorySupported(device->neoDevice->getRootDeviceIndex());