summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2014-06-23 15:24:49 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2014-08-21 14:54:01 +0100
commit3149b8e903ecdbd7fadbbfcd9d3fdddf11b444a7 (patch)
treec8cef24e95bbc7cb7a6aa5418438cea59bafd93c
parent4a8c6346e53f1fbda34a0d7d376b2a906716a38a (diff)
kms_psr_sink_crc: Adjust to the new igt_create.*fb() API
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
-rw-r--r--tests/kms_psr_sink_crc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c
index 8e8c9086..909d6ca7 100644
--- a/tests/kms_psr_sink_crc.c
+++ b/tests/kms_psr_sink_crc.c
@@ -108,7 +108,7 @@ static uint32_t create_fb(data_t *data,
cairo_t *cr;
fb_id = igt_create_fb(data->drm_fd, w, h,
- DRM_FORMAT_XRGB8888, true, fb);
+ DRM_FORMAT_XRGB8888, I915_TILING_X, fb);
igt_assert(fb_id);
cr = igt_get_cairo_ctx(data->drm_fd, fb);
@@ -124,7 +124,7 @@ static void create_cursor_fb(data_t *data, struct igt_fb *fb)
cairo_t *cr;
data->fb_id[2] = igt_create_fb(data->drm_fd, 64, 64,
- DRM_FORMAT_ARGB8888, false,
+ DRM_FORMAT_ARGB8888, I915_TILING_NONE,
fb);
igt_assert(data->fb_id[2]);
@@ -528,13 +528,13 @@ static void test_sprite(data_t *data)
igt_create_color_fb(data->drm_fd,
mode->hdisplay, mode->vdisplay,
- DRM_FORMAT_XRGB8888, true, /* tiled */
+ DRM_FORMAT_XRGB8888, I915_TILING_X,
0.0, 1.0, 0.0,
&data->fb[0]);
igt_create_color_fb(data->drm_fd,
mode->hdisplay/2, mode->vdisplay/2,
- DRM_FORMAT_XRGB8888, true, /* tiled */
+ DRM_FORMAT_XRGB8888, I915_TILING_X,
1.0, 0.0, 0.0,
&data->fb[1]);