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_fbc_crc.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_fbc_crc.c')
-rw-r--r-- | tests/kms_fbc_crc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/kms_fbc_crc.c b/tests/kms_fbc_crc.c index d60aaaae..4f56d630 100644 --- a/tests/kms_fbc_crc.c +++ b/tests/kms_fbc_crc.c @@ -51,7 +51,7 @@ enum test_mode { typedef struct { struct kmstest_connector_config config; drmModeModeInfo mode; - struct kmstest_fb fb[2]; + struct igt_fb fb[2]; } connector_t; typedef struct { @@ -90,17 +90,17 @@ static const char *test_mode_str(enum test_mode mode) static uint32_t create_fb(data_t *data, int w, int h, double r, double g, double b, - struct kmstest_fb *fb) + struct igt_fb *fb) { uint32_t fb_id; cairo_t *cr; - fb_id = kmstest_create_fb(data->drm_fd, w, h, + fb_id = igt_create_fb(data->drm_fd, w, h, DRM_FORMAT_XRGB8888, true, fb); igt_assert(fb_id); - cr = kmstest_get_cairo_ctx(data->drm_fd, fb); - kmstest_paint_color(cr, 0, 0, w, h, r, g, b); + cr = igt_get_cairo_ctx(data->drm_fd, fb); + igt_paint_color(cr, 0, 0, w, h, r, g, b); igt_assert(cairo_status(cr) == 0); cairo_destroy(cr); |