mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-23 11:03:02 +08:00
Support for symbol/relocation tables
Change-Id: I87890f6dc36a3454ffdcab1fb9d070fdaf91e689
This commit is contained in:
committed by
sys_ocldev
parent
b6792ef049
commit
ce061a48ef
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user