From: Jessica Zhang <quic_jesszhan@quicinc.com>
To: Abhinav Kumar <quic_abhinavk@quicinc.com>,
<igt-dev@lists.freedesktop.org>
Cc: quic_parellan@quicinc.com, petri.latvala@intel.com
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_writeback: fix kms_writeback failure for XRGB8888 only devices
Date: Thu, 30 Nov 2023 15:10:43 -0800 [thread overview]
Message-ID: <980ada22-de83-449e-8102-862b9a50ddd4@quicinc.com> (raw)
In-Reply-To: <20231130032130.2709-1-quic_abhinavk@quicinc.com>
On 11/29/2023 7:21 PM, Abhinav Kumar wrote:
> commit ac56ba97248b ("tests/kms_writeback: support DRM_FORMAT_XRGB2101010
> for writeback") seems to have broken kms_writeback for devices which
> support only XRGB8888 because check_writeback_config() will return a value
> based on the last format in the fourcc[] array.
>
> For devices such as MSM which do not support DRM_FORMAT_XRGB2101010, this
> will return an error and overall kms_writeback_get_output() will not
> return a valid output for the writeback connector.
>
> Change the return of check_writeback_config() to return based on the
> supported_colors bitmask so that only when neither XRGB8888 or
> DRM_FORMAT_XRGB2101010 is supported, then the test is skipped.
>
> Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Applied, thanks!
BR,
Jessica Zhang
> ---
> tests/kms_writeback.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/kms_writeback.c b/tests/kms_writeback.c
> index 25b49eccdbd3..f6e55c809de1 100644
> --- a/tests/kms_writeback.c
> +++ b/tests/kms_writeback.c
> @@ -171,7 +171,7 @@ static bool check_writeback_config(igt_display_t *display, igt_output_t *output,
> data.supported_colors |= 1 << i;
> }
>
> - return !ret;
> + return data.supported_colors;
> }
>
> static igt_output_t *kms_writeback_get_output(igt_display_t *display)
> --
> 2.40.1
>
next prev parent reply other threads:[~2023-11-30 23:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-30 3:21 [igt-dev] [PATCH i-g-t] tests/kms_writeback: fix kms_writeback failure for XRGB8888 only devices Abhinav Kumar
2023-11-30 4:27 ` [igt-dev] ✓ CI.xeBAT: success for " Patchwork
2023-11-30 4:34 ` [igt-dev] ✗ Fi.CI.BAT: failure " Patchwork
2023-11-30 14:07 ` Kamil Konieczny
2023-12-01 11:07 ` Illipilli, TejasreeX
2023-11-30 6:27 ` [igt-dev] [PATCH i-g-t] " Alex Hung
2023-11-30 23:10 ` Jessica Zhang [this message]
2023-12-01 10:27 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2023-12-01 10:54 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2023-12-02 22:55 ` [igt-dev] ✓ Fi.CI.IGT: " 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=980ada22-de83-449e-8102-862b9a50ddd4@quicinc.com \
--to=quic_jesszhan@quicinc.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=petri.latvala@intel.com \
--cc=quic_abhinavk@quicinc.com \
--cc=quic_parellan@quicinc.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