mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	tests/gem_tiled_fence_blits: Ensure the bo count is odd
In order to avoid a self-copy, the number of bo must not be even. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
		
							parent
							
								
									371f87f2d8
								
							
						
					
					
						commit
						c1e9795050
					
				@ -148,7 +148,7 @@ int main(int argc, char **argv)
 | 
			
		||||
 | 
			
		||||
	fd = drm_open_any();
 | 
			
		||||
	count = 3 * gem_aperture_size(fd) / (1024*1024) / 2;
 | 
			
		||||
	count += (count & 1) == 0;
 | 
			
		||||
	count |= 1;
 | 
			
		||||
	printf("Using %d 1MiB buffers\n", count);
 | 
			
		||||
 | 
			
		||||
	bufmgr = drm_intel_bufmgr_gem_init(fd, 4096);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user