mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
[11/n] Allocate graphics allocations during processKernel.
- This ensures each kernel has ISH set up after it is created. - refactor freeBlockPrivateSurfaces to freeBlockResources, this is to properly clean allocations for blocks - Add method cleanCurrentKernelInfo to avoid code duplication in KernelInfo cleanup Change-Id: I01f155d434579fe5ce2675bc4e89b04628ef8158
This commit is contained in:
@@ -86,6 +86,8 @@ Device::Device(const HardwareInfo &hwInfo,
|
||||
}
|
||||
|
||||
Device::~Device() {
|
||||
BuiltIns::shutDown();
|
||||
CompilerInterface::shutdown();
|
||||
DEBUG_BREAK_IF(nullptr == memoryManager);
|
||||
if (performanceCounters) {
|
||||
performanceCounters->shutdown();
|
||||
@@ -105,8 +107,6 @@ Device::~Device() {
|
||||
tagAllocation = nullptr;
|
||||
delete memoryManager;
|
||||
memoryManager = nullptr;
|
||||
BuiltIns::shutDown();
|
||||
CompilerInterface::shutdown();
|
||||
}
|
||||
|
||||
bool Device::createDeviceImpl(const HardwareInfo *pHwInfo,
|
||||
|
||||
Reference in New Issue
Block a user