mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	drmtest: use do_or_die
This commit is contained in:
		
							parent
							
								
									a65087a26e
								
							
						
					
					
						commit
						9d1a3587ac
					
				@ -798,11 +798,10 @@ unsigned int kmstest_create_fb(int fd, int width, int height, int bpp,
 | 
			
		||||
	assert(!status);
 | 
			
		||||
	cairo_destroy(cr);
 | 
			
		||||
 | 
			
		||||
	ret = drmModeAddFB(fd, width, height, depth, bpp,
 | 
			
		||||
			   fb_info->stride,
 | 
			
		||||
			   fb_info->gem_handle, &fb_id);
 | 
			
		||||
	do_or_die(drmModeAddFB(fd, width, height, depth, bpp,
 | 
			
		||||
			       fb_info->stride,
 | 
			
		||||
			       fb_info->gem_handle, &fb_id));
 | 
			
		||||
 | 
			
		||||
	assert(ret == 0);
 | 
			
		||||
	cairo_surface_destroy(surface);
 | 
			
		||||
 | 
			
		||||
	fb_info->fb_id = fb_id;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user