mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	maxwell_3d: update comments for shadow ram usage
This commit is contained in:
		@@ -160,7 +160,7 @@ void Maxwell3D::CallMethod(const GPU::MethodCall& method_call) {
 | 
			
		||||
    ASSERT_MSG(method < Regs::NUM_REGS,
 | 
			
		||||
               "Invalid Maxwell3D register, increase the size of the Regs structure");
 | 
			
		||||
 | 
			
		||||
    // Keep track of the register value in shadow_regs when requested.
 | 
			
		||||
    // Keep track of the register value in shadow_state when requested.
 | 
			
		||||
    if (regs.shadow_ram_control == Regs::ShadowRamControl::Track ||
 | 
			
		||||
        regs.shadow_ram_control == Regs::ShadowRamControl::TrackWithFilter) {
 | 
			
		||||
        shadow_state.reg_array[method] = method_call.argument;
 | 
			
		||||
 
 | 
			
		||||
@@ -532,9 +532,13 @@ public:
 | 
			
		||||
        };
 | 
			
		||||
 | 
			
		||||
        enum class ShadowRamControl : u32 {
 | 
			
		||||
            // write value to shadow ram
 | 
			
		||||
            Track = 0,
 | 
			
		||||
            // write value to shadow ram ( with validation ??? )
 | 
			
		||||
            TrackWithFilter = 1,
 | 
			
		||||
            // only write to real hw register
 | 
			
		||||
            Passthrough = 2,
 | 
			
		||||
            // write value from shadow ram to real hw register
 | 
			
		||||
            Replay = 3,
 | 
			
		||||
        };
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user