mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 03:58:27 +00:00 
			
		
		
		
	kms_atomic: Add basic atomic modesetting tests
Add tests for KMS atomic modesetting, to exercise the basic interface
and test failure/corner cases. Should ensure coherency between the
legacy and atomic interfaces.
v2: New patch.
v3: Disable connector checking for now, as it was causing GPU hangs on
    newer kernels.
v4: Rebase.
v5: Use do_ioctl or do_ioctl_err consistently. Use igt_assert_*()
    helper macros rather than igt_assert() directly.
    Move assertions into helper/check functions. Define atomic commit
    helper.
v6: Use do_ioctl_err, and define macros to move errors to
    actual callsite, rather than helper functions.
Co-authored-by: Micah Fedke <micah.fedke@collabora.com>
Signed-off-by: Daniel Stone <daniels@collabora.com>
			
			
This commit is contained in:
		
							parent
							
								
									b7a555e997
								
							
						
					
					
						commit
						bc37e0297c
					
				@ -85,7 +85,7 @@ if test "x$GCC" = "xyes"; then
 | 
			
		||||
fi
 | 
			
		||||
AC_SUBST(ASSEMBLER_WARN_CFLAGS)
 | 
			
		||||
 | 
			
		||||
PKG_CHECK_MODULES(DRM, [libdrm_intel >= 2.4.55 libdrm])
 | 
			
		||||
PKG_CHECK_MODULES(DRM, [libdrm_intel >= 2.4.64 libdrm])
 | 
			
		||||
PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.10])
 | 
			
		||||
PKG_CHECK_MODULES(OVERLAY_XVLIB, [xv x11 xext dri2proto >= 2.6], enable_overlay_xvlib=yes, enable_overlay_xvlib=no)
 | 
			
		||||
PKG_CHECK_MODULES(OVERLAY_XLIB, [cairo-xlib dri2proto >= 2.6], enable_overlay_xlib=yes, enable_overlay_xlib=no)
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										1
									
								
								tests/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								tests/.gitignore
									
									
									
									
										vendored
									
									
								
							@ -126,6 +126,7 @@ gen3_render_tiledy_blits
 | 
			
		||||
gen7_forcewake_mt
 | 
			
		||||
kms_3d
 | 
			
		||||
kms_addfb_basic
 | 
			
		||||
kms_atomic
 | 
			
		||||
kms_crtc_background_color
 | 
			
		||||
kms_cursor_crc
 | 
			
		||||
kms_draw_crc
 | 
			
		||||
 | 
			
		||||
@ -63,6 +63,7 @@ TESTS_progs_M = \
 | 
			
		||||
	gem_userptr_blits \
 | 
			
		||||
	gem_write_read_ring_switch \
 | 
			
		||||
	kms_addfb_basic \
 | 
			
		||||
	kms_atomic \
 | 
			
		||||
	kms_cursor_crc \
 | 
			
		||||
	kms_draw_crc \
 | 
			
		||||
	kms_fbc_crc \
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										1404
									
								
								tests/kms_atomic.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1404
									
								
								tests/kms_atomic.c
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user