summaryrefslogtreecommitdiff
path: root/tests/pm_lpsp.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-26 09:18:11 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-26 18:50:27 +0100
commit9aea7ae541212e4116af8d5d922d7cbcc571df50 (patch)
treeaf199ac060429b4ad99d557bc6f4de45156d9e03 /tests/pm_lpsp.c
parent57d7db8cf8c407541d1ed57348a6f468c2b73577 (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/pm_lpsp.c')
-rw-r--r--tests/pm_lpsp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/pm_lpsp.c b/tests/pm_lpsp.c
index e8033cf3..9d3884c0 100644
--- a/tests/pm_lpsp.c
+++ b/tests/pm_lpsp.c
@@ -91,15 +91,15 @@ static void screens_disabled_subtest(int drm_fd, drmModeResPtr drm_res)
static uint32_t create_fb(int drm_fd, int width, int height)
{
- struct kmstest_fb fb;
+ struct igt_fb fb;
cairo_t *cr;
uint32_t buffer_id;
- buffer_id = kmstest_create_fb(drm_fd, width, height,
+ buffer_id = igt_create_fb(drm_fd, width, height,
DRM_FORMAT_XRGB8888,
false, &fb);
- cr = kmstest_get_cairo_ctx(drm_fd, &fb);
- kmstest_paint_test_pattern(cr, width, height);
+ cr = igt_get_cairo_ctx(drm_fd, &fb);
+ igt_paint_test_pattern(cr, width, height);
cairo_destroy(cr);
return buffer_id;