mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-17 11:22:56 +00:00
lib/intel_batchbuffer: igt_ namespace for the buffer structure
Step one to properly namespace the rendercpy/mediafill functions. Als give the buf_height/width helpers a proper igt_ prefix. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -387,12 +387,12 @@ intel_copy_bo(struct intel_batchbuffer *batch,
|
||||
4096/4, size/4096, 32);
|
||||
}
|
||||
|
||||
unsigned buf_width(struct scratch_buf *buf)
|
||||
unsigned igt_buf_width(struct igt_buf *buf)
|
||||
{
|
||||
return buf->stride/sizeof(uint32_t);
|
||||
}
|
||||
|
||||
unsigned buf_height(struct scratch_buf *buf)
|
||||
unsigned igt_buf_height(struct igt_buf *buf)
|
||||
{
|
||||
return buf->size/buf->stride;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user