diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-22 15:44:48 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-22 15:44:48 +0100 |
commit | 83a4c7d3eb6347f9b743144611b08a2869f11f94 (patch) | |
tree | 45136688d8bc1ff98a5aacf50e68dfb4846a6e3a /lib/intel_batchbuffer.h | |
parent | 82c6dffe9fdc75a7ef3b9a7e53e1c20d8a9b3703 (diff) |
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>
Diffstat (limited to 'lib/intel_batchbuffer.h')
-rw-r--r-- | lib/intel_batchbuffer.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/intel_batchbuffer.h b/lib/intel_batchbuffer.h index 26c5e6c3..333b0894 100644 --- a/lib/intel_batchbuffer.h +++ b/lib/intel_batchbuffer.h @@ -196,7 +196,7 @@ void intel_copy_bo(struct intel_batchbuffer *batch, drm_intel_bo *dst_bo, drm_intel_bo *src_bo, long int size); -struct scratch_buf { +struct igt_buf { drm_intel_bo *bo; uint32_t stride; uint32_t tiling; @@ -206,19 +206,19 @@ struct scratch_buf { unsigned num_tiles; }; -unsigned buf_width(struct scratch_buf *buf); -unsigned buf_height(struct scratch_buf *buf); +unsigned igt_buf_width(struct igt_buf *buf); +unsigned igt_buf_height(struct igt_buf *buf); typedef void (*render_copyfunc_t)(struct intel_batchbuffer *batch, drm_intel_context *context, - struct scratch_buf *src, unsigned src_x, unsigned src_y, + struct igt_buf *src, unsigned src_x, unsigned src_y, unsigned width, unsigned height, - struct scratch_buf *dst, unsigned dst_x, unsigned dst_y); + struct igt_buf *dst, unsigned dst_x, unsigned dst_y); render_copyfunc_t get_render_copyfunc(int devid); typedef void (*media_fillfunc_t)(struct intel_batchbuffer *batch, - struct scratch_buf *dst, + struct igt_buf *dst, unsigned x, unsigned y, unsigned width, unsigned height, uint8_t color); |