diff options
| author | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-12-25 15:47:41 -0500 |
|---|---|---|
| committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-12-25 15:47:41 -0500 |
| commit | d45c01bd13af3757046bbb683455cea25d610619 (patch) | |
| tree | 7f39c17d9bb10b47cf1a41df66b0fd621dc97eb8 /src/video_core/texture_cache/util.h | |
| parent | 51eb1f4aab8ed8ef2cbaf8347e616c3d7120a339 (diff) | |
texture_cache: Use Common::ScratchBuffer for swizzle buffers
Diffstat (limited to 'src/video_core/texture_cache/util.h')
| -rw-r--r-- | src/video_core/texture_cache/util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/util.h b/src/video_core/texture_cache/util.h index 2c991b4d25..d103db8aeb 100644 --- a/src/video_core/texture_cache/util.h +++ b/src/video_core/texture_cache/util.h @@ -7,6 +7,7 @@ #include <span> #include "common/common_types.h" +#include "common/scratch_buffer.h" #include "video_core/surface.h" #include "video_core/texture_cache/image_base.h" @@ -78,7 +79,7 @@ void ConvertImage(std::span<const u8> input, const ImageInfo& info, std::span<u8 void SwizzleImage(Tegra::MemoryManager& gpu_memory, GPUVAddr gpu_addr, const ImageInfo& info, std::span<const BufferImageCopy> copies, std::span<const u8> memory, - std::vector<u8>& tmp_buffer); + Common::ScratchBuffer<u8>& tmp_buffer); [[nodiscard]] bool IsBlockLinearSizeCompatible(const ImageInfo& new_info, const ImageInfo& overlap_info, u32 new_level, |
