[Intel-gfx] [PATCH 07/28] lib/intel_batchbuffer: un-inline buf_height/width

Daniel Vetter daniel.vetter at ffwll.ch
Sun Mar 23 15:18:41 CET 2014


gtkdoc won't pick them up otherwise.

Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
 lib/intel_batchbuffer.c | 10 ++++++++++
 lib/intel_batchbuffer.h | 11 ++---------
 2 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
index 29740bd93bd3..235c1d1d8310 100644
--- a/lib/intel_batchbuffer.c
+++ b/lib/intel_batchbuffer.c
@@ -387,6 +387,16 @@ intel_copy_bo(struct intel_batchbuffer *batch,
 		       4096/4, size/4096, 32);
 }
 
+unsigned buf_width(struct scratch_buf *buf)
+{
+	return buf->stride/sizeof(uint32_t);
+}
+
+unsigned buf_height(struct scratch_buf *buf)
+{
+	return buf->size/buf->stride;
+}
+
 render_copyfunc_t get_render_copyfunc(int devid)
 {
 	render_copyfunc_t copy = NULL;
diff --git a/lib/intel_batchbuffer.h b/lib/intel_batchbuffer.h
index 4b183122f6c0..26c5e6c34c89 100644
--- a/lib/intel_batchbuffer.h
+++ b/lib/intel_batchbuffer.h
@@ -206,15 +206,8 @@ struct scratch_buf {
     unsigned num_tiles;
 };
 
-static inline unsigned buf_width(struct scratch_buf *buf)
-{
-	return buf->stride/sizeof(uint32_t);
-}
-
-static inline unsigned buf_height(struct scratch_buf *buf)
-{
-	return buf->size/buf->stride;
-}
+unsigned buf_width(struct scratch_buf *buf);
+unsigned buf_height(struct scratch_buf *buf);
 
 typedef void (*render_copyfunc_t)(struct intel_batchbuffer *batch,
 				  drm_intel_context *context,
-- 
1.8.5.2




More information about the Intel-gfx mailing list