Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9E0B46E2D8 for ; Wed, 24 Mar 2021 07:23:58 +0000 (UTC) From: "Kahola, Mika" Date: Wed, 24 Mar 2021 07:23:56 +0000 Message-ID: <822fd8d4177346818890902cb0f33c6f@intel.com> References: <20210323122943.6362-1-mohammed.khajapasha@intel.com> <20210323122943.6362-2-mohammed.khajapasha@intel.com> In-Reply-To: <20210323122943.6362-2-mohammed.khajapasha@intel.com> Content-Language: en-US MIME-Version: 1.0 Subject: Re: [igt-dev] [PATCH i-g-t 1/1] test/kms_plane_scaling: Don't run scaler clip/clamp with all formats 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: "Khajapasha, Mohammed" , "igt-dev@lists.freedesktop.org" List-ID: > -----Original Message----- > From: Khajapasha, Mohammed > Sent: Tuesday, March 23, 2021 2:30 PM > To: igt-dev@lists.freedesktop.org > Cc: Kahola, Mika ; juhapekka.heikkila@gmail.com > Subject: [PATCH i-g-t 1/1] test/kms_plane_scaling: Don't run scaler clip/clamp > with all formats > > Don't run plane scaler tests with all formats for pipe C & D. > We probably don't need to test plane scaler tests with each format for pipe C > & D. > > $ time ./build/tests/kms_plane_scaling > - real 6m53,143s > + real 4m39,406s > > Cc: juhapekka.heikkila@gmail.com > Cc: Mika Kahola > Signed-off-by: Mohammed Khajapasha > Reviewed-by: Mika Kahola > --- > tests/kms_plane_scaling.c | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c index > c63eb428..31f14275 100644 > --- a/tests/kms_plane_scaling.c > +++ b/tests/kms_plane_scaling.c > @@ -230,6 +230,18 @@ static bool test_format(data_t *data, > return true; > } > > +static bool test_pipe_iteration(data_t *data, enum pipe pipe, int > +iteration) { > + if (!is_i915_device(data->drm_fd) || > + data->extended) > + return true; > + > + if ((pipe > PIPE_B) && (iteration >= 2)) > + return false; > + > + return true; > +} > + > static void test_scaler_with_rotation_pipe(data_t *d, enum pipe pipe, > igt_output_t *output) > { > @@ -532,6 +544,9 @@ test_scaler_with_clipping_clamping_scenario(data_t > *d, enum pipe pipe, igt_outpu > unsigned f1 = d->plane1->drm_plane->formats[i]; > struct igt_vec tested_formats2; > > + if (!test_pipe_iteration(d, pipe, i)) > + continue; > + > if (!test_format(d, &tested_formats1, f1) || > !can_scale(d, f1)) > continue; > -- > 2.29.2.154.g7f7ebe054a _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev