mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 03:58:27 +00:00 
			
		
		
		
	igt/gem_exec_alignment: Tweaks count for large alignments
We can fit a few more objects in at high alignment, so do so. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
		
							parent
							
								
									bd9842eade
								
							
						
					
					
						commit
						c4bcffcd10
					
				@ -118,8 +118,9 @@ static void many(int fd)
 | 
			
		||||
			execobj[i].alignment = alignment;
 | 
			
		||||
		if (alignment > max_alignment) {
 | 
			
		||||
			uint64_t factor = alignment / max_alignment;
 | 
			
		||||
			execbuf.buffer_count = count / factor + 1;
 | 
			
		||||
			execbuf.buffers_ptr = (uintptr_t)(execobj + (factor - 1) * count / factor);
 | 
			
		||||
			execbuf.buffer_count = 2*count / factor;
 | 
			
		||||
			execbuf.buffers_ptr =
 | 
			
		||||
				(uintptr_t)(execobj + count - execbuf.buffer_count);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		igt_debug("testing %lld x alignment=%#llx [%db]\n",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user