Ensure all pending draws are done before compute dispatch (#3822)

This commit is contained in:
gdkchan 2022-11-03 19:54:30 -03:00 committed by Matt Heins
parent 93a98a841b
commit 40e2bf21e4

View file

@ -94,6 +94,10 @@ namespace Ryujinx.Graphics.Gpu.Engine.Compute
{
var memoryManager = _channel.MemoryManager;
// Since we're going to change the state, make sure any pending instanced draws are done.
_3dEngine.PerformDeferredDraws();
// Make sure all pending uniform buffer data is written to memory.
_3dEngine.FlushUboDirty();
uint qmdAddress = _state.State.SendPcasA;