aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/video_core/gpu_debugger.h
diff options
context:
space:
mode:
authorGravatar Tony Wasserka <NeoBrainX@gmail.com>2014-07-26 14:42:46 +0200
committerGravatar Tony Wasserka <NeoBrainX@gmail.com>2014-08-12 13:47:30 +0200
commit76a586de4952df6d8dd9db9d97716c00690cebdd (patch)
treead6a954780faa4ab7908780e4ab605952b7e400b /src/video_core/gpu_debugger.h
parent98ad16a45b9441a54d80e67425ac3ddee24f08dc (diff)
Pica: Add command processor.
Diffstat (limited to 'src/video_core/gpu_debugger.h')
-rw-r--r--src/video_core/gpu_debugger.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/video_core/gpu_debugger.h b/src/video_core/gpu_debugger.h
index 5d85f90b..2ba87345 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();