diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-26 09:18:11 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-26 18:50:27 +0100 |
commit | 9aea7ae541212e4116af8d5d922d7cbcc571df50 (patch) | |
tree | af199ac060429b4ad99d557bc6f4de45156d9e03 /tests/kms_pipe_crc_basic.c | |
parent | 57d7db8cf8c407541d1ed57348a6f468c2b73577 (diff) |
lib/igt_fb: switch to igt_ prefix from kmstest_
Shorter and more in line with our general igt_ prefix for everything
which isn't somehow intel or i915-gem or otherwise hw specific - these
helpers here are all fully generic framebuffer handling functions
based on kms + cairo.
Well, the actual buffer alloc is done with i915 gem, but meh ;-)
Two special cases:
- bpp_depth_to_drm_format and drm_format_to_bpp completely lacked
prefixes, so just add igt_.
- write_fb was a bit misleading given that we have gem_write for
uploading to buffers. Rename that to write_fb_to_png to make it
crystal clear what this thing does even without looking at docs.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/kms_pipe_crc_basic.c')
-rw-r--r-- | tests/kms_pipe_crc_basic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c index 75217df4..bef7a421 100644 --- a/tests/kms_pipe_crc_basic.c +++ b/tests/kms_pipe_crc_basic.c @@ -34,7 +34,7 @@ typedef struct { int drm_fd; igt_display_t display; - struct kmstest_fb fb; + struct igt_fb fb; } data_t; static void test_bad_command(data_t *data, const char *cmd) @@ -75,7 +75,7 @@ static void test_read_crc(data_t *data, int pipe, unsigned flags) pipe_name(pipe)); mode = igt_output_get_mode(output); - kmstest_create_color_fb(data->drm_fd, + igt_create_color_fb(data->drm_fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888, false, /* tiled */ @@ -116,7 +116,7 @@ static void test_read_crc(data_t *data, int pipe, unsigned flags) free(crcs); igt_pipe_crc_free(pipe_crc); - kmstest_remove_fb(data->drm_fd, &data->fb); + igt_remove_fb(data->drm_fd, &data->fb); igt_plane_set_fb(primary, NULL); igt_output_set_pipe(output, PIPE_ANY); |