[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:
Mrozek, Michal
2018-03-08 11:56:44 +01:00
parent 8d5e099aa3
commit 2bb64b2d11
9 changed files with 102 additions and 38 deletions

View File

@@ -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,