Fix CBP not doing its job

Thanks peri (again)
This commit is contained in:
Isaac Marovitz 2024-06-26 22:38:43 +01:00
parent 0770fd0b5d
commit 2603c910e1
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1

View file

@ -27,6 +27,11 @@ namespace Ryujinx.Graphics.Metal
public List<IAuto> Dependants;
public List<MultiFenceHolder> Waitables;
public void Reinitialize(MTLCommandQueue queue)
{
CommandBuffer = queue.CommandBuffer();
}
public void Initialize(MTLCommandQueue queue)
{
CommandBuffer = queue.CommandBuffer();
@ -218,7 +223,7 @@ namespace Ryujinx.Graphics.Metal
commandBuffer.Commit();
// Replace entry with new MTLCommandBuffer
entry.Initialize(_queue);
entry.Reinitialize(_queue);
int ptr = (_queuedIndexesPtr + _queuedCount) % _totalCommandBuffers;
_queuedIndexes[ptr] = cbIndex;