forked from eden-emu/eden
		
	memory_manager: Eliminate variable shadowing
Renames some variables to prevent ones in inner scopes from shadowing outer-scoped variables. The Copy* functions have no shadowing, but we rename them anyways to remain consistent with the other functions.
This commit is contained in:
		
							parent
							
								
									f8e0f67e22
								
							
						
					
					
						commit
						693ec509d7
					
				
					 2 changed files with 28 additions and 24 deletions
				
			
		|  | @ -79,9 +79,9 @@ public: | |||
|      * in the Host Memory counterpart. Note: This functions cause Host GPU Memory | ||||
|      * Flushes and Invalidations, respectively to each operation. | ||||
|      */ | ||||
|     void ReadBlock(GPUVAddr src_addr, void* dest_buffer, std::size_t size) const; | ||||
|     void WriteBlock(GPUVAddr dest_addr, const void* src_buffer, std::size_t size); | ||||
|     void CopyBlock(GPUVAddr dest_addr, GPUVAddr src_addr, std::size_t size); | ||||
|     void ReadBlock(GPUVAddr gpu_src_addr, void* dest_buffer, std::size_t size) const; | ||||
|     void WriteBlock(GPUVAddr gpu_dest_addr, const void* src_buffer, std::size_t size); | ||||
|     void CopyBlock(GPUVAddr gpu_dest_addr, GPUVAddr gpu_src_addr, std::size_t size); | ||||
| 
 | ||||
|     /**
 | ||||
|      * ReadBlockUnsafe and WriteBlockUnsafe are special versions of ReadBlock and | ||||
|  | @ -93,9 +93,9 @@ public: | |||
|      * WriteBlockUnsafe instead of WriteBlock since it shouldn't invalidate the texture | ||||
|      * being flushed. | ||||
|      */ | ||||
|     void ReadBlockUnsafe(GPUVAddr src_addr, void* dest_buffer, std::size_t size) const; | ||||
|     void WriteBlockUnsafe(GPUVAddr dest_addr, const void* src_buffer, std::size_t size); | ||||
|     void CopyBlockUnsafe(GPUVAddr dest_addr, GPUVAddr src_addr, std::size_t size); | ||||
|     void ReadBlockUnsafe(GPUVAddr gpu_src_addr, void* dest_buffer, std::size_t size) const; | ||||
|     void WriteBlockUnsafe(GPUVAddr gpu_dest_addr, const void* src_buffer, std::size_t size); | ||||
|     void CopyBlockUnsafe(GPUVAddr gpu_dest_addr, GPUVAddr gpu_src_addr, std::size_t size); | ||||
| 
 | ||||
|     /**
 | ||||
|      * IsGranularRange checks if a gpu region can be simply read with a pointer | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lioncash
						Lioncash