mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 03:58:27 +00:00 
			
		
		
		
	igt/gem_softpin: Fix MI_STORE_DWORD_IMM for gen2-3
Before gen4, MI_STORE_DWORD was just 3 dwords long (cmd, offset, value). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
		
							parent
							
								
									19642c604b
								
							
						
					
					
						commit
						a4493a54f3
					
				@ -391,7 +391,10 @@ static void test_noreloc(int fd)
 | 
			
		||||
	for (i = 0; i < ARRAY_SIZE(object) - 1; i++) {
 | 
			
		||||
		*b++ = MI_STORE_DWORD_IMM;
 | 
			
		||||
		if (gen < 8) {
 | 
			
		||||
			*b++ = 0;
 | 
			
		||||
			if (gen < 4)
 | 
			
		||||
				b[-1]--;
 | 
			
		||||
			else
 | 
			
		||||
				*b++ = 0;
 | 
			
		||||
			*b++ = object[i].offset;
 | 
			
		||||
		} else {
 | 
			
		||||
			*b++ = object[i].offset;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user