From: Tom Chung <chiahsuan.chung@amd.com>
To: James Lin <PingLei.Lin@amd.com>, igt-dev@lists.freedesktop.org
Cc: alex.hung@amd.com, sunpeng.li@amd.com
Subject: Re: [PATCH i-g-t] tests/amdgpu/amd_cursor_overlay: reset primary position for reference frame
Date: Tue, 4 Aug 2026 10:53:43 +0800 [thread overview]
Message-ID: <1ba157c1-eeb7-40f4-82de-b900e2de7701@amd.com> (raw)
In-Reply-To: <20260730125740.110354-1-PingLei.Lin@amd.com>
Reviewed-by: Tom Chung <chiahsuan.chung@amd.com>
On 7/30/2026 8:57 PM, James Lin wrote:
> [Why]
> test_cursor_pos() reuses the primary plane across cursor positions. The
> TEST_QUARTER_FB path repositions the primary to an opposite quarter of the
> screen (opp_x, opp_y). On the next iteration the reference frame reprograms
> the full-size framebuffer with igt_plane_set_fb(), which resets the plane
> size but NOT its CRTC position, so the "full-screen" reference primary keeps
> the stale quarter offset and therefore no longer covers the CRTC.
>
> On DCN4x the cursor falls back to overlay mode whenever the top plane does
> not fill the CRTC. With the stale offset the reference frame is composited
> with an overlay cursor instead of a native one, which renders differently
> from the settled frame and produces a stable CRC mismatch against the test
> frame (only the first position, where the primary is still at the origin,
> happens to pass).
>
> [How]
> Explicitly reset the primary plane position to (0,0) for the reference
> frame so it actually covers the CRTC, matching the test's intent.
>
> Signed-off-by: James Lin <PingLei.Lin@amd.com>
> ---
> tests/amdgpu/amd_cursor_overlay.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/amdgpu/amd_cursor_overlay.c b/tests/amdgpu/amd_cursor_overlay.c
> index 41c9905b8..b130da4ff 100644
> --- a/tests/amdgpu/amd_cursor_overlay.c
> +++ b/tests/amdgpu/amd_cursor_overlay.c
> @@ -214,6 +214,7 @@ static void test_cursor_pos(data_t *data, int x, int y, unsigned int flags)
> cr = igt_get_cairo_ctx(rgb_fb->fd, rgb_fb);
>
> igt_plane_set_fb(data->primary, rgb_fb);
> + igt_plane_set_position(data->primary, 0, 0);
> igt_display_commit2(&data->display, COMMIT_ATOMIC);
>
> igt_paint_color(cr, 0, 0, rgb_fb->width, rgb_fb->height, 0.0, 0.0, 0.0);
prev parent reply other threads:[~2026-08-04 2:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-30 12:57 [PATCH i-g-t] tests/amdgpu/amd_cursor_overlay: reset primary position for reference frame James Lin
2026-07-31 8:08 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-07-31 8:29 ` ✗ i915.CI.BAT: failure " Patchwork
2026-07-31 9:37 ` ✓ Xe.CI.FULL: success " Patchwork
2026-08-04 2:53 ` Tom Chung [this message]
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=1ba157c1-eeb7-40f4-82de-b900e2de7701@amd.com \
--to=chiahsuan.chung@amd.com \
--cc=PingLei.Lin@amd.com \
--cc=alex.hung@amd.com \
--cc=igt-dev@lists.freedesktop.org \
--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