mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
Use MemoryManager retrieved from ExecutionEnvironment in Kernel dtor
Change-Id: I5f3880e1a95b3cbd262847d97776b0b92a580181
This commit is contained in:
committed by
sys_ocldev
parent
62e56d2398
commit
44491a111c
@@ -100,12 +100,12 @@ Kernel::~Kernel() {
|
||||
crossThreadDataSize = 0;
|
||||
|
||||
if (privateSurface) {
|
||||
device.getMemoryManager()->checkGpuUsageAndDestroyGraphicsAllocations(privateSurface);
|
||||
program->peekExecutionEnvironment().memoryManager->checkGpuUsageAndDestroyGraphicsAllocations(privateSurface);
|
||||
privateSurface = nullptr;
|
||||
}
|
||||
|
||||
if (kernelReflectionSurface) {
|
||||
device.getMemoryManager()->freeGraphicsMemory(kernelReflectionSurface);
|
||||
program->peekExecutionEnvironment().memoryManager->freeGraphicsMemory(kernelReflectionSurface);
|
||||
kernelReflectionSurface = nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user