diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-11-13 13:52:04 -0800 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-11-13 13:52:04 -0800 |
commit | 276c07d8855f748c043dfe3ab8c4da954ba0fe1e (patch) | |
tree | a76198a778eaa7eb1dabc7c24fdeefce44d57d16 /libdrm/intel/intel_bufmgr.h | |
parent | 930c0e7cf4f4776f7a69e7acc6fedeed7addb235 (diff) |
libdrm: add support for i915 GTT mapping ioctl
Add a drm_intel_gem_bo_map_gtt() function for mapping a buffer object
through the aperture rather than directly to its CPU cacheable memory.
Diffstat (limited to 'libdrm/intel/intel_bufmgr.h')
-rw-r--r-- | libdrm/intel/intel_bufmgr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libdrm/intel/intel_bufmgr.h b/libdrm/intel/intel_bufmgr.h index e3af886b..361e4345 100644 --- a/libdrm/intel/intel_bufmgr.h +++ b/libdrm/intel/intel_bufmgr.h @@ -48,6 +48,13 @@ struct _drm_intel_bo { */ unsigned long size; /** + * Alignment requirement for object + * + * Used for GTT mapping & pinning the object. + */ + unsigned long align; + + /** * Card virtual address (offset from the beginning of the aperture) for the * object. Only valid while validated. */ @@ -98,6 +105,7 @@ drm_intel_bo *drm_intel_bo_gem_create_from_name(drm_intel_bufmgr *bufmgr, const char *name, unsigned int handle); void drm_intel_bufmgr_gem_enable_reuse(drm_intel_bufmgr *bufmgr); +int drm_intel_gem_bo_map_gtt(drm_intel_bo *bo); /* drm_intel_bufmgr_fake.c */ drm_intel_bufmgr *drm_intel_bufmgr_fake_init(int fd, |