Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
Cc: igt-dev@lists.freedesktop.org, Petri Latvala <petri.latvala@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t] lib/intel_batchbuffer: Remove duplicated assignment
Date: Mon, 27 Sep 2021 09:09:56 -0700	[thread overview]
Message-ID: <87ilymvw2z.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20210927112100.87984-1-zbigniew.kempczynski@intel.com>

On Mon, 27 Sep 2021 04:21:00 -0700, Zbigniew Kempczyński wrote:
>
> Due to some changes related in the alignment in the future remove
> unnecessary assignment.
>
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> Cc: Petri Latvala <petri.latvala@intel.com>
> Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
> ---
>  lib/intel_batchbuffer.c | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
> index 399d0e990..e3e649ca3 100644
> --- a/lib/intel_batchbuffer.c
> +++ b/lib/intel_batchbuffer.c
> @@ -2020,9 +2020,6 @@ __intel_bb_add_intel_buf(struct intel_bb *ibb, struct intel_buf *buf,
>				  buf->addr.offset, alignment, write);
>	buf->addr.offset = obj->offset;
>
> -	if (!ibb->enforce_relocs)
> -		obj->alignment = alignment;
> -

OK so you are saying that the assignment in intel_bb_add_object() is
already sufficient.

Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>

>	if (igt_list_empty(&buf->link)) {
>		igt_list_add_tail(&buf->link, &ibb->intel_bufs);
>		buf->ibb = ibb;
> --
> 2.26.0
>

  parent reply	other threads:[~2021-09-27 16:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-27 11:21 [igt-dev] [PATCH i-g-t] lib/intel_batchbuffer: Remove duplicated assignment Zbigniew Kempczyński
2021-09-27 12:11 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2021-09-27 13:41 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/intel_batchbuffer: Remove duplicated assignment (rev2) Patchwork
2021-09-27 16:00 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-09-28 13:09   ` Zbigniew Kempczyński
2021-09-27 16:09 ` Dixit, Ashutosh [this message]
2021-09-28 15:04 ` [igt-dev] ✓ Fi.CI.IGT: success " 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=87ilymvw2z.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=petri.latvala@intel.com \
    --cc=zbigniew.kempczynski@intel.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