mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 03:58:27 +00:00 
			
		
		
		
	lib: Add gem_sw_finish()
Wrap DRM_IOCTL_I915_GEM_SW_FINISH into gem_sw_finish() Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
		
							parent
							
								
									725da6ee74
								
							
						
					
					
						commit
						525788a736
					
				@ -632,6 +632,16 @@ uint32_t gem_context_create(int fd)
 | 
			
		||||
	return create.ctx_id;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void gem_sw_finish(int fd, uint32_t handle)
 | 
			
		||||
{
 | 
			
		||||
	struct drm_i915_gem_sw_finish finish;
 | 
			
		||||
 | 
			
		||||
	finish.handle = handle;
 | 
			
		||||
 | 
			
		||||
	do_ioctl(fd, DRM_IOCTL_I915_GEM_SW_FINISH, &finish);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/* prime */
 | 
			
		||||
int prime_handle_to_fd(int fd, uint32_t handle)
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
@ -85,6 +85,8 @@ int gem_madvise(int fd, uint32_t handle, int state);
 | 
			
		||||
 | 
			
		||||
uint32_t gem_context_create(int fd);
 | 
			
		||||
 | 
			
		||||
void gem_sw_finish(int fd, uint32_t handle);
 | 
			
		||||
 | 
			
		||||
/* feature test helpers */
 | 
			
		||||
bool gem_uses_aliasing_ppgtt(int fd);
 | 
			
		||||
int gem_available_fences(int fd);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user