Mesa (master): i965: Add inline to brw_bo_unmap

Kenneth Graunke kwg at kemper.freedesktop.org
Sat Jul 1 03:35:42 UTC 2017


Module: Mesa
Branch: master
Commit: f78aa2c9864d26e50df0729b94deb24701d95871
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f78aa2c9864d26e50df0729b94deb24701d95871

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Fri Jun 30 20:33:57 2017 -0700

i965: Add inline to brw_bo_unmap

I meant to do this in "i965: Make brw_bo_unmap a static inline."
but botched the commit fixup.

---

 src/mesa/drivers/dri/i965/brw_bufmgr.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.h b/src/mesa/drivers/dri/i965/brw_bufmgr.h
index a817958d7b..4d671b6aae 100644
--- a/src/mesa/drivers/dri/i965/brw_bufmgr.h
+++ b/src/mesa/drivers/dri/i965/brw_bufmgr.h
@@ -212,7 +212,7 @@ MUST_CHECK void *brw_bo_map(struct brw_context *brw, struct brw_bo *bo, unsigned
  * Reduces the refcount on the userspace mapping of the buffer
  * object.
  */
-static int brw_bo_unmap(struct brw_bo *bo) { return 0; }
+static inline int brw_bo_unmap(struct brw_bo *bo) { return 0; }
 
 /** Write data into an object. */
 int brw_bo_subdata(struct brw_bo *bo, uint64_t offset,




More information about the mesa-commit mailing list