forked from eden-emu/eden
		
	maxwell_3d: Use CoreTiming for query timestamp
This commit is contained in:
		
							parent
							
								
									74f147216c
								
							
						
					
					
						commit
						c5c7c8eb47
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -5,6 +5,7 @@ | ||||||
| #include <cinttypes> | #include <cinttypes> | ||||||
| #include "common/assert.h" | #include "common/assert.h" | ||||||
| #include "core/core.h" | #include "core/core.h" | ||||||
|  | #include "core/core_timing.h" | ||||||
| #include "core/memory.h" | #include "core/memory.h" | ||||||
| #include "video_core/debug_utils/debug_utils.h" | #include "video_core/debug_utils/debug_utils.h" | ||||||
| #include "video_core/engines/maxwell_3d.h" | #include "video_core/engines/maxwell_3d.h" | ||||||
|  | @ -194,8 +195,8 @@ void Maxwell3D::ProcessQueryGet() { | ||||||
|             // wait queues.
 |             // wait queues.
 | ||||||
|             LongQueryResult query_result{}; |             LongQueryResult query_result{}; | ||||||
|             query_result.value = result; |             query_result.value = result; | ||||||
|             // TODO(Subv): Generate a real GPU timestamp and write it here instead of 0
 |             // TODO(Subv): Generate a real GPU timestamp and write it here instead of CoreTiming
 | ||||||
|             query_result.timestamp = 0; |             query_result.timestamp = CoreTiming::GetTicks(); | ||||||
|             Memory::WriteBlock(*address, &query_result, sizeof(query_result)); |             Memory::WriteBlock(*address, &query_result, sizeof(query_result)); | ||||||
|         } |         } | ||||||
|         break; |         break; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Zach Hilman
						Zach Hilman