[GPU] Free the command processor in the destructor rather than on shutdown

Fixes a race condition: TDR followed by WriteRegister will cause a crash. It's okay to continue writing to the command processor (it may be setup again later).
This commit is contained in:
DrChat 2018-02-28 15:09:40 -06:00
parent a976056afb
commit 702a8732c8
1 changed files with 0 additions and 5 deletions

View File

@ -138,12 +138,7 @@ X_STATUS GraphicsSystem::Setup(cpu::Processor* processor,
void GraphicsSystem::Shutdown() {
if (command_processor_) {
EndTracing();
}
if (command_processor_) {
command_processor_->Shutdown();
// TODO(benvanik): remove mapped range.
command_processor_.reset();
}
if (vsync_worker_thread_) {