summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache/texture_cache_base.h
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2022-12-25 21:47:41 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2022-12-25 21:47:41 +0100
commit7584d36922669808b7c8a62667380453687b0ad9 (patch)
tree7f39c17d9bb10b47cf1a41df66b0fd621dc97eb8 /src/video_core/texture_cache/texture_cache_base.h
parenttexture_cache: Use pre-allocated buffer for texture downloads (diff)
downloadyuzu-7584d36922669808b7c8a62667380453687b0ad9.tar
yuzu-7584d36922669808b7c8a62667380453687b0ad9.tar.gz
yuzu-7584d36922669808b7c8a62667380453687b0ad9.tar.bz2
yuzu-7584d36922669808b7c8a62667380453687b0ad9.tar.lz
yuzu-7584d36922669808b7c8a62667380453687b0ad9.tar.xz
yuzu-7584d36922669808b7c8a62667380453687b0ad9.tar.zst
yuzu-7584d36922669808b7c8a62667380453687b0ad9.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/texture_cache/texture_cache_base.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/texture_cache_base.h b/src/video_core/texture_cache/texture_cache_base.h
index 67e8acf25..4fd677a80 100644
--- a/src/video_core/texture_cache/texture_cache_base.h
+++ b/src/video_core/texture_cache/texture_cache_base.h
@@ -17,6 +17,7 @@
#include "common/literals.h"
#include "common/lru_cache.h"
#include "common/polyfill_ranges.h"
+#include "common/scratch_buffer.h"
#include "video_core/compatible_formats.h"
#include "video_core/control/channel_state_cache.h"
#include "video_core/delayed_destruction_ring.h"
@@ -417,8 +418,8 @@ private:
std::unordered_map<GPUVAddr, ImageAllocId> image_allocs_table;
- std::vector<u8> swizzle_data_buffer;
- std::vector<u8> unswizzle_data_buffer;
+ Common::ScratchBuffer<u8> swizzle_data_buffer;
+ Common::ScratchBuffer<u8> unswizzle_data_buffer;
u64 modification_tick = 0;
u64 frame_tick = 0;