From: "Kahola, Mika" <mika.kahola@intel.com>
To: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_cursor_crc: Let's not create full screen framebuffers in a loop
Date: Fri, 16 Apr 2021 10:26:01 +0000 [thread overview]
Message-ID: <aacca01484364b9e915113de8e2ce104@intel.com> (raw)
In-Reply-To: <20210414082556.14053-1-juhapekka.heikkila@gmail.com>
Seems valid change.
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
> -----Original Message-----
> From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of Juha-
> Pekka Heikkila
> Sent: Wednesday, April 14, 2021 11:26 AM
> To: igt-dev@lists.freedesktop.org
> Subject: [igt-dev] [PATCH i-g-t] tests/kms_cursor_crc: Let's not create full
> screen framebuffers in a loop
>
> Avoid creating full screen size fbs in a loop just to throw them away.
>
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> ---
> tests/kms_cursor_crc.c | 18 ++++++++++--------
> 1 file changed, 10 insertions(+), 8 deletions(-)
>
> diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c index
> 2619e15e0..1463c5b3f 100644
> --- a/tests/kms_cursor_crc.c
> +++ b/tests/kms_cursor_crc.c
> @@ -492,13 +492,6 @@ static void test_cursor_opaque(data_t *data)
> test_cursor_alpha(data, 1.0);
> }
>
> -static void run_test(data_t *data, void (*testfunc)(data_t *), int cursor_w,
> int cursor_h) -{
> - prepare_crtc(data, data->output, cursor_w, cursor_h);
> - testfunc(data);
> - cleanup_crtc(data);
> -}
> -
> static void create_cursor_fb(data_t *data, int cur_w, int cur_h) {
> cairo_t *cr;
> @@ -567,6 +560,16 @@ static void require_cursor_size(data_t *data, int w,
> int h)
> igt_skip_on_f(ret, "Cursor size %dx%d not supported by driver\n", w,
> h); }
>
> +static void run_test(data_t *data, void (*testfunc)(data_t *), int
> +cursor_w, int cursor_h) {
> + if (data->fb.fb_id != 0)
> + require_cursor_size(data, cursor_w, cursor_h);
> +
> + prepare_crtc(data, data->output, cursor_w, cursor_h);
> + testfunc(data);
> + cleanup_crtc(data);
> +}
> +
> static void test_cursor_size(data_t *data) {
> igt_display_t *display = &data->display; @@ -687,7 +690,6 @@ static
> void run_size_tests(data_t *data, enum pipe pipe,
> w, h);
> }
> create_cursor_fb(data, w, h);
> - require_cursor_size(data, w, h);
> }
>
> /* Using created cursor FBs to test cursor support */
> --
> 2.28.0
>
> _______________________________________________
> igt-dev mailing list
> igt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2021-04-16 10:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-14 8:25 [igt-dev] [PATCH i-g-t] tests/kms_cursor_crc: Let's not create full screen framebuffers in a loop Juha-Pekka Heikkila
2021-04-14 8:56 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-04-14 10:41 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-04-15 7:49 ` Juha-Pekka Heikkila
2021-04-16 11:58 ` Saarinen, Jani
2021-04-16 16:35 ` Vudum, Lakshminarayana
2021-04-15 19:39 ` Patchwork
2021-04-15 20:46 ` Patchwork
2021-04-15 21:01 ` Patchwork
2021-04-15 23:23 ` Patchwork
2021-04-16 10:26 ` Kahola, Mika [this message]
2021-04-16 15:46 ` Patchwork
2021-04-16 16:03 ` [igt-dev] ✓ Fi.CI.IGT: success " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aacca01484364b9e915113de8e2ce104@intel.com \
--to=mika.kahola@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=juhapekka.heikkila@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.