Fix CBP not doing its job
Thanks peri (again)
This commit is contained in:
parent
16bc02ea2a
commit
0b6bc12a65
@ -27,6 +27,11 @@ namespace Ryujinx.Graphics.Metal
|
|||||||
public List<IAuto> Dependants;
|
public List<IAuto> Dependants;
|
||||||
public List<MultiFenceHolder> Waitables;
|
public List<MultiFenceHolder> Waitables;
|
||||||
|
|
||||||
|
public void Reinitialize(MTLCommandQueue queue)
|
||||||
|
{
|
||||||
|
CommandBuffer = queue.CommandBuffer();
|
||||||
|
}
|
||||||
|
|
||||||
public void Initialize(MTLCommandQueue queue)
|
public void Initialize(MTLCommandQueue queue)
|
||||||
{
|
{
|
||||||
CommandBuffer = queue.CommandBuffer();
|
CommandBuffer = queue.CommandBuffer();
|
||||||
@ -218,7 +223,7 @@ namespace Ryujinx.Graphics.Metal
|
|||||||
commandBuffer.Commit();
|
commandBuffer.Commit();
|
||||||
|
|
||||||
// Replace entry with new MTLCommandBuffer
|
// Replace entry with new MTLCommandBuffer
|
||||||
entry.Initialize(_queue);
|
entry.Reinitialize(_queue);
|
||||||
|
|
||||||
int ptr = (_queuedIndexesPtr + _queuedCount) % _totalCommandBuffers;
|
int ptr = (_queuedIndexesPtr + _queuedCount) % _totalCommandBuffers;
|
||||||
_queuedIndexes[ptr] = cbIndex;
|
_queuedIndexes[ptr] = cbIndex;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user