mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Further refine GPU command list debugging.
This commit is contained in:
		
							parent
							
								
									b0051b2203
								
							
						
					
					
						commit
						f82410e633
					
				
					 3 changed files with 27 additions and 4 deletions
				
			
		|  | @ -100,6 +100,7 @@ public: | |||
|             auto& cmd = cmdlist.back(); | ||||
| 
 | ||||
|             size_t size = 2 + header.extra_data_length; | ||||
|             size = (size + 1) / 2 * 2; // align to 8 bytes
 | ||||
|             cmd.reserve(size); | ||||
|             std::copy(parse_pointer, parse_pointer + size, std::back_inserter(cmd)); | ||||
| 
 | ||||
|  |  | |||
|  | @ -4,6 +4,9 @@ | |||
| 
 | ||||
| #pragma once | ||||
| 
 | ||||
| #include <initializer_list> | ||||
| #include <map> | ||||
| 
 | ||||
| #include "common/bit_field.h" | ||||
| #include "common/common_types.h" | ||||
| 
 | ||||
|  | @ -34,4 +37,17 @@ union CommandHeader { | |||
|     BitField<31,  1, u32> group_commands; | ||||
| }; | ||||
| 
 | ||||
| static std::map<CommandId, const char*> command_names = { | ||||
|     {CommandId::ViewportSizeX, "ViewportSizeX" }, | ||||
|     {CommandId::ViewportInvSizeX, "ViewportInvSizeX" }, | ||||
|     {CommandId::ViewportSizeY, "ViewportSizeY" }, | ||||
|     {CommandId::ViewportInvSizeY, "ViewportInvSizeY" }, | ||||
|     {CommandId::ViewportCorner, "ViewportCorner" }, | ||||
|     {CommandId::DepthBufferFormat, "DepthBufferFormat" }, | ||||
|     {CommandId::ColorBufferFormat, "ColorBufferFormat" }, | ||||
|     {CommandId::DepthBufferAddress, "DepthBufferAddress" }, | ||||
|     {CommandId::ColorBufferAddress, "ColorBufferAddress" }, | ||||
|     {CommandId::ColorBufferSize, "ColorBufferSize" }, | ||||
| }; | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue