mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-02-22 17:10:19 +00:00
Use current command buffer for unscaled copy (perf)
Avoids flushing commands and renting a command buffer when fulfilling copy dependencies and when games do unscaled copies.
This commit is contained in:
parent
f6c2f7a8d6
commit
76a5beeb70
1 changed files with 3 additions and 3 deletions
|
@ -187,8 +187,6 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
|
|
||||||
public void CopyTo(ITexture destination, int srcLayer, int dstLayer, int srcLevel, int dstLevel)
|
public void CopyTo(ITexture destination, int srcLayer, int dstLayer, int srcLevel, int dstLevel)
|
||||||
{
|
{
|
||||||
_gd.FlushAllCommands();
|
|
||||||
|
|
||||||
var src = this;
|
var src = this;
|
||||||
var dst = (TextureView)destination;
|
var dst = (TextureView)destination;
|
||||||
|
|
||||||
|
@ -197,7 +195,9 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
using var cbs = _gd.CommandBufferPool.Rent();
|
_gd.PipelineInternal.EndRenderPass();
|
||||||
|
|
||||||
|
var cbs = _gd.PipelineInternal.CurrentCommandBuffer;
|
||||||
|
|
||||||
var srcImage = src.GetImage().Get(cbs).Value;
|
var srcImage = src.GetImage().Get(cbs).Value;
|
||||||
var dstImage = dst.GetImage().Get(cbs).Value;
|
var dstImage = dst.GetImage().Get(cbs).Value;
|
||||||
|
|
Loading…
Reference in a new issue