From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2EBD96F61B for ; Wed, 29 Jan 2020 18:16:21 +0000 (UTC) From: Imre Deak Date: Wed, 29 Jan 2020 20:16:01 +0200 Message-Id: <20200129181601.15918-9-imre.deak@intel.com> In-Reply-To: <20200129181601.15918-1-imre.deak@intel.com> References: <20200129181601.15918-1-imre.deak@intel.com> MIME-Version: 1.0 Subject: [igt-dev] [PATCH i-g-t 9/9] tests/kms_plane: Fix format/mod for reference FB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org List-ID: Fix the use of uninited format, modifier. Signed-off-by: Imre Deak --- tests/kms_plane.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/kms_plane.c b/tests/kms_plane.c index 9ef3a7f3..7d7316d5 100644 --- a/tests/kms_plane.c +++ b/tests/kms_plane.c @@ -683,7 +683,7 @@ static bool test_format_plane(data_t *data, enum pipe pipe, struct igt_fb test_fb; int ret; - igt_create_fb(data->drm_fd, 64, 64, format, + igt_create_fb(data->drm_fd, 64, 64, ref_format, LOCAL_DRM_FORMAT_MOD_NONE, &test_fb); igt_plane_set_fb(plane, &test_fb); @@ -704,7 +704,7 @@ static bool test_format_plane(data_t *data, enum pipe pipe, const color_t *c = &data->colors[i]; test_format_plane_color(data, pipe, plane, - format, modifier, + ref_format, ref_modifier, width, height, IGT_COLOR_YCBCR_BT709, IGT_COLOR_YCBCR_LIMITED_RANGE, -- 2.23.1 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev