diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-21 18:31:30 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-04-24 23:49:19 +0200 |
commit | 239ac8abe228b9080741ba7d50d9e13cc4a1ceae (patch) | |
tree | 14b6df493ec5ff15faf2c7b71e45fe7d8ebb53df /src/video_core/command_processor.cpp | |
parent | memory_manager: Use GPUVAdddr, not PAddr, for GPU addresses. (diff) | |
download | yuzu-239ac8abe228b9080741ba7d50d9e13cc4a1ceae.tar yuzu-239ac8abe228b9080741ba7d50d9e13cc4a1ceae.tar.gz yuzu-239ac8abe228b9080741ba7d50d9e13cc4a1ceae.tar.bz2 yuzu-239ac8abe228b9080741ba7d50d9e13cc4a1ceae.tar.lz yuzu-239ac8abe228b9080741ba7d50d9e13cc4a1ceae.tar.xz yuzu-239ac8abe228b9080741ba7d50d9e13cc4a1ceae.tar.zst yuzu-239ac8abe228b9080741ba7d50d9e13cc4a1ceae.zip |
Diffstat (limited to 'src/video_core/command_processor.cpp')
-rw-r--r-- | src/video_core/command_processor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index 7850ae103..2c04daba3 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp @@ -90,9 +90,9 @@ void GPU::WriteReg(u32 method, u32 subchannel, u32 value, u32 remaining_params) } void GPU::ProcessCommandList(GPUVAddr address, u32 size) { - const VAddr head_address = memory_manager->GpuToCpuAddress(address); - VAddr current_addr = head_address; - while (current_addr < head_address + size * sizeof(CommandHeader)) { + const boost::optional<VAddr> head_address = memory_manager->GpuToCpuAddress(address); + VAddr current_addr = *head_address; + while (current_addr < *head_address + size * sizeof(CommandHeader)) { const CommandHeader header = {Memory::Read32(current_addr)}; current_addr += sizeof(u32); |