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_panel_fitting.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_panel_fitting.c')
-rw-r--r-- | tests/kms_panel_fitting.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c index f92dfd04..6c1b748d 100644 --- a/tests/kms_panel_fitting.c +++ b/tests/kms_panel_fitting.c @@ -61,7 +61,7 @@ static void prepare_crtc(data_t *data, igt_output_t *output, enum pipe pipe, igt_create_pattern_fb(data->drm_fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_NONE, + DRM_FORMAT_MOD_LINEAR, &data->fb1); /* @@ -104,7 +104,7 @@ static void test_panel_fitting(data_t *d) /* allocate fb2 with image */ igt_create_pattern_fb(d->drm_fd, mode->hdisplay / 2, mode->vdisplay / 2, DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_NONE, &d->fb2); + DRM_FORMAT_MOD_LINEAR, &d->fb2); /* Set up display to enable panel fitting */ mode->hdisplay = 640; @@ -195,15 +195,15 @@ test_panel_fitting_fastset(igt_display_t *display, const enum pipe pipe, igt_out sprite = igt_output_get_plane_type(output, DRM_PLANE_TYPE_OVERLAY); igt_create_color_fb(display->drm_fd, mode.hdisplay, mode.vdisplay, - DRM_FORMAT_XRGB8888, DRM_FORMAT_MOD_NONE, + DRM_FORMAT_XRGB8888, DRM_FORMAT_MOD_LINEAR, 0.f, 0.f, 1.f, &blue); igt_create_color_fb(display->drm_fd, 640, 480, - DRM_FORMAT_XRGB8888, DRM_FORMAT_MOD_NONE, + DRM_FORMAT_XRGB8888, DRM_FORMAT_MOD_LINEAR, 1.f, 0.f, 0.f, &red); igt_create_color_fb(display->drm_fd, 800, 600, - DRM_FORMAT_XRGB8888, DRM_FORMAT_MOD_NONE, + DRM_FORMAT_XRGB8888, DRM_FORMAT_MOD_LINEAR, 0.f, 1.f, 0.f, &green); igt_plane_set_fb(primary, &blue); |