mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Memory: Remove count of cached pages and add InvalidateRegion
In a future commit, the count of cached pages will be reintroduced in the actual surface cache. Also adds an Invalidate only to the cache which marks a region as invalid in order to try to avoid a costly flush from 3ds memory
This commit is contained in:
		
							parent
							
								
									c821c14908
								
							
						
					
					
						commit
						13606a6d0b
					
				
					 8 changed files with 50 additions and 54 deletions
				
			
		|  | @ -38,6 +38,9 @@ public: | |||
|     /// Notify rasterizer that any caches of the specified region should be flushed to 3DS memory
 | ||||
|     virtual void FlushRegion(PAddr addr, u32 size) = 0; | ||||
| 
 | ||||
|     /// Notify rasterizer that any caches of the specified region should be invalidated
 | ||||
|     virtual void InvalidateRegion(PAddr addr, u32 size) = 0; | ||||
| 
 | ||||
|     /// Notify rasterizer that any caches of the specified region should be flushed to 3DS memory
 | ||||
|     /// and invalidated
 | ||||
|     virtual void FlushAndInvalidateRegion(PAddr addr, u32 size) = 0; | ||||
|  |  | |||
|  | @ -11,7 +11,7 @@ namespace Pica { | |||
| namespace Shader { | ||||
| struct OutputVertex; | ||||
| } | ||||
| } | ||||
| } // namespace Pica
 | ||||
| 
 | ||||
| namespace VideoCore { | ||||
| 
 | ||||
|  | @ -22,6 +22,7 @@ class SWRasterizer : public RasterizerInterface { | |||
|     void NotifyPicaRegisterChanged(u32 id) override {} | ||||
|     void FlushAll() override {} | ||||
|     void FlushRegion(PAddr addr, u32 size) override {} | ||||
|     void InvalidateRegion(PAddr addr, u32 size) override {} | ||||
|     void FlushAndInvalidateRegion(PAddr addr, u32 size) override {} | ||||
| }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue