From: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
To: Esha Bharadwaj <quic_ebharadw@quicinc.com>,
igt-dev@lists.freedesktop.org
Cc: adrinael@adrinael.net, quic_abhinavk@quicinc.com, arek@hiler.eu,
kamil.konieczny@linux.intel.com, bhanuprakash.modem@intel.com,
ashutosh.dixit@intel.com, robdclark@chromium.org,
quic_jesszhan@quicinc.com
Subject: Re: [PATCH i-g-t] lib/igt_fb: fix stride calculation for igt_fb_get_fnv1a_crc()
Date: Fri, 13 Sep 2024 18:44:13 +0300 [thread overview]
Message-ID: <c66768b7-b22f-4771-b59b-b4be5fcf0c85@gmail.com> (raw)
In-Reply-To: <20240911210058.477513-1-quic_ebharadw@quicinc.com>
Hi Esha,
your change look ok. Those ci failures you got are some noise, they're
not relating to your change.
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
On 12.9.2024 0.00, Esha Bharadwaj wrote:
> fb->strides is assigned to the value returned by
> calc_plane_stride() only if it was previously not set by the
> caller. In the case of dumb buffer allocation, this is already
> assigned by the driver.
>
> Respect the stride requested by the driver in such cases by
> using fb->strides[0] as this is assigned correctly in
> calc_fb_size() only if it was previously not set by the driver.
>
> Signed-off-by: Esha Bharadwaj <quic_ebharadw@quicinc.com>
> ---
> lib/igt_fb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/igt_fb.c b/lib/igt_fb.c
> index ab162a5b7..ed016f07d 100644
> --- a/lib/igt_fb.c
> +++ b/lib/igt_fb.c
> @@ -4814,7 +4814,7 @@ int igt_fb_get_fnv1a_crc(struct igt_fb *fb, igt_crc_t *crc)
> void *map;
> char *ptr;
> int x, y, cpp = igt_drm_format_to_bpp(fb->drm_format) / 8;
> - uint32_t stride = calc_plane_stride(fb, 0);
> + uint32_t stride = fb->strides[0];
>
> if (fb->num_planes != 1)
> return -EINVAL;
prev parent reply other threads:[~2024-09-13 15:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-11 21:00 [PATCH i-g-t] lib/igt_fb: fix stride calculation for igt_fb_get_fnv1a_crc() Esha Bharadwaj
2024-09-12 7:39 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-09-12 7:43 ` ✗ CI.xeBAT: failure " Patchwork
2024-09-12 13:37 ` ✗ CI.xeFULL: " Patchwork
2024-09-13 0:25 ` ✗ Fi.CI.IGT: " Patchwork
2024-09-13 15:44 ` Juha-Pekka Heikkila [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=c66768b7-b22f-4771-b59b-b4be5fcf0c85@gmail.com \
--to=juhapekka.heikkila@gmail.com \
--cc=adrinael@adrinael.net \
--cc=arek@hiler.eu \
--cc=ashutosh.dixit@intel.com \
--cc=bhanuprakash.modem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
--cc=quic_abhinavk@quicinc.com \
--cc=quic_ebharadw@quicinc.com \
--cc=quic_jesszhan@quicinc.com \
--cc=robdclark@chromium.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