lib/intel_batchbuffer: un-inline buf_height/width

gtkdoc won't pick them up otherwise.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2014-03-22 15:41:42 +01:00
parent aaebbc513a
commit 82c6dffe9f
2 changed files with 12 additions and 9 deletions

View File

@ -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;

View File

@ -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,