diff options
author | Tony Wasserka <NeoBrainX@gmail.com> | 2014-07-26 14:42:46 +0200 |
---|---|---|
committer | Tony Wasserka <NeoBrainX@gmail.com> | 2014-08-12 13:47:30 +0200 |
commit | 76a586de4952df6d8dd9db9d97716c00690cebdd (patch) | |
tree | ad6a954780faa4ab7908780e4ab605952b7e400b /src/video_core/gpu_debugger.h | |
parent | Pica: Add float24 structure. (diff) | |
download | yuzu-76a586de4952df6d8dd9db9d97716c00690cebdd.tar yuzu-76a586de4952df6d8dd9db9d97716c00690cebdd.tar.gz yuzu-76a586de4952df6d8dd9db9d97716c00690cebdd.tar.bz2 yuzu-76a586de4952df6d8dd9db9d97716c00690cebdd.tar.lz yuzu-76a586de4952df6d8dd9db9d97716c00690cebdd.tar.xz yuzu-76a586de4952df6d8dd9db9d97716c00690cebdd.tar.zst yuzu-76a586de4952df6d8dd9db9d97716c00690cebdd.zip |
Diffstat (limited to 'src/video_core/gpu_debugger.h')
-rw-r--r-- | src/video_core/gpu_debugger.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/video_core/gpu_debugger.h b/src/video_core/gpu_debugger.h index 5d85f90b9..2ba873457 100644 --- a/src/video_core/gpu_debugger.h +++ b/src/video_core/gpu_debugger.h @@ -11,6 +11,8 @@ #include "common/log.h" #include "core/hle/service/gsp.h" + +#include "command_processor.h" #include "pica.h" class GraphicsDebugger @@ -20,10 +22,10 @@ public: // A vector of commands represented by their raw byte sequence struct PicaCommand : public std::vector<u32> { - const Pica::CommandHeader& GetHeader() const + const Pica::CommandProcessor::CommandHeader& GetHeader() const { const u32& val = at(1); - return *(Pica::CommandHeader*)&val; + return *(Pica::CommandProcessor::CommandHeader*)&val; } }; @@ -99,7 +101,7 @@ public: PicaCommandList cmdlist; for (u32* parse_pointer = command_list; parse_pointer < command_list + size_in_words;) { - const Pica::CommandHeader header = static_cast<Pica::CommandHeader>(parse_pointer[1]); + const Pica::CommandProcessor::CommandHeader& header = *(Pica::CommandProcessor::CommandHeader*)(&parse_pointer[1]); cmdlist.push_back(PicaCommand()); auto& cmd = cmdlist.back(); |