mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	tests/kms_chv_cursor_fail: Skip when the pipe doesn't exist
Looks like I fumbled things when I made kms_chv_cursor_fail iterate over all pipes. It fails to check that the pipe actually exists, and so fails on < 3 pipe platforms. Add the necessary checks to skip on non-existing pipes. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
		
							parent
							
								
									cd658a7c6b
								
							
						
					
					
						commit
						065d73619f
					
				@ -394,24 +394,28 @@ int main(int argc, char **argv)
 | 
			
		||||
			igt_subtest_f("pipe-%s-%dx%d-left-edge",
 | 
			
		||||
				      kmstest_pipe_name(data.pipe),
 | 
			
		||||
				      data.curw, data.curh) {
 | 
			
		||||
				igt_require(data.pipe < data.display.n_pipes);
 | 
			
		||||
				igt_require(data.curw <= max_curw && data.curh <= max_curh);
 | 
			
		||||
				test_crtc(&data, EDGE_LEFT);
 | 
			
		||||
			}
 | 
			
		||||
			igt_subtest_f("pipe-%s-%dx%d-right-edge",
 | 
			
		||||
				      kmstest_pipe_name(data.pipe),
 | 
			
		||||
				      data.curw, data.curh) {
 | 
			
		||||
				igt_require(data.pipe < data.display.n_pipes);
 | 
			
		||||
				igt_require(data.curw <= max_curw && data.curh <= max_curh);
 | 
			
		||||
				test_crtc(&data, EDGE_RIGHT);
 | 
			
		||||
			}
 | 
			
		||||
			igt_subtest_f("pipe-%s-%dx%d-top-edge",
 | 
			
		||||
				      kmstest_pipe_name(data.pipe),
 | 
			
		||||
				      data.curw, data.curh) {
 | 
			
		||||
				igt_require(data.pipe < data.display.n_pipes);
 | 
			
		||||
				igt_require(data.curw <= max_curw && data.curh <= max_curh);
 | 
			
		||||
				test_crtc(&data, EDGE_TOP);
 | 
			
		||||
			}
 | 
			
		||||
			igt_subtest_f("pipe-%s-%dx%d-bottom-edge",
 | 
			
		||||
				      kmstest_pipe_name(data.pipe),
 | 
			
		||||
				      data.curw, data.curh) {
 | 
			
		||||
				igt_require(data.pipe < data.display.n_pipes);
 | 
			
		||||
				igt_require(data.curw <= max_curw && data.curh <= max_curh);
 | 
			
		||||
				test_crtc(&data, EDGE_BOTTOM);
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user