mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-27 11:03:04 +00:00
Fix CBP not doing its job
Thanks peri (again)
This commit is contained in:
parent
c4731c0555
commit
ef4a2fb3b5
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue