diff options
author | Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> | 2023-03-21 10:57:32 +0200 |
---|---|---|
committer | Kamil Konieczny <kamil.konieczny@linux.intel.com> | 2023-04-05 15:23:49 +0200 |
commit | 1b9ca59aa11549ae689fcb19ba9ddcedaa75a549 (patch) | |
tree | a29eacdf6a063f7d3a84db678ea01e9627657504 /tests/kms_plane_scaling.c | |
parent | cbac5f457ab5d99586f24c6c9c48705d63ddf433 (diff) |
tests/kms_plane_scaling: reduce work on framebuffer creation
There was created pattern framebuffers on tests which are not crc
tests, change these to blank framebuffers.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
Diffstat (limited to 'tests/kms_plane_scaling.c')
-rw-r--r-- | tests/kms_plane_scaling.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c index 69df6d9aa..5008cd931 100644 --- a/tests/kms_plane_scaling.c +++ b/tests/kms_plane_scaling.c @@ -719,10 +719,10 @@ static void setup_fb(int fd, int width, int height, double r, double g, double b, struct igt_fb *fb) { - igt_create_color_pattern_fb(fd, width, height, - DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_LINEAR, - r, g, b, fb); + igt_create_fb(fd, width, height, + DRM_FORMAT_XRGB8888, + DRM_FORMAT_MOD_LINEAR, + fb); } static void @@ -807,21 +807,21 @@ test_invalid_num_scalers(data_t *d, enum pipe pipe, igt_output_t *output) plane[2] = igt_pipe_get_plane_type_index(pipe_obj, DRM_PLANE_TYPE_OVERLAY, 2); igt_require(plane[2]); - igt_create_color_pattern_fb(display->drm_fd, - width, height, - DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_LINEAR, - 1.0, 0.0, 0.0, &d->fb[0]); - igt_create_color_pattern_fb(display->drm_fd, - width, height, - DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_LINEAR, - 0.0, 1.0, 0.0, &d->fb[1]); - igt_create_color_pattern_fb(display->drm_fd, - width, height, - DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_LINEAR, - 0.0, 0.0, 1.0, &d->fb[2]); + igt_create_fb(display->drm_fd, + width, height, + DRM_FORMAT_XRGB8888, + DRM_FORMAT_MOD_LINEAR, + &d->fb[0]); + igt_create_fb(display->drm_fd, + width, height, + DRM_FORMAT_XRGB8888, + DRM_FORMAT_MOD_LINEAR, + &d->fb[1]); + igt_create_fb(display->drm_fd, + width, height, + DRM_FORMAT_XRGB8888, + DRM_FORMAT_MOD_LINEAR, + &d->fb[2]); igt_plane_set_fb(plane[0], &d->fb[0]); igt_plane_set_fb(plane[1], &d->fb[1]); |