Move destruction of command stream receiver to execution environment.

- remove other explicit resets, no longer needed.
- change the order of destruction, command stream receiver needs to be
destroyed prior to memory manager.

Change-Id: I3c5db46db15a2cb7dc9f6fdb0e06441806fbd9f2
This commit is contained in:
Mrozek, Michal
2018-07-16 13:01:10 +02:00
parent 0abacce160
commit f6dc90c903
4 changed files with 16 additions and 8 deletions

View File

@@ -106,9 +106,9 @@ Device::~Device() {
if (performanceCounters) {
performanceCounters->shutdown();
}
if (executionEnvironment->commandStreamReceiver) {
executionEnvironment->commandStreamReceiver->flushBatchedSubmissions();
executionEnvironment->commandStreamReceiver.reset(nullptr);
}
if (deviceInfo.sourceLevelDebuggerActive && sourceLevelDebugger) {