aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/engines/maxwell_dma.h
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2022-12-18 18:09:59 -0500
committerameerj <52414509+ameerj@users.noreply.github.com>2022-12-19 18:08:04 -0500
commit4bc2d821300354e0d178c520b4b3520afbf8ff20 (patch)
tree89c6eff1a2ac90fc106ea229de211411f5f4871b /src/video_core/engines/maxwell_dma.h
parentcfc34dd41d63f45b0587d089b8ec7fc2ed27c04e (diff)
video_core: Add usages of ScratchBuffer
Diffstat (limited to 'src/video_core/engines/maxwell_dma.h')
-rw-r--r--src/video_core/engines/maxwell_dma.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/video_core/engines/maxwell_dma.h b/src/video_core/engines/maxwell_dma.h
index d40d3d302..c88191a61 100644
--- a/src/video_core/engines/maxwell_dma.h
+++ b/src/video_core/engines/maxwell_dma.h
@@ -6,8 +6,10 @@
#include <array>
#include <cstddef>
#include <vector>
+
#include "common/bit_field.h"
#include "common/common_types.h"
+#include "common/scratch_buffer.h"
#include "video_core/engines/engine_interface.h"
namespace Core {
@@ -234,9 +236,9 @@ private:
MemoryManager& memory_manager;
VideoCore::RasterizerInterface* rasterizer = nullptr;
- std::vector<u8> read_buffer;
- std::vector<u8> write_buffer;
- std::vector<u8> intermediate_buffer;
+ Common::ScratchBuffer<u8> read_buffer;
+ Common::ScratchBuffer<u8> write_buffer;
+ Common::ScratchBuffer<u8> intermediate_buffer;
static constexpr std::size_t NUM_REGS = 0x800;
struct Regs {