aboutsummaryrefslogtreecommitdiff
path: root/libdrm/intel/intel_bufmgr.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-02-18 13:06:35 -0800
committerEric Anholt <eric@anholt.net>2009-02-21 09:57:06 -0800
commit72abe983adfe7e8dcdcec11f1bc11d0b3daae063 (patch)
tree24021de560fcdef47c42259a14ef95a56b370382 /libdrm/intel/intel_bufmgr.c
parenta1345338feb7af25c0a9fe02ec16c2b9cce83a9e (diff)
intel: Add a new bufmgr alloc function to get BOs ready for rendering to.
This avoids using the oldest BO in the BO cache and waiting for it to be idle before we turn around and render to it with the GPU. Thanks to Chris Wilson for pointing out how silly we were being.
Diffstat (limited to 'libdrm/intel/intel_bufmgr.c')
-rw-r--r--libdrm/intel/intel_bufmgr.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libdrm/intel/intel_bufmgr.c b/libdrm/intel/intel_bufmgr.c
index 188eac22..25a6828c 100644
--- a/libdrm/intel/intel_bufmgr.c
+++ b/libdrm/intel/intel_bufmgr.c
@@ -51,6 +51,13 @@ drm_intel_bo_alloc(drm_intel_bufmgr *bufmgr, const char *name,
return bufmgr->bo_alloc(bufmgr, name, size, alignment);
}
+drm_intel_bo *
+drm_intel_bo_alloc_for_render(drm_intel_bufmgr *bufmgr, const char *name,
+ unsigned long size, unsigned int alignment)
+{
+ return bufmgr->bo_alloc_for_render(bufmgr, name, size, alignment);
+}
+
void
drm_intel_bo_reference(drm_intel_bo *bo)
{