Add debugging for GPU/Timers

This commit is contained in:
Connor McLaughlin
2019-10-12 22:15:38 +10:00
parent b945d10b04
commit 0f68c8c5d3
12 changed files with 204 additions and 46 deletions

View File

@ -40,7 +40,7 @@ public:
virtual void RestoreGraphicsAPIState();
// Render statistics debug window.
virtual void DrawStatistics();
virtual void DrawDebugWindows();
// Manipulating debug options.
virtual void DrawDebugMenu();
@ -162,9 +162,10 @@ protected:
struct DebugOptions
{
bool show_vram;
bool dump_cpu_to_vram_copies;
bool dump_vram_to_cpu_copies;
bool show_state = false;
bool show_vram = false;
bool dump_cpu_to_vram_copies = false;
bool dump_vram_to_cpu_copies = false;
};
void SoftReset();
@ -200,6 +201,9 @@ protected:
virtual void DispatchRenderCommand(RenderCommand rc, u32 num_vertices);
virtual void FlushRender();
// Debugging
void DrawDebugStateWindow();
System* m_system = nullptr;
DMA* m_dma = nullptr;
InterruptController* m_interrupt_controller = nullptr;
@ -351,5 +355,5 @@ protected:
std::vector<u32> m_GP0_command;
std::deque<u32> m_GPUREAD_buffer;
DebugOptions m_debug_options = {};
DebugOptions m_debug_options;
};