mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 03:58:27 +00:00 
			
		
		
		
	kms_frontbuffer_tracking: improve checks for disabled features
Make sure the features are disabled and stay disabled. Otherwise we could just wrongly think they are disabled while they are just in the process of being enabled. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
		
							parent
							
								
									ca97e78455
								
							
						
					
					
						commit
						775fd77715
					
				@ -1390,13 +1390,13 @@ static int adjust_assertion_flags(const struct test_mode *t, int flags)
 | 
			
		||||
			    opt.fbc_check_compression)			\
 | 
			
		||||
				igt_assert(fbc_wait_for_compression());	\
 | 
			
		||||
		} else if (flags_ & ASSERT_FBC_DISABLED) {		\
 | 
			
		||||
			igt_assert(fbc_wait_for_status(DISABLED));	\
 | 
			
		||||
			igt_assert(!fbc_wait_for_status(ENABLED));	\
 | 
			
		||||
		}							\
 | 
			
		||||
									\
 | 
			
		||||
		if (flags_ & ASSERT_PSR_ENABLED)			\
 | 
			
		||||
			igt_assert(psr_wait_for_status(ENABLED));	\
 | 
			
		||||
		else if (flags_ & ASSERT_PSR_DISABLED)			\
 | 
			
		||||
			igt_assert(psr_wait_for_status(DISABLED));	\
 | 
			
		||||
			igt_assert(!psr_wait_for_status(ENABLED));	\
 | 
			
		||||
	} else {							\
 | 
			
		||||
		/* Make sure we settle before continuing. */		\
 | 
			
		||||
		sleep(1);						\
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user