mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Memory: mark pages on mapping if it is already rasterizer-cached
This commit is contained in:
		
							parent
							
								
									643b7d4dcb
								
							
						
					
					
						commit
						9d616e5951
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -100,6 +100,12 @@ void MemorySystem::MapPages(PageTable& page_table, u32 base, u32 size, u8* memor | |||
|         page_table.attributes[base] = type; | ||||
|         page_table.pointers[base] = memory; | ||||
| 
 | ||||
|         // If the memory to map is already rasterizer-cached, mark the page
 | ||||
|         if (type == PageType::Memory && impl->cache_marker.IsCached(base * PAGE_SIZE)) { | ||||
|             page_table.attributes[base] = PageType::RasterizerCachedMemory; | ||||
|             page_table.pointers[base] = nullptr; | ||||
|         } | ||||
| 
 | ||||
|         base += 1; | ||||
|         if (memory != nullptr) | ||||
|             memory += PAGE_SIZE; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue