diff options
Diffstat (limited to 'src/citra_qt/debugger/graphics.cpp')
| -rw-r--r-- | src/citra_qt/debugger/graphics.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/citra_qt/debugger/graphics.cpp b/src/citra_qt/debugger/graphics.cpp index 0f911a015..a86a55404 100644 --- a/src/citra_qt/debugger/graphics.cpp +++ b/src/citra_qt/debugger/graphics.cpp | |||
| @@ -25,16 +25,16 @@ QVariant GPUCommandStreamItemModel::data(const QModelIndex& index, int role) con | |||
| 25 | return QVariant(); | 25 | return QVariant(); |
| 26 | 26 | ||
| 27 | int command_index = index.row(); | 27 | int command_index = index.row(); |
| 28 | const GSP_GPU::GXCommand& command = GetDebugger()->ReadGXCommandHistory(command_index); | 28 | const GSP_GPU::Command& command = GetDebugger()->ReadGXCommandHistory(command_index); |
| 29 | if (role == Qt::DisplayRole) | 29 | if (role == Qt::DisplayRole) |
| 30 | { | 30 | { |
| 31 | std::map<GSP_GPU::GXCommandId, const char*> command_names = { | 31 | std::map<GSP_GPU::CommandId, const char*> command_names = { |
| 32 | { GSP_GPU::GXCommandId::REQUEST_DMA, "REQUEST_DMA" }, | 32 | { GSP_GPU::CommandId::REQUEST_DMA, "REQUEST_DMA" }, |
| 33 | { GSP_GPU::GXCommandId::SET_COMMAND_LIST_FIRST, "SET_COMMAND_LIST_FIRST" }, | 33 | { GSP_GPU::CommandId::SET_COMMAND_LIST_FIRST, "SET_COMMAND_LIST_FIRST" }, |
| 34 | { GSP_GPU::GXCommandId::SET_MEMORY_FILL, "SET_MEMORY_FILL" }, | 34 | { GSP_GPU::CommandId::SET_MEMORY_FILL, "SET_MEMORY_FILL" }, |
| 35 | { GSP_GPU::GXCommandId::SET_DISPLAY_TRANSFER, "SET_DISPLAY_TRANSFER" }, | 35 | { GSP_GPU::CommandId::SET_DISPLAY_TRANSFER, "SET_DISPLAY_TRANSFER" }, |
| 36 | { GSP_GPU::GXCommandId::SET_TEXTURE_COPY, "SET_TEXTURE_COPY" }, | 36 | { GSP_GPU::CommandId::SET_TEXTURE_COPY, "SET_TEXTURE_COPY" }, |
| 37 | { GSP_GPU::GXCommandId::SET_COMMAND_LIST_LAST, "SET_COMMAND_LIST_LAST" } | 37 | { GSP_GPU::CommandId::SET_COMMAND_LIST_LAST, "SET_COMMAND_LIST_LAST" } |
| 38 | }; | 38 | }; |
| 39 | const u32* command_data = reinterpret_cast<const u32*>(&command); | 39 | const u32* command_data = reinterpret_cast<const u32*>(&command); |
| 40 | QString str = QString("%1 %2 %3 %4 %5 %6 %7 %8 %9").arg(command_names[command.id]) | 40 | QString str = QString("%1 %2 %3 %4 %5 %6 %7 %8 %9").arg(command_names[command.id]) |