summaryrefslogtreecommitdiff
path: root/src/video_core/cdma_pusher.h
diff options
context:
space:
mode:
authorGravatar ameerj2020-11-23 13:25:01 -0500
committerGravatar ameerj2021-02-13 13:07:31 -0500
commitac265a72ce4176ceb3cd10a5548ab71519771640 (patch)
tree0acde029388d465a5801db9106dd8f4e026e57e8 /src/video_core/cdma_pusher.h
parentMerge pull request #5919 from ReinUsesLisp/stream-buffer-tragic (diff)
downloadyuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.tar.gz
yuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.tar.xz
yuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.zip
nvdec cleanup
Diffstat (limited to 'src/video_core/cdma_pusher.h')
-rw-r--r--src/video_core/cdma_pusher.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/video_core/cdma_pusher.h b/src/video_core/cdma_pusher.h
index e5f212c1a..de7a3a35b 100644
--- a/src/video_core/cdma_pusher.h
+++ b/src/video_core/cdma_pusher.h
@@ -99,19 +99,13 @@ public:
99 explicit CDmaPusher(GPU& gpu_); 99 explicit CDmaPusher(GPU& gpu_);
100 ~CDmaPusher(); 100 ~CDmaPusher();
101 101
102 /// Push NVDEC command buffer entries into queue 102 /// Process the command entry
103 void Push(ChCommandHeaderList&& entries); 103 void ProcessEntries(ChCommandHeaderList&& entries);
104
105 /// Process queued command buffer entries
106 void DispatchCalls();
107
108 /// Process one queue element
109 void Step();
110 104
105private:
111 /// Invoke command class devices to execute the command based on the current state 106 /// Invoke command class devices to execute the command based on the current state
112 void ExecuteCommand(u32 state_offset, u32 data); 107 void ExecuteCommand(u32 state_offset, u32 data);
113 108
114private:
115 /// Write arguments value to the ThiRegisters member at the specified offset 109 /// Write arguments value to the ThiRegisters member at the specified offset
116 void ThiStateWrite(ThiRegisters& state, u32 state_offset, const std::vector<u32>& arguments); 110 void ThiStateWrite(ThiRegisters& state, u32 state_offset, const std::vector<u32>& arguments);
117 111
@@ -128,9 +122,6 @@ private:
128 s32 offset{}; 122 s32 offset{};
129 u32 mask{}; 123 u32 mask{};
130 bool incrementing{}; 124 bool incrementing{};
131
132 // Queue of command lists to be processed
133 std::queue<ChCommandHeaderList> cdma_queue;
134}; 125};
135 126
136} // namespace Tegra 127} // namespace Tegra