mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 15:12:56 +08:00
Ensure that submissions are flushed prior to csr destruction.
Change-Id: Ie04de561d3d295f40f55a19f01274d873d259abd
This commit is contained in:
@@ -92,8 +92,12 @@ Device::~Device() {
|
||||
if (performanceCounters) {
|
||||
performanceCounters->shutdown();
|
||||
}
|
||||
delete commandStreamReceiver;
|
||||
commandStreamReceiver = nullptr;
|
||||
if (commandStreamReceiver) {
|
||||
commandStreamReceiver->flushBatchedSubmissions();
|
||||
delete commandStreamReceiver;
|
||||
commandStreamReceiver = nullptr;
|
||||
}
|
||||
|
||||
if (memoryManager) {
|
||||
if (preemptionAllocation) {
|
||||
memoryManager->freeGraphicsMemory(preemptionAllocation);
|
||||
|
||||
Reference in New Issue
Block a user