mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	test_flip: fix checking for delayed event reception
The intent for the time limit seems to be 2ms, but the current condition will result in a 1s limit and makes the check against tv_usec redundant. Fix the condition to check for a 2ms limit. Signed-off-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
		
							parent
							
								
									95a967faa2
								
							
						
					
					
						commit
						43f6f873eb
					
				@ -183,7 +183,7 @@ static void page_flip_handler(int fd, unsigned int frame, unsigned int sec,
 | 
			
		||||
 | 
			
		||||
	timersub(&pageflip_ts, &now, &diff);
 | 
			
		||||
 | 
			
		||||
	if (diff.tv_sec > 0 || (diff.tv_sec > 0 && diff.tv_usec > 2000)) {
 | 
			
		||||
	if (diff.tv_sec > 0 || (diff.tv_sec == 0 && diff.tv_usec > 2000)) {
 | 
			
		||||
		fprintf(stderr, "pageflip timestamp delayed for too long: %is, %iusec\n",
 | 
			
		||||
			(int) diff.tv_sec, (int) diff.tv_usec);
 | 
			
		||||
		exit(5);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user