mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	common/telemetry: Migrate namespace into the Common namespace
Migrates the Telemetry namespace into the Common namespace to make the code consistent with the rest of our common code.
This commit is contained in:
		
							parent
							
								
									ddb4135dea
								
							
						
					
					
						commit
						10f440cb59
					
				
					 15 changed files with 47 additions and 43 deletions
				
			
		|  | @ -1532,8 +1532,8 @@ vec4 secondary_fragment_color = vec4(0.0); | |||
|         // Blend the fog
 | ||||
|         out += "last_tex_env_out.rgb = mix(fog_color.rgb, last_tex_env_out.rgb, fog_factor);\n"; | ||||
|     } else if (state.fog_mode == TexturingRegs::FogMode::Gas) { | ||||
|         Core::System::GetInstance().TelemetrySession().AddField(Telemetry::FieldType::Session, | ||||
|                                                                 "VideoCore_Pica_UseGasMode", true); | ||||
|         Core::System::GetInstance().TelemetrySession().AddField( | ||||
|             Common::Telemetry::FieldType::Session, "VideoCore_Pica_UseGasMode", true); | ||||
|         LOG_CRITICAL(Render_OpenGL, "Unimplemented gas mode"); | ||||
|         out += "discard; }"; | ||||
|         return {std::move(out)}; | ||||
|  |  | |||
|  | @ -91,7 +91,7 @@ inline GLenum WrapMode(Pica::TexturingRegs::TextureConfig::WrapMode mode) { | |||
| 
 | ||||
|     if (index > 3) { | ||||
|         Core::System::GetInstance().TelemetrySession().AddField( | ||||
|             Telemetry::FieldType::Session, "VideoCore_Pica_UnsupportedTextureWrapMode", | ||||
|             Common::Telemetry::FieldType::Session, "VideoCore_Pica_UnsupportedTextureWrapMode", | ||||
|             static_cast<u32>(index)); | ||||
|         LOG_WARNING(Render_OpenGL, "Using texture wrap mode {}", index); | ||||
|     } | ||||
|  |  | |||
|  | @ -1210,12 +1210,10 @@ VideoCore::ResultStatus RendererOpenGL::Init() { | |||
|     LOG_INFO(Render_OpenGL, "GL_RENDERER: {}", gpu_model); | ||||
| 
 | ||||
|     auto& telemetry_session = Core::System::GetInstance().TelemetrySession(); | ||||
|     telemetry_session.AddField(Telemetry::FieldType::UserSystem, "GPU_Vendor", | ||||
|                                std::string(gpu_vendor)); | ||||
|     telemetry_session.AddField(Telemetry::FieldType::UserSystem, "GPU_Model", | ||||
|                                std::string(gpu_model)); | ||||
|     telemetry_session.AddField(Telemetry::FieldType::UserSystem, "GPU_OpenGL_Version", | ||||
|                                std::string(gl_version)); | ||||
|     constexpr auto user_system = Common::Telemetry::FieldType::UserSystem; | ||||
|     telemetry_session.AddField(user_system, "GPU_Vendor", std::string(gpu_vendor)); | ||||
|     telemetry_session.AddField(user_system, "GPU_Model", std::string(gpu_model)); | ||||
|     telemetry_session.AddField(user_system, "GPU_OpenGL_Version", std::string(gl_version)); | ||||
| 
 | ||||
|     if (!strcmp(gpu_vendor, "GDI Generic")) { | ||||
|         return VideoCore::ResultStatus::ErrorGenericDrivers; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue