mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
fix: Reset builtins pointer after its resources are freed
Add resetBuiltins helper function to MockRootDeviceEnvironment. Update tests to use the new function whenever builtins unique pointer is reset to ensure that sip kernels are properly freed. Related-To: HSD-18038645398, HSD-18038819112 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
cd3219d092
commit
0d61860af6
@@ -39,6 +39,7 @@ void ExecutionEnvironment::releaseRootDeviceEnvironmentResources(RootDeviceEnvir
|
||||
SipKernel::freeSipKernels(rootDeviceEnvironment, memoryManager.get());
|
||||
if (rootDeviceEnvironment->builtins.get()) {
|
||||
rootDeviceEnvironment->builtins->freeSipKernels(memoryManager.get());
|
||||
rootDeviceEnvironment->builtins.reset();
|
||||
}
|
||||
rootDeviceEnvironment->releaseDummyAllocation();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user