mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 03:58:27 +00:00 
			
		
		
		
	tests/gem_tiled_partial_pwrite_pread: convert to subtest infrastructure
This commit is contained in:
		
							parent
							
								
									b0066d3659
								
							
						
					
					
						commit
						df11a6f31d
					
				@ -23,6 +23,7 @@ TESTS_progs_M = \
 | 
			
		||||
	gem_partial_pwrite_pread \
 | 
			
		||||
	gem_ringfill \
 | 
			
		||||
	gem_set_tiling_vs_blt \
 | 
			
		||||
	gem_tiled_partial_pwrite_pread \
 | 
			
		||||
	flip_test \
 | 
			
		||||
	$(NULL)
 | 
			
		||||
 | 
			
		||||
@ -46,7 +47,6 @@ TESTS_progs = \
 | 
			
		||||
	gem_set_tiling_vs_pwrite \
 | 
			
		||||
	gem_tiled_pread \
 | 
			
		||||
	gem_tiled_pread_pwrite \
 | 
			
		||||
	gem_tiled_partial_pwrite_pread \
 | 
			
		||||
	gem_tiled_swapping \
 | 
			
		||||
	gem_linear_blits \
 | 
			
		||||
	gem_vmap_blits \
 | 
			
		||||
 | 
			
		||||
@ -276,6 +276,8 @@ int main(int argc, char **argv)
 | 
			
		||||
{
 | 
			
		||||
	uint32_t tiling_mode = I915_TILING_X;
 | 
			
		||||
 | 
			
		||||
	drmtest_subtest_init(argc, argv);
 | 
			
		||||
 | 
			
		||||
	srandom(0xdeadbeef);
 | 
			
		||||
 | 
			
		||||
	fd = drm_open_any();
 | 
			
		||||
@ -300,11 +302,14 @@ int main(int argc, char **argv)
 | 
			
		||||
	drmtest_init_aperture_trashers(bufmgr);
 | 
			
		||||
	mappable_gtt_limit = gem_mappable_aperture_size();
 | 
			
		||||
 | 
			
		||||
	test_partial_reads();
 | 
			
		||||
	if (drmtest_run_subtest("reads"))
 | 
			
		||||
		test_partial_reads();
 | 
			
		||||
 | 
			
		||||
	test_partial_writes();
 | 
			
		||||
	if (drmtest_run_subtest("writes"))
 | 
			
		||||
		test_partial_writes();
 | 
			
		||||
 | 
			
		||||
	test_partial_read_writes();
 | 
			
		||||
	if (drmtest_run_subtest("writes-after-reads"))
 | 
			
		||||
		test_partial_read_writes();
 | 
			
		||||
 | 
			
		||||
	drmtest_cleanup_aperture_trashers();
 | 
			
		||||
	drm_intel_bufmgr_destroy(bufmgr);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user