From: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
To: Hersen Wu <hersenxs.wu@amd.com>,
igt-dev@lists.freedesktop.org, rodrigo.siqueira@amd.com,
aurabindo.pillai@amd.com, alex.hung@amd.com,
hamza.mahfooz@amd.com, sunpeng.li@amd.com
Cc: markyacoub@google.com
Subject: Re: [igt-dev] [PATCH 1/2] [i-g-t] tests/kms_cursor_crc: Fix tests be skipped on AMD gpu
Date: Mon, 2 Oct 2023 11:01:25 +0300 [thread overview]
Message-ID: <c554a0df-8b91-57bc-a955-b0b5a5b63de0@gmail.com> (raw)
In-Reply-To: <20231001162828.74566-1-hersenxs.wu@amd.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
On 1.10.2023 19.28, Hersen Wu wrote:
> Remove extra line when create cursor fb for AMD gpu.
>
> AMD gpu does not support cursor buffer crop. AMD driver
> fails validation with fb size not equal to cursor size.
>
> Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
> ---
> tests/kms_cursor_crc.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c
> index 76c01f557..ba29ff65d 100644
> --- a/tests/kms_cursor_crc.c
> +++ b/tests/kms_cursor_crc.c
> @@ -560,14 +560,18 @@ static void create_cursor_fb(data_t *data, int cur_w, int cur_h)
> {
> cairo_t *cr;
> uint32_t fb_id;
> + int cur_h_extra_line = 1;
>
> + /* Cropping is not supported for cursor plane by AMD */
> + if (is_amdgpu_device(data->drm_fd))
> + cur_h_extra_line = 0;
> /*
> * Make the FB slightly taller and leave the extra
> * line opaque white, so that we can see that the
> * hardware won't scan beyond what it should (esp.
> * with non-square cursors).
> */
> - fb_id = igt_create_color_fb(data->drm_fd, cur_w, cur_h + 1,
> + fb_id = igt_create_color_fb(data->drm_fd, cur_w, cur_h + cur_h_extra_line,
> DRM_FORMAT_ARGB8888,
> DRM_FORMAT_MOD_LINEAR,
> 1.0, 1.0, 1.0,
next prev parent reply other threads:[~2023-10-02 8:01 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-01 16:28 [igt-dev] [PATCH 1/2] [i-g-t] tests/kms_cursor_crc: Fix tests be skipped on AMD gpu Hersen Wu
2023-10-01 16:28 ` [igt-dev] [PATCH 2/2] [i-g-t] tests/kms_cursor_crc: Fix test intermittent failures " Hersen Wu
2023-10-02 8:01 ` Juha-Pekka Heikkila
2023-10-01 17:12 ` [igt-dev] ✓ CI.xeBAT: success for series starting with [1/2,i-g-t] tests/kms_cursor_crc: Fix tests be skipped " Patchwork
2023-10-01 17:16 ` [igt-dev] ✗ Fi.CI.BAT: failure " Patchwork
2023-10-02 8:01 ` Juha-Pekka Heikkila [this message]
2023-10-05 19:34 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [1/2,i-g-t] tests/kms_cursor_crc: Fix tests be skipped on AMD gpu (rev2) Patchwork
2023-10-05 20:48 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-10-05 20:50 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [1/2,i-g-t] tests/kms_cursor_crc: Fix tests be skipped on AMD gpu (rev3) Patchwork
2023-10-05 22:06 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-10-06 9:47 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [1/2,i-g-t] tests/kms_cursor_crc: Fix tests be skipped on AMD gpu (rev2) Patchwork
2023-10-06 11:27 ` [igt-dev] ✗ Fi.CI.IGT: failure for series starting with [1/2,i-g-t] tests/kms_cursor_crc: Fix tests be skipped on AMD gpu (rev3) Patchwork
2023-10-06 13:25 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [1/2,i-g-t] tests/kms_cursor_crc: Fix tests be skipped on AMD gpu (rev4) Patchwork
2023-10-06 14:56 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-10-07 2:23 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-10-08 17:00 ` [igt-dev] ✓ CI.xeBAT: success for series starting with [1/2,i-g-t] tests/kms_cursor_crc: Fix tests be skipped on AMD gpu (rev5) Patchwork
2023-10-08 17:03 ` [igt-dev] ✗ Fi.CI.BAT: failure " Patchwork
2023-10-10 14:20 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [1/2,i-g-t] tests/kms_cursor_crc: Fix tests be skipped on AMD gpu (rev6) Patchwork
2023-10-10 14:59 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-10-10 21:58 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-10-11 20:52 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [1/2,i-g-t] tests/kms_cursor_crc: Fix tests be skipped on AMD gpu (rev7) Patchwork
2023-10-11 21:18 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-10-12 12:42 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-10-12 15:51 ` [igt-dev] ✓ CI.xeBAT: success for series starting with [1/2,i-g-t] tests/kms_cursor_crc: Fix tests be skipped on AMD gpu (rev8) Patchwork
2023-10-12 16:04 ` [igt-dev] ✓ Fi.CI.BAT: " Patchwork
2023-10-12 16:51 ` [igt-dev] [PATCH 1/2] [i-g-t] tests/kms_cursor_crc: Fix tests be skipped on AMD gpu Kamil Konieczny
2023-10-16 19:14 ` Wu, Hersen
2023-10-13 14:22 ` [igt-dev] ✗ Fi.CI.IGT: failure for series starting with [1/2,i-g-t] tests/kms_cursor_crc: Fix tests be skipped on AMD gpu (rev8) 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=c554a0df-8b91-57bc-a955-b0b5a5b63de0@gmail.com \
--to=juhapekka.heikkila@gmail.com \
--cc=alex.hung@amd.com \
--cc=aurabindo.pillai@amd.com \
--cc=hamza.mahfooz@amd.com \
--cc=hersenxs.wu@amd.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=markyacoub@google.com \
--cc=rodrigo.siqueira@amd.com \
--cc=sunpeng.li@amd.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox