Support for symbol/relocation tables

Change-Id: I87890f6dc36a3454ffdcab1fb9d070fdaf91e689
This commit is contained in:
Chodor, Jaroslaw
2019-07-04 17:14:51 +02:00
committed by sys_ocldev
parent b6792ef049
commit ce061a48ef
20 changed files with 1531 additions and 52 deletions

View File

@@ -969,7 +969,6 @@ void Kernel::clearUnifiedMemoryExecInfo() {
}
inline void Kernel::makeArgsResident(CommandStreamReceiver &commandStreamReceiver) {
auto numArgs = kernelInfo.kernelArgInfo.size();
for (decltype(numArgs) argIndex = 0; argIndex < numArgs; argIndex++) {
if (kernelArguments[argIndex].object) {
@@ -1005,6 +1004,10 @@ void Kernel::makeResident(CommandStreamReceiver &commandStreamReceiver) {
commandStreamReceiver.makeResident(*(program->getGlobalSurface()));
}
if (program->getExportedFunctionsSurface()) {
commandStreamReceiver.makeResident(*(program->getExportedFunctionsSurface()));
}
for (auto gfxAlloc : kernelSvmGfxAllocations) {
commandStreamReceiver.makeResident(*gfxAlloc);
}
@@ -1045,6 +1048,11 @@ void Kernel::getResidency(std::vector<Surface *> &dst) {
dst.push_back(surface);
}
if (program->getExportedFunctionsSurface()) {
GeneralSurface *surface = new GeneralSurface(program->getExportedFunctionsSurface());
dst.push_back(surface);
}
for (auto gfxAlloc : kernelSvmGfxAllocations) {
GeneralSurface *surface = new GeneralSurface(gfxAlloc);
dst.push_back(surface);