diff options
author | bunnei <bunneidev@gmail.com> | 2014-12-03 07:05:16 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-12-10 01:07:13 +0100 |
commit | 170123982dfa8d5f7508d9808cf83d592267db21 (patch) | |
tree | d84e887fad4ad93a09fee3640c8fa5c658c25ffd /src/video_core | |
parent | Merge pull request #266 from yuriks/remove-ndma (diff) | |
download | yuzu-170123982dfa8d5f7508d9808cf83d592267db21.tar yuzu-170123982dfa8d5f7508d9808cf83d592267db21.tar.gz yuzu-170123982dfa8d5f7508d9808cf83d592267db21.tar.bz2 yuzu-170123982dfa8d5f7508d9808cf83d592267db21.tar.lz yuzu-170123982dfa8d5f7508d9808cf83d592267db21.tar.xz yuzu-170123982dfa8d5f7508d9808cf83d592267db21.tar.zst yuzu-170123982dfa8d5f7508d9808cf83d592267db21.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/command_processor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index 298b04c51..585323a81 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp @@ -272,8 +272,9 @@ static std::ptrdiff_t ExecuteCommandBlock(const u32* first_command_word) { void ProcessCommandList(const u32* list, u32 size) { u32* read_pointer = (u32*)list; + u32 list_length = size / sizeof(u32); - while (read_pointer < list + size) { + while (read_pointer < list + list_length) { read_pointer += ExecuteCommandBlock(read_pointer); } } |