mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	igt/gem_concurrent_blit: Tighter scoping of buffers variable
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
		
							parent
							
								
									a64f31b31e
								
							
						
					
					
						commit
						5f6ebb2cb7
					
				@ -1270,16 +1270,16 @@ run_basic_modes(const char *prefix,
 | 
			
		||||
		{ "-hang-render", rcs_hang },
 | 
			
		||||
		{ NULL, NULL },
 | 
			
		||||
	}, *h;
 | 
			
		||||
	struct buffers buffers;
 | 
			
		||||
 | 
			
		||||
	for (h = hangs; h->suffix; h++) {
 | 
			
		||||
		if (!all && *h->suffix)
 | 
			
		||||
			continue;
 | 
			
		||||
 | 
			
		||||
		for (p = all ? pipelines : pskip; p->prefix; p++) {
 | 
			
		||||
			igt_fixture {
 | 
			
		||||
			struct buffers buffers;
 | 
			
		||||
 | 
			
		||||
			igt_fixture
 | 
			
		||||
				batch = buffers_init(&buffers, mode, fd);
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			igt_subtest_f("%s-%s-%s-sanitycheck0%s%s", prefix, mode->name, p->prefix, suffix, h->suffix) {
 | 
			
		||||
				p->require();
 | 
			
		||||
@ -1422,9 +1422,8 @@ run_basic_modes(const char *prefix,
 | 
			
		||||
					      p->copy, h->hang);
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			igt_fixture {
 | 
			
		||||
			igt_fixture
 | 
			
		||||
				buffers_fini(&buffers);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user