summaryrefslogtreecommitdiff
path: root/src/video_core/gpu_debugger.h
diff options
context:
space:
mode:
authorGravatar Tony Wasserka2014-07-26 14:42:46 +0200
committerGravatar Tony Wasserka2014-08-12 13:47:30 +0200
commit76a586de4952df6d8dd9db9d97716c00690cebdd (patch)
treead6a954780faa4ab7908780e4ab605952b7e400b /src/video_core/gpu_debugger.h
parentPica: Add float24 structure. (diff)
downloadyuzu-76a586de4952df6d8dd9db9d97716c00690cebdd.tar.gz
yuzu-76a586de4952df6d8dd9db9d97716c00690cebdd.tar.xz
yuzu-76a586de4952df6d8dd9db9d97716c00690cebdd.zip
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 5d85f90b9..2ba873457 100644
--- a/src/video_core/gpu_debugger.h
+++ b/src/video_core/gpu_debugger.h
@@ -11,6 +11,8 @@
11#include "common/log.h" 11#include "common/log.h"
12 12
13#include "core/hle/service/gsp.h" 13#include "core/hle/service/gsp.h"
14
15#include "command_processor.h"
14#include "pica.h" 16#include "pica.h"
15 17
16class GraphicsDebugger 18class GraphicsDebugger
@@ -20,10 +22,10 @@ public:
20 // A vector of commands represented by their raw byte sequence 22 // A vector of commands represented by their raw byte sequence
21 struct PicaCommand : public std::vector<u32> 23 struct PicaCommand : public std::vector<u32>
22 { 24 {
23 const Pica::CommandHeader& GetHeader() const 25 const Pica::CommandProcessor::CommandHeader& GetHeader() const
24 { 26 {
25 const u32& val = at(1); 27 const u32& val = at(1);
26 return *(Pica::CommandHeader*)&val; 28 return *(Pica::CommandProcessor::CommandHeader*)&val;
27 } 29 }
28 }; 30 };
29 31
@@ -99,7 +101,7 @@ public:
99 PicaCommandList cmdlist; 101 PicaCommandList cmdlist;
100 for (u32* parse_pointer = command_list; parse_pointer < command_list + size_in_words;) 102 for (u32* parse_pointer = command_list; parse_pointer < command_list + size_in_words;)
101 { 103 {
102 const Pica::CommandHeader header = static_cast<Pica::CommandHeader>(parse_pointer[1]); 104 const Pica::CommandProcessor::CommandHeader& header = *(Pica::CommandProcessor::CommandHeader*)(&parse_pointer[1]);
103 105
104 cmdlist.push_back(PicaCommand()); 106 cmdlist.push_back(PicaCommand());
105 auto& cmd = cmdlist.back(); 107 auto& cmd = cmdlist.back();