diff options
author | Keith Packard <keithp@keithp.com> | 2009-05-11 13:42:12 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-05-12 18:19:22 -0700 |
commit | 5b5ce301287fb8ef74b45fad3c10b2d4ac3a9cc6 (patch) | |
tree | e14e4df16fca0acd8c0c58cc81b4ca4eac6b5bba /libdrm/intel/intel_bufmgr.c | |
parent | 628dc48a16ec6796ec5a81428e695837c51463d0 (diff) |
libdrm/intel: add drm_intel_bo_disable_reuse api
Scanout buffers need to be freed through the kernel as it holds a reference
to them; exposing this API allows applications allocating scanout buffers to
flag them as not reusable.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'libdrm/intel/intel_bufmgr.c')
-rw-r--r-- | libdrm/intel/intel_bufmgr.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libdrm/intel/intel_bufmgr.c b/libdrm/intel/intel_bufmgr.c index 25a6828c..5057fe69 100644 --- a/libdrm/intel/intel_bufmgr.c +++ b/libdrm/intel/intel_bufmgr.c @@ -212,3 +212,10 @@ int drm_intel_bo_get_tiling(drm_intel_bo *bo, uint32_t *tiling_mode, *swizzle_mode = I915_BIT_6_SWIZZLE_NONE; return 0; } + +int drm_intel_bo_disable_reuse(drm_intel_bo *bo) +{ + if (bo->bufmgr->bo_disable_reuse) + return bo->bufmgr->bo_disable_reuse(bo); + return 0; +} |