From f6e4328b5a58ddfbb9a48b82ba83e370314fcf8a Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sun, 16 Oct 2022 20:56:06 +0100 Subject: [PATCH] Ensure blit src/dst textures are attached as execution cycle dependencies Since they're not in the TIC pool they would otherwise be freed --- app/src/main/cpp/skyline/gpu/interconnect/fermi_2d.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/cpp/skyline/gpu/interconnect/fermi_2d.cpp b/app/src/main/cpp/skyline/gpu/interconnect/fermi_2d.cpp index 9a535d1f..dbeb257f 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/fermi_2d.cpp +++ b/app/src/main/cpp/skyline/gpu/interconnect/fermi_2d.cpp @@ -114,9 +114,11 @@ namespace skyline::gpu::interconnect { auto dstGuestTexture{GetGuestTexture(dstSurface)}; auto srcTextureView{gpu.texture.FindOrCreate(srcGuestTexture, executor.tag)}; + executor.AttachDependency(srcTextureView); executor.AttachTexture(srcTextureView.get()); auto dstTextureView{gpu.texture.FindOrCreate(dstGuestTexture, executor.tag)}; + executor.AttachDependency(dstTextureView); executor.AttachTexture(dstTextureView.get()); // Blit shader always samples from centre so adjust if necessary