mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Update the entire application to use the new clang format style
This commit is contained in:
		
							parent
							
								
									ed36edf69c
								
							
						
					
					
						commit
						f61141e86a
					
				
					 148 changed files with 955 additions and 552 deletions
				
			
		|  | @ -66,8 +66,9 @@ OutputVertex OutputVertex::FromAttributeBuffer(const RasterizerRegs& regs, | |||
|         ret.color[i] = float24::FromFloat32(c < 1.0f ? c : 1.0f); | ||||
|     } | ||||
| 
 | ||||
|     LOG_TRACE(HW_GPU, "Output vertex: pos(%.2f, %.2f, %.2f, %.2f), quat(%.2f, %.2f, %.2f, %.2f), " | ||||
|                       "col(%.2f, %.2f, %.2f, %.2f), tc0(%.2f, %.2f), view(%.2f, %.2f, %.2f)", | ||||
|     LOG_TRACE(HW_GPU, | ||||
|               "Output vertex: pos(%.2f, %.2f, %.2f, %.2f), quat(%.2f, %.2f, %.2f, %.2f), " | ||||
|               "col(%.2f, %.2f, %.2f, %.2f), tc0(%.2f, %.2f), view(%.2f, %.2f, %.2f)", | ||||
|               ret.pos.x.ToFloat32(), ret.pos.y.ToFloat32(), ret.pos.z.ToFloat32(), | ||||
|               ret.pos.w.ToFloat32(), ret.quat.x.ToFloat32(), ret.quat.y.ToFloat32(), | ||||
|               ret.quat.z.ToFloat32(), ret.quat.w.ToFloat32(), ret.color.x.ToFloat32(), | ||||
|  |  | |||
|  | @ -17,9 +17,9 @@ | |||
| #include "video_core/regs_rasterizer.h" | ||||
| #include "video_core/regs_shader.h" | ||||
| 
 | ||||
| using nihstro::DestRegister; | ||||
| using nihstro::RegisterType; | ||||
| using nihstro::SourceRegister; | ||||
| using nihstro::DestRegister; | ||||
| 
 | ||||
| namespace Pica { | ||||
| 
 | ||||
|  |  | |||
|  | @ -19,8 +19,8 @@ | |||
| #include "video_core/shader/shader.h" | ||||
| #include "video_core/shader/shader_interpreter.h" | ||||
| 
 | ||||
| using nihstro::OpCode; | ||||
| using nihstro::Instruction; | ||||
| using nihstro::OpCode; | ||||
| using nihstro::RegisterType; | ||||
| using nihstro::SourceRegister; | ||||
| using nihstro::SwizzlePattern; | ||||
|  | @ -696,6 +696,6 @@ DebugData<true> InterpreterEngine::ProduceDebugInfo(const ShaderSetup& setup, | |||
|     return debug_data; | ||||
| } | ||||
| 
 | ||||
| } // namespace
 | ||||
| } // namespace Shader
 | ||||
| 
 | ||||
| } // namespace
 | ||||
| } // namespace Pica
 | ||||
|  |  | |||
|  | @ -27,6 +27,6 @@ public: | |||
|                                      const ShaderRegs& config) const; | ||||
| }; | ||||
| 
 | ||||
| } // namespace
 | ||||
| } // namespace Shader
 | ||||
| 
 | ||||
| } // namespace
 | ||||
| } // namespace Pica
 | ||||
|  |  | |||
|  | @ -139,13 +139,20 @@ static const Xmm NEGBIT = xmm15; | |||
| // Scratch registers, e.g., SRC1 and SCRATCH, have to be saved on the side if needed
 | ||||
| static const BitSet32 persistent_regs = BuildRegSet({ | ||||
|     // Pointers to register blocks
 | ||||
|     SETUP, STATE, | ||||
|     SETUP, | ||||
|     STATE, | ||||
|     // Cached registers
 | ||||
|     ADDROFFS_REG_0, ADDROFFS_REG_1, LOOPCOUNT_REG, COND0, COND1, | ||||
|     ADDROFFS_REG_0, | ||||
|     ADDROFFS_REG_1, | ||||
|     LOOPCOUNT_REG, | ||||
|     COND0, | ||||
|     COND1, | ||||
|     // Constants
 | ||||
|     ONE, NEGBIT, | ||||
|     ONE, | ||||
|     NEGBIT, | ||||
|     // Loop variables
 | ||||
|     LOOPCOUNT, LOOPINC, | ||||
|     LOOPCOUNT, | ||||
|     LOOPINC, | ||||
| }); | ||||
| 
 | ||||
| /// Raw constant for the source register selector that indicates no swizzling is performed
 | ||||
|  |  | |||
|  | @ -132,6 +132,6 @@ private: | |||
|     Xbyak::Label exp2_subroutine; | ||||
| }; | ||||
| 
 | ||||
| } // Shader
 | ||||
| } // namespace Shader
 | ||||
| 
 | ||||
| } // Pica
 | ||||
| } // namespace Pica
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue