mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	flip_test: reset the state for each test run
Each test run needs a clean state. Signed-off-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
		
							parent
							
								
									472e8a70c2
								
							
						
					
					
						commit
						f1b1729a8a
					
				@ -546,11 +546,13 @@ static int run_test(int duration, int flags)
 | 
			
		||||
 | 
			
		||||
	/* Find any connected displays */
 | 
			
		||||
	for (c = 0; c < resources->count_connectors; c++) {
 | 
			
		||||
		memset(&o, 0, sizeof(o));
 | 
			
		||||
		o.id = resources->connectors[c];
 | 
			
		||||
		o.flags = flags;
 | 
			
		||||
		for (i = 0; i < resources->count_crtcs; i++)
 | 
			
		||||
		for (i = 0; i < resources->count_crtcs; i++) {
 | 
			
		||||
			memset(&o, 0, sizeof(o));
 | 
			
		||||
			o.id = resources->connectors[c];
 | 
			
		||||
			o.flags = flags;
 | 
			
		||||
 | 
			
		||||
			flip_mode(&o, resources->crtcs[i], duration);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	drmModeFreeResources(resources);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user