summaryrefslogtreecommitdiff
path: root/src/citra_qt/debugger/graphics.cpp
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2015-09-07 19:22:44 -0300
committerGravatar Yuri Kunde Schlesner2015-09-14 16:19:05 -0300
commit1ed7f3e0281de29fd99f7d4802fcc5a1906930f8 (patch)
tree33034d2a72224e6b134c7e8b51ab8b1b9e882900 /src/citra_qt/debugger/graphics.cpp
parentMerge pull request #1152 from lioncash/nullptr (diff)
downloadyuzu-1ed7f3e0281de29fd99f7d4802fcc5a1906930f8.tar.gz
yuzu-1ed7f3e0281de29fd99f7d4802fcc5a1906930f8.tar.xz
yuzu-1ed7f3e0281de29fd99f7d4802fcc5a1906930f8.zip
GSP: Implement command 0x05, used for flushing caches
May fix additional texture caching issues. (Though mostly in homebrew, I haven't seen any commercial software use this to flush anything but command lists.)
Diffstat (limited to 'src/citra_qt/debugger/graphics.cpp')
-rw-r--r--src/citra_qt/debugger/graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/citra_qt/debugger/graphics.cpp b/src/citra_qt/debugger/graphics.cpp
index 8008f914c..eccd619ba 100644
--- a/src/citra_qt/debugger/graphics.cpp
+++ b/src/citra_qt/debugger/graphics.cpp
@@ -30,11 +30,11 @@ QVariant GPUCommandStreamItemModel::data(const QModelIndex& index, int role) con
30 { 30 {
31 std::map<GSP_GPU::CommandId, const char*> command_names = { 31 std::map<GSP_GPU::CommandId, const char*> command_names = {
32 { GSP_GPU::CommandId::REQUEST_DMA, "REQUEST_DMA" }, 32 { GSP_GPU::CommandId::REQUEST_DMA, "REQUEST_DMA" },
33 { GSP_GPU::CommandId::SET_COMMAND_LIST_FIRST, "SET_COMMAND_LIST_FIRST" }, 33 { GSP_GPU::CommandId::SUBMIT_GPU_CMDLIST, "SUBMIT_GPU_CMDLIST" },
34 { GSP_GPU::CommandId::SET_MEMORY_FILL, "SET_MEMORY_FILL" }, 34 { GSP_GPU::CommandId::SET_MEMORY_FILL, "SET_MEMORY_FILL" },
35 { GSP_GPU::CommandId::SET_DISPLAY_TRANSFER, "SET_DISPLAY_TRANSFER" }, 35 { GSP_GPU::CommandId::SET_DISPLAY_TRANSFER, "SET_DISPLAY_TRANSFER" },
36 { GSP_GPU::CommandId::SET_TEXTURE_COPY, "SET_TEXTURE_COPY" }, 36 { GSP_GPU::CommandId::SET_TEXTURE_COPY, "SET_TEXTURE_COPY" },
37 { GSP_GPU::CommandId::SET_COMMAND_LIST_LAST, "SET_COMMAND_LIST_LAST" } 37 { GSP_GPU::CommandId::CACHE_FLUSH, "CACHE_FLUSH" },
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])