mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Memory: Add GetPhysicalPointer helper function
This commit is contained in:
		
							parent
							
								
									28a9e4c1d5
								
							
						
					
					
						commit
						17a8cae003
					
				
					 7 changed files with 28 additions and 19 deletions
				
			
		|  | @ -159,7 +159,7 @@ void TextureInfoDockWidget::OnStrideChanged(int value) { | |||
| } | ||||
| 
 | ||||
| QPixmap TextureInfoDockWidget::ReloadPixmap() const { | ||||
|     u8* src = Memory::GetPointer(Memory::PhysicalToVirtualAddress(info.physical_address)); | ||||
|     u8* src = Memory::GetPhysicalPointer(info.physical_address); | ||||
|     return QPixmap::fromImage(LoadTexture(src, info)); | ||||
| } | ||||
| 
 | ||||
|  | @ -274,7 +274,7 @@ void GPUCommandListWidget::SetCommandInfo(const QModelIndex& index) { | |||
|         auto format = Pica::registers.GetTextures()[index].format; | ||||
| 
 | ||||
|         auto info = Pica::DebugUtils::TextureInfo::FromPicaRegister(config, format); | ||||
|         u8* src = Memory::GetPointer(Memory::PhysicalToVirtualAddress(config.GetPhysicalAddress())); | ||||
|         u8* src = Memory::GetPhysicalPointer(config.GetPhysicalAddress()); | ||||
|         new_info_widget = new TextureInfoWidget(src, info); | ||||
|     } else { | ||||
|         new_info_widget = new QWidget; | ||||
|  |  | |||
|  | @ -215,7 +215,7 @@ void GraphicsFramebufferWidget::OnUpdate() | |||
|     u32 bytes_per_pixel = GraphicsFramebufferWidget::BytesPerPixel(framebuffer_format); | ||||
| 
 | ||||
|     QImage decoded_image(framebuffer_width, framebuffer_height, QImage::Format_ARGB32); | ||||
|     u8* buffer = Memory::GetPointer(Memory::PhysicalToVirtualAddress(framebuffer_address)); | ||||
|     u8* buffer = Memory::GetPhysicalPointer(framebuffer_address); | ||||
| 
 | ||||
|     for (unsigned int y = 0; y < framebuffer_height; ++y) { | ||||
|         for (unsigned int x = 0; x < framebuffer_width; ++x) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue