mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	tests/gem_vmap_blits: Finish extracting gem_read
It seems something escaped this commit:
commit bd5cf9a07d17ce91dfaa3aa12d3f2c93815f0489
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Tue Jan 10 15:37:53 2012 +0100
    lib/drmtest: extract gem_read
Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
			
			
This commit is contained in:
		
							parent
							
								
									7076ea1bd6
								
							
						
					
					
						commit
						dce0d99a91
					
				@ -86,20 +86,6 @@ static void gem_vmap_sync(int fd, uint32_t handle)
 | 
			
		||||
	gem_set_domain(fd, handle, I915_GEM_DOMAIN_CPU, I915_GEM_DOMAIN_CPU);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void
 | 
			
		||||
gem_read(int fd, uint32_t handle, int offset, int size, void *buf)
 | 
			
		||||
{
 | 
			
		||||
	struct drm_i915_gem_pread pread;
 | 
			
		||||
	int ret;
 | 
			
		||||
 | 
			
		||||
	pread.handle = handle;
 | 
			
		||||
	pread.offset = offset;
 | 
			
		||||
	pread.size = size;
 | 
			
		||||
	pread.data_ptr = (uintptr_t)buf;
 | 
			
		||||
	ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_PREAD, &pread);
 | 
			
		||||
	igt_assert(ret == 0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void
 | 
			
		||||
copy(int fd, uint32_t dst, uint32_t src)
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user