From ae8edc7544e566084f7b958eb93c9109b471ca30 Mon Sep 17 00:00:00 2001 From: Tvrtko Ursulin Date: Thu, 19 Jun 2014 15:52:03 +0100 Subject: intel: Add support for userptr objects Allow userptr objects to be created and used via libdrm_intel. At the moment tiling and mapping to GTT aperture is not supported due hardware limitations across different generations and uncertainty about its usefulness. v2: Improved error handling in feature detection per review comments. v3: Rebase on top of the drm_public addition, minor whitespace addition. Reviewed-by: Damien Lespiau Signed-off-by: Damien Lespiau (v3) Signed-off-by: Tvrtko Ursulin (v1,v2) --- intel/intel_bufmgr.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'intel/intel_bufmgr.h') diff --git a/intel/intel_bufmgr.h b/intel/intel_bufmgr.h index 9383c722..be83a56a 100644 --- a/intel/intel_bufmgr.h +++ b/intel/intel_bufmgr.h @@ -113,6 +113,11 @@ drm_intel_bo *drm_intel_bo_alloc_for_render(drm_intel_bufmgr *bufmgr, const char *name, unsigned long size, unsigned int alignment); +drm_intel_bo *drm_intel_bo_alloc_userptr(drm_intel_bufmgr *bufmgr, + const char *name, + void *addr, uint32_t tiling_mode, + uint32_t stride, unsigned long size, + unsigned long flags); drm_intel_bo *drm_intel_bo_alloc_tiled(drm_intel_bufmgr *bufmgr, const char *name, int x, int y, int cpp, -- cgit v1.2.3