Core: Wait for GPU to be idle before shutting down.

This commit is contained in:
Fernando Sahmkow 2019-09-26 19:08:22 -04:00 committed by FernandoS27
parent 69fa2e6525
commit 3f104464de
7 changed files with 19 additions and 0 deletions

View file

@ -116,6 +116,9 @@ public:
/// Notify rasterizer that any caches of the specified region should be flushed and invalidated
void FlushAndInvalidateRegion(CacheAddr addr, u64 size);
// Wait until the gpu thread is idle.
void WaitIdle() const;
private:
/// Pushes a command to be executed by the GPU thread
u64 PushCommand(CommandData&& command_data);