summaryrefslogtreecommitdiffstats
path: root/src/video_core/host1x
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2022-12-19 00:09:59 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2022-12-20 00:08:04 +0100
commit4bc2d821300354e0d178c520b4b3520afbf8ff20 (patch)
tree89c6eff1a2ac90fc106ea229de211411f5f4871b /src/video_core/host1x
parentcommon: Add ScratchBuffer class (diff)
downloadyuzu-4bc2d821300354e0d178c520b4b3520afbf8ff20.tar
yuzu-4bc2d821300354e0d178c520b4b3520afbf8ff20.tar.gz
yuzu-4bc2d821300354e0d178c520b4b3520afbf8ff20.tar.bz2
yuzu-4bc2d821300354e0d178c520b4b3520afbf8ff20.tar.lz
yuzu-4bc2d821300354e0d178c520b4b3520afbf8ff20.tar.xz
yuzu-4bc2d821300354e0d178c520b4b3520afbf8ff20.tar.zst
yuzu-4bc2d821300354e0d178c520b4b3520afbf8ff20.zip
Diffstat (limited to 'src/video_core/host1x')
-rw-r--r--src/video_core/host1x/vic.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/host1x/vic.h b/src/video_core/host1x/vic.h
index 2b78786e8..3d9753047 100644
--- a/src/video_core/host1x/vic.h
+++ b/src/video_core/host1x/vic.h
@@ -4,8 +4,9 @@
#pragma once
#include <memory>
-#include <vector>
+
#include "common/common_types.h"
+#include "common/scratch_buffer.h"
struct SwsContext;
@@ -49,8 +50,8 @@ private:
/// size does not change during a stream
using AVMallocPtr = std::unique_ptr<u8, decltype(&av_free)>;
AVMallocPtr converted_frame_buffer;
- std::vector<u8> luma_buffer;
- std::vector<u8> chroma_buffer;
+ Common::ScratchBuffer<u8> luma_buffer;
+ Common::ScratchBuffer<u8> chroma_buffer;
GPUVAddr config_struct_address{};
GPUVAddr output_surface_luma_address{};