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_render_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_render_copy.c')
-rw-r--r-- | tests/gem_render_copy.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/gem_render_copy.c b/tests/gem_render_copy.c index 65323a94..7196a51a 100644 --- a/tests/gem_render_copy.c +++ b/tests/gem_render_copy.c @@ -66,7 +66,7 @@ typedef struct { uint32_t linear[WIDTH * HEIGHT]; } data_t; -static void scratch_buf_write_to_png(struct scratch_buf *buf, const char *filename) +static void scratch_buf_write_to_png(struct igt_buf *buf, const char *filename) { cairo_surface_t *surface; cairo_status_t ret; @@ -74,8 +74,8 @@ static void scratch_buf_write_to_png(struct scratch_buf *buf, const char *filena drm_intel_bo_map(buf->bo, 0); surface = cairo_image_surface_create_for_data(buf->bo->virtual, CAIRO_FORMAT_RGB24, - buf_width(buf), - buf_height(buf), + igt_buf_width(buf), + igt_buf_height(buf), buf->stride); ret = cairo_surface_write_to_png(surface, filename); if (ret != CAIRO_STATUS_SUCCESS) { @@ -86,7 +86,7 @@ static void scratch_buf_write_to_png(struct scratch_buf *buf, const char *filena drm_intel_bo_unmap(buf->bo); } -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, int stride, uint32_t color) { drm_intel_bo *bo; @@ -105,7 +105,7 @@ static void scratch_buf_init(data_t *data, struct scratch_buf *buf, } static void -scratch_buf_check(data_t *data, struct scratch_buf *buf, int x, int y, +scratch_buf_check(data_t *data, struct igt_buf *buf, int x, int y, uint32_t color) { uint32_t val; @@ -124,7 +124,7 @@ int main(int argc, char **argv) { data_t data = {0, }; struct intel_batchbuffer *batch = NULL; - struct scratch_buf src, dst; + struct igt_buf src, dst; render_copyfunc_t render_copy = NULL; int opt; int opt_dump_png = false; |