mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	kms_frontbuffer_tracking: use CPU mmaps for fill_fb_region()
Because the GTT mmaps "permanently" disable PSR and this can mess some of our assertions. So let's just use the CPU domain to keep the implementation simple. With this, some PSR tests that were failing will now start passing. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
		
							parent
							
								
									7a4ded7b87
								
							
						
					
					
						commit
						053f33ad1c
					
				@ -859,7 +859,7 @@ static void draw_rect_igt_fb(struct draw_pattern_info *pattern,
 | 
			
		||||
 | 
			
		||||
static void fill_fb_region(struct fb_region *region, uint32_t color)
 | 
			
		||||
{
 | 
			
		||||
	igt_draw_rect_fb(drm.fd, NULL, NULL, region->fb, IGT_DRAW_MMAP_GTT,
 | 
			
		||||
	igt_draw_rect_fb(drm.fd, NULL, NULL, region->fb, IGT_DRAW_MMAP_CPU,
 | 
			
		||||
			 region->x, region->y, region->w, region->h,
 | 
			
		||||
			 color);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user