diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2021-10-08 17:26:16 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2021-10-11 15:37:24 +0300 |
commit | 6b5b8991a8f173a5ec675963e4f23416484e6655 (patch) | |
tree | 22854cef899774172ecddce52b25621d13845697 /tests/kms_universal_plane.c | |
parent | 426723f979380f18f9c07d36ebac3a52f760ba7e (diff) |
igt: s/DRM_FORMAT_MOD_NONE/DRM_FORMAT_MOD_LINEAR/
DRM_FORMAT_MOD_LINEAR is the more sensible name for
DRM_FORMAT_MOD_NONE. Use the better name.
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/kms_universal_plane.c')
-rw-r--r-- | tests/kms_universal_plane.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/kms_universal_plane.c b/tests/kms_universal_plane.c index c7b859da..2e895897 100644 --- a/tests/kms_universal_plane.c +++ b/tests/kms_universal_plane.c @@ -75,22 +75,22 @@ functional_test_init(functional_test_t *test, igt_output_t *output, enum pipe pi mode = igt_output_get_mode(output); igt_create_color_fb(data->drm_fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_NONE, + DRM_FORMAT_MOD_LINEAR, 0.0, 0.0, 0.0, &test->black_fb); igt_create_color_fb(data->drm_fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_NONE, + DRM_FORMAT_MOD_LINEAR, 0.0, 0.0, 1.0, &test->blue_fb); igt_create_color_fb(data->drm_fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_NONE, + DRM_FORMAT_MOD_LINEAR, 1.0, 1.0, 0.0, &test->yellow_fb); igt_create_color_fb(data->drm_fd, 100, 100, DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_NONE, + DRM_FORMAT_MOD_LINEAR, 1.0, 0.0, 0.0, &test->red_fb); @@ -316,19 +316,19 @@ sanity_test_init(sanity_test_t *test, igt_output_t *output, enum pipe pipe) mode = igt_output_get_mode(output); igt_create_color_fb(data->drm_fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_NONE, + DRM_FORMAT_MOD_LINEAR, 0.0, 0.0, 1.0, &test->blue_fb); igt_create_color_fb(data->drm_fd, mode->hdisplay + 100, mode->vdisplay + 100, DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_NONE, + DRM_FORMAT_MOD_LINEAR, 0.0, 0.0, 1.0, &test->oversized_fb); igt_create_color_fb(data->drm_fd, mode->hdisplay - 100, mode->vdisplay - 100, DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_NONE, + DRM_FORMAT_MOD_LINEAR, 0.0, 0.0, 1.0, &test->undersized_fb); @@ -446,12 +446,12 @@ pageflip_test_init(pageflip_test_t *test, igt_output_t *output, enum pipe pipe) mode = igt_output_get_mode(output); igt_create_color_fb(data->drm_fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_NONE, + DRM_FORMAT_MOD_LINEAR, 1.0, 0.0, 0.0, &test->red_fb); igt_create_color_fb(data->drm_fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_NONE, + DRM_FORMAT_MOD_LINEAR, 0.0, 0.0, 1.0, &test->blue_fb); } @@ -666,19 +666,19 @@ gen9_test_init(gen9_test_t *test, igt_output_t *output, enum pipe pipe) /* Initial framebuffer of full CRTC size */ igt_create_color_fb(data->drm_fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_NONE, + DRM_FORMAT_MOD_LINEAR, 0.0, 1.0, 0.0, &test->biggreen_fb); /* Framebuffers that only cover a quarter of the CRTC size */ igt_create_color_fb(data->drm_fd, test->w, test->h, DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_NONE, + DRM_FORMAT_MOD_LINEAR, 1.0, 0.0, 0.0, &test->smallred_fb); igt_create_color_fb(data->drm_fd, test->w, test->h, DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_NONE, + DRM_FORMAT_MOD_LINEAR, 0.0, 0.0, 1.0, &test->smallblue_fb); } |