Skip to content

Commit

Permalink
Disable DMA GPU copy for block linear to linear copies (#5927)
Browse files Browse the repository at this point in the history
* Disable DMA GPU copy for block linear to linear copies

* Simplify check

* PR feedback
  • Loading branch information
gdkchan authored Nov 15, 2023
1 parent 1329c47 commit 5b3662b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Ryujinx.Graphics.Gpu/Engine/Dma/DmaClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,11 @@ private void DmaCopy(int argument)
bool completeSource = IsTextureCopyComplete(src, srcLinear, srcBpp, srcStride, xCount, yCount);
bool completeDest = IsTextureCopyComplete(dst, dstLinear, dstBpp, dstStride, xCount, yCount);

if (completeSource && completeDest)
// Try to set the texture data directly,
// but only if we are doing a complete copy,
// and not for block linear to linear copies, since those are typically accessed from the CPU.

if (completeSource && completeDest && !(dstLinear && !srcLinear))
{
var target = memoryManager.Physical.TextureCache.FindTexture(
memoryManager,
Expand Down

0 comments on commit 5b3662b

Please sign in to comment.