mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	Qt/GPU Breakpoints: Added three more breakpoint types:
* IncomingDisplayTransfer: Triggered just before a display transfer is performed. * GSPCommandProcessed: Triggered right after a GSP command is processed. * BufferSwapped: Triggered when the frames flip
This commit is contained in:
		
							parent
							
								
									3a5352baf8
								
							
						
					
					
						commit
						6c0ea5f5e8
					
				
					 5 changed files with 24 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -14,6 +14,7 @@
 | 
			
		|||
#include "core/hw/lcd.h"
 | 
			
		||||
 | 
			
		||||
#include "video_core/gpu_debugger.h"
 | 
			
		||||
#include "video_core/debug_utils/debug_utils.h"
 | 
			
		||||
#include "video_core/renderer_base.h"
 | 
			
		||||
#include "video_core/video_core.h"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -226,6 +227,9 @@ void SetBufferSwap(u32 screen_id, const FrameBufferInfo& info) {
 | 
			
		|||
            &info.format);
 | 
			
		||||
    WriteHWRegs(base_address + 4 * static_cast<u32>(GPU_REG_INDEX(framebuffer_config[screen_id].active_fb)), 4,
 | 
			
		||||
            &info.shown_fb);
 | 
			
		||||
 | 
			
		||||
    if (Pica::g_debug_context)
 | 
			
		||||
        Pica::g_debug_context->OnEvent(Pica::DebugContext::Event::BufferSwapped, nullptr);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			@ -448,6 +452,9 @@ static void ExecuteCommand(const Command& command, u32 thread_id) {
 | 
			
		|||
    default:
 | 
			
		||||
        LOG_ERROR(Service_GSP, "unknown command 0x%08X", (int)command.id.Value());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (Pica::g_debug_context)
 | 
			
		||||
        Pica::g_debug_context->OnEvent(Pica::DebugContext::Event::GSPCommandProcessed, (void*)&command);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue