mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	Y2R: pass in MemorySystem from service
This commit is contained in:
		
							parent
							
								
									d6f3ac1f4e
								
							
						
					
					
						commit
						9c016ff3a3
					
				
					 4 changed files with 30 additions and 23 deletions
				
			
		| 
						 | 
				
			
			@ -507,7 +507,7 @@ void Y2R_U::StartConversion(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
    Memory::RasterizerFlushVirtualRegion(conversion.dst.address, total_output_size,
 | 
			
		||||
                                         Memory::FlushMode::FlushAndInvalidate);
 | 
			
		||||
 | 
			
		||||
    HW::Y2R::PerformConversion(conversion);
 | 
			
		||||
    HW::Y2R::PerformConversion(system.Memory(), conversion);
 | 
			
		||||
 | 
			
		||||
    completion_event->Signal();
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -632,7 +632,7 @@ void Y2R_U::GetPackageParameter(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
    LOG_DEBUG(Service_Y2R, "called");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Y2R_U::Y2R_U(Core::System& system) : ServiceFramework("y2r:u", 1) {
 | 
			
		||||
Y2R_U::Y2R_U(Core::System& system) : ServiceFramework("y2r:u", 1), system(system) {
 | 
			
		||||
    static const FunctionInfo functions[] = {
 | 
			
		||||
        {0x00010040, &Y2R_U::SetInputFormat, "SetInputFormat"},
 | 
			
		||||
        {0x00020000, &Y2R_U::GetInputFormat, "GetInputFormat"},
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -294,6 +294,8 @@ private:
 | 
			
		|||
    void DriverFinalize(Kernel::HLERequestContext& ctx);
 | 
			
		||||
    void GetPackageParameter(Kernel::HLERequestContext& ctx);
 | 
			
		||||
 | 
			
		||||
    Core::System& system;
 | 
			
		||||
 | 
			
		||||
    Kernel::SharedPtr<Kernel::Event> completion_event;
 | 
			
		||||
    ConversionConfiguration conversion{};
 | 
			
		||||
    DitheringWeightParams dithering_weight_params{};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue