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_plane_multiple.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_plane_multiple.c')
-rw-r--r-- | tests/kms_plane_multiple.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/kms_plane_multiple.c b/tests/kms_plane_multiple.c index 45cabb50..c9c43dd5 100644 --- a/tests/kms_plane_multiple.c +++ b/tests/kms_plane_multiple.c @@ -113,7 +113,7 @@ get_reference_crc(data_t *data, igt_output_t *output, enum pipe pipe, igt_create_color_fb(data->drm_fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_NONE, + DRM_FORMAT_MOD_LINEAR, color->red, color->green, color->blue, &data->fb[primary->index]); @@ -243,7 +243,7 @@ prepare_planes(data_t *data, enum pipe pipe_id, color_t *color, data->plane[i] = plane; plane_format = data->plane[i]->type == DRM_PLANE_TYPE_CURSOR ? DRM_FORMAT_ARGB8888 : DRM_FORMAT_XRGB8888; - plane_tiling = data->plane[i]->type == DRM_PLANE_TYPE_CURSOR ? DRM_FORMAT_MOD_NONE : tiling; + plane_tiling = data->plane[i]->type == DRM_PLANE_TYPE_CURSOR ? DRM_FORMAT_MOD_LINEAR : tiling; igt_skip_on(!igt_plane_has_format_mod(plane, plane_format, plane_tiling)); @@ -397,7 +397,7 @@ run_tests_for_pipe(data_t *data, enum pipe pipe) test_plane_position(data, pipe, I915_FORMAT_MOD_Yf_TILED); igt_subtest_f("atomic-pipe-%s-tiling-none", kmstest_pipe_name(pipe)) - test_plane_position(data, pipe, DRM_FORMAT_MOD_NONE); + test_plane_position(data, pipe, DRM_FORMAT_MOD_LINEAR); } static data_t data; |