diff options
Diffstat (limited to 'tests/kms_draw_crc.c')
-rw-r--r-- | tests/kms_draw_crc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/kms_draw_crc.c b/tests/kms_draw_crc.c index 86dcf392..fb10d7cc 100644 --- a/tests/kms_draw_crc.c +++ b/tests/kms_draw_crc.c @@ -156,14 +156,14 @@ static void get_method_crc(enum igt_draw_method method, uint32_t drm_format, static bool format_is_supported(uint32_t format, uint64_t modifier) { uint32_t gem_handle, fb_id; - unsigned int stride; + unsigned int strides[4] = {}; int ret; gem_handle = igt_create_bo_with_dimensions(drm_fd, 64, 64, format, modifier, - 0, NULL, &stride, NULL); + 0, NULL, &strides[0], NULL); ret = __kms_addfb(drm_fd, gem_handle, 64, 64, - stride, format, modifier, NULL, + format, modifier, strides, NULL, LOCAL_DRM_MODE_FB_MODIFIERS, &fb_id); drmModeRmFB(drm_fd, fb_id); gem_close(drm_fd, gem_handle); |