summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/intel_winsys.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2015-03-06 02:03:10 +0800
committerChia-I Wu <[email protected]>2015-03-06 02:25:03 +0800
commit4ddd981e407f9e97fcbb862c241f1ce165616fd4 (patch)
tree5127116d96ae302939b00c7ad718796899fc95c1 /src/gallium/drivers/ilo/intel_winsys.h
parent70ef171e91582f60a010a4f0ea9f7ff5ba971ab4 (diff)
ilo: add more convenient intel_bo_{ref,unref}()
They both check for NULL and intel_bo_ref() returns the referenced bo. They replace intel_bo_{reference,unreference}().
Diffstat (limited to 'src/gallium/drivers/ilo/intel_winsys.h')
-rw-r--r--src/gallium/drivers/ilo/intel_winsys.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/ilo/intel_winsys.h b/src/gallium/drivers/ilo/intel_winsys.h
index 77eb030efad..afd038c45f3 100644
--- a/src/gallium/drivers/ilo/intel_winsys.h
+++ b/src/gallium/drivers/ilo/intel_winsys.h
@@ -203,17 +203,17 @@ intel_winsys_decode_bo(struct intel_winsys *winsys,
struct intel_bo *bo, int used);
/**
- * Increase the reference count of \p bo.
+ * Increase the reference count of \p bo. No-op when \p bo is NULL.
*/
-void
-intel_bo_reference(struct intel_bo *bo);
+struct intel_bo *
+intel_bo_ref(struct intel_bo *bo);
/**
* Decrease the reference count of \p bo. When the reference count reaches
- * zero, \p bo is destroyed.
+ * zero, \p bo is destroyed. No-op when \p bo is NULL.
*/
void
-intel_bo_unreference(struct intel_bo *bo);
+intel_bo_unref(struct intel_bo *bo);
/**
* Set the tiling of \p bo. The info is used by GTT mapping and bo export.