summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_classes/vic.h
diff options
context:
space:
mode:
authorameerj <aj662@drexel.edu>2020-11-23 19:25:01 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2021-02-13 19:07:31 +0100
commitac265a72ce4176ceb3cd10a5548ab71519771640 (patch)
tree0acde029388d465a5801db9106dd8f4e026e57e8 /src/video_core/command_classes/vic.h
parentMerge pull request #5919 from ReinUsesLisp/stream-buffer-tragic (diff)
downloadyuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.tar
yuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.tar.gz
yuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.tar.bz2
yuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.tar.lz
yuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.tar.xz
yuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.tar.zst
yuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.zip
Diffstat (limited to 'src/video_core/command_classes/vic.h')
-rw-r--r--src/video_core/command_classes/vic.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/command_classes/vic.h b/src/video_core/command_classes/vic.h
index 8c4e284a1..6eaf72f21 100644
--- a/src/video_core/command_classes/vic.h
+++ b/src/video_core/command_classes/vic.h
@@ -97,6 +97,13 @@ private:
GPU& gpu;
std::shared_ptr<Tegra::Nvdec> nvdec_processor;
+ /// Avoid reallocation of the following buffers every frame, as their
+ /// 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;
+
GPUVAddr config_struct_address{};
GPUVAddr output_surface_luma_address{};
GPUVAddr output_surface_chroma_u_address{};