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 /tests/gem_ring_sync_copy.c | |
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 'tests/gem_ring_sync_copy.c')
-rw-r--r-- | tests/gem_ring_sync_copy.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/gem_ring_sync_copy.c b/tests/gem_ring_sync_copy.c index b7dcf9df..1ab9b0ce 100644 --- a/tests/gem_ring_sync_copy.c +++ b/tests/gem_ring_sync_copy.c @@ -70,8 +70,8 @@ typedef struct { struct { render_copyfunc_t copy; - struct scratch_buf *srcs; - struct scratch_buf *dsts; + struct igt_buf *srcs; + struct igt_buf *dsts; } render; struct { @@ -128,7 +128,7 @@ static void bo_check(data_t *data, drm_intel_bo *bo, uint32_t val) igt_assert_cmpint(data->linear[i], ==, val); } -static void scratch_buf_init_from_bo(struct scratch_buf *buf, drm_intel_bo *bo) +static void scratch_buf_init_from_bo(struct igt_buf *buf, drm_intel_bo *bo) { buf->bo = bo; buf->stride = 4 * WIDTH; @@ -136,7 +136,7 @@ static void scratch_buf_init_from_bo(struct scratch_buf *buf, drm_intel_bo *bo) buf->size = 4 * WIDTH * HEIGHT; } -static void scratch_buf_init(data_t *data, struct scratch_buf *buf, +static void scratch_buf_init(data_t *data, struct igt_buf *buf, int width, int height, uint32_t color) { drm_intel_bo *bo; @@ -162,7 +162,7 @@ static void render_busy(data_t *data) size_t array_size; int i; - array_size = data->n_buffers_load * sizeof(struct scratch_buf); + array_size = data->n_buffers_load * sizeof(struct igt_buf); data->render.srcs = malloc(array_size); data->render.dsts = malloc(array_size); @@ -201,7 +201,7 @@ static void render_busy_fini(data_t *data) static void render_copy(data_t *data, drm_intel_bo *src, drm_intel_bo *dst) { - struct scratch_buf src_buf, dst_buf; + struct igt_buf src_buf, dst_buf; scratch_buf_init_from_bo(&src_buf, src); scratch_buf_init_from_bo(&dst_buf, dst); |