mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 09:56:22 +00:00
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:
parent
aaebbc513a
commit
82c6dffe9f
@ -387,6 +387,16 @@ intel_copy_bo(struct intel_batchbuffer *batch,
|
|||||||
4096/4, size/4096, 32);
|
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 get_render_copyfunc(int devid)
|
||||||
{
|
{
|
||||||
render_copyfunc_t copy = NULL;
|
render_copyfunc_t copy = NULL;
|
||||||
|
@ -206,15 +206,8 @@ struct scratch_buf {
|
|||||||
unsigned num_tiles;
|
unsigned num_tiles;
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline unsigned buf_width(struct scratch_buf *buf)
|
unsigned buf_width(struct scratch_buf *buf);
|
||||||
{
|
unsigned buf_height(struct scratch_buf *buf);
|
||||||
return buf->stride/sizeof(uint32_t);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline unsigned buf_height(struct scratch_buf *buf)
|
|
||||||
{
|
|
||||||
return buf->size/buf->stride;
|
|
||||||
}
|
|
||||||
|
|
||||||
typedef void (*render_copyfunc_t)(struct intel_batchbuffer *batch,
|
typedef void (*render_copyfunc_t)(struct intel_batchbuffer *batch,
|
||||||
drm_intel_context *context,
|
drm_intel_context *context,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user