From: Javier Martinez Canillas <javierm@redhat.com>
To: Albert Esteve <aesteve@redhat.com>, igt-dev@lists.freedesktop.org
Cc: belmouss@redhat.com
Subject: Re: [igt-dev] [PATCH 3/3] kms_cursor_legacy: modeset-atomic-cursor-hotspot
Date: Tue, 25 Jul 2023 16:26:45 +0200 [thread overview]
Message-ID: <87cz0gjcd6.fsf@minerva.mail-host-address-is-not-set> (raw)
In-Reply-To: <20230721130458.64856-4-aesteve@redhat.com>
Albert Esteve <aesteve@redhat.com> writes:
The patch looks good to me as well.
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Some comments below though:
> Add a test for modesetting an atomic cursor plane
> hotspot property. The test first checks if the
> plane is atomic and has the hotspot property.
> and if it does, it sets different random hot_x
> and hot_y values and checks that it is updated
> correctly after an atomic commit.
>
> Signed-off-by: Albert Esteve <aesteve@redhat.com>
> ---
> tests/kms_cursor_legacy.c | 75 +++++++++++++++++++++++++++++++++++++++
> 1 file changed, 75 insertions(+)
>
> diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c
> index 1ebac9d31..38258ed8d 100644
> --- a/tests/kms_cursor_legacy.c
> +++ b/tests/kms_cursor_legacy.c
This file is called kms_cursor_legacy.c but it seems there are tests for
both legacy KMS and atomic KMS? That confused me :)
> @@ -1607,6 +1607,70 @@ static void flip_vs_cursor_busy_crc(igt_display_t *display, bool atomic)
> put_ahnd(ahnd);
> }
>
> +static void modeset_atomic_cursot_hotspot(igt_display_t *display)
> +{
I think you meant this to be "cursor_hotspot" instead ?
[...]
> +
> + width = height = 64;
maybe you can rename these to cursor_{width,height} ?
Also, there's https://docs.kernel.org/gpu/drm-uapi.html#c.DRM_CAP_CURSOR_WIDTH
and DRM_CAP_CURSOR_HEIGHT to query the hardware cursor size. Maybe you should
use that instead of assume a 64x64 cursor size ?
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat
next prev parent reply other threads:[~2023-07-25 14:26 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-21 13:04 [igt-dev] [PATCH 0/3] Add atomic DRM cursor hotspot test Albert Esteve
2023-07-21 13:04 ` [igt-dev] [PATCH 1/3] drm header update: temp commit Albert Esteve
2023-07-28 7:41 ` Zbigniew Kempczyński
2023-07-28 7:57 ` Albert Esteve
2023-07-28 8:31 ` Zbigniew Kempczyński
2023-07-21 13:04 ` [igt-dev] [PATCH 2/3] igt_kms: add hotspot plane property Albert Esteve
2023-07-25 13:40 ` Javier Martinez Canillas
2023-07-26 14:42 ` Albert Esteve
2023-07-21 13:04 ` [igt-dev] [PATCH 3/3] kms_cursor_legacy: modeset-atomic-cursor-hotspot Albert Esteve
2023-07-25 14:26 ` Javier Martinez Canillas [this message]
2023-07-26 14:50 ` Albert Esteve
2023-07-26 14:53 ` Javier Martinez Canillas
2023-07-24 12:22 ` [igt-dev] ✓ Fi.CI.BAT: success for Add atomic DRM cursor hotspot test Patchwork
2023-07-24 17:02 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-07-25 15:51 ` [igt-dev] [PATCH 0/3] " Kamil Konieczny
2023-07-26 14:52 ` Albert Esteve
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=87cz0gjcd6.fsf@minerva.mail-host-address-is-not-set \
--to=javierm@redhat.com \
--cc=aesteve@redhat.com \
--cc=belmouss@redhat.com \
--cc=igt-dev@lists.freedesktop.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox