All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Manszewski, Christoph" <christoph.manszewski@intel.com>
To: Dominik Grzegorzek <dominik.grzegorzek@intel.com>,
	igt-dev@lists.freedesktop.org
Subject: Re: [PATCH i-g-t] lib/gpu_cmds: be ready to use xe2 gpgpu fill on newer platforms
Date: Thu, 25 Apr 2024 14:28:43 +0200	[thread overview]
Message-ID: <c81b7354-e123-4c15-99de-0c7627e5bef7@intel.com> (raw)
In-Reply-To: <20240425121337.433948-1-dominik.grzegorzek@intel.com>

Hi Dominik,

On 25.04.2024 14:13, Dominik Grzegorzek wrote:
> Doing xe2 gpgpu pipeline implementation we mostly taken into account
> possibility of reusing the implementation for future platforms.
> But not everywhere. Make it common.
> 
> Signed-off-by: Dominik Grzegorzek <dominik.grzegorzek@intel.com>
> ---
>   lib/gpu_cmds.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/lib/gpu_cmds.c b/lib/gpu_cmds.c
> index f37e725e7..40522d58e 100644
> --- a/lib/gpu_cmds.c
> +++ b/lib/gpu_cmds.c
> @@ -1030,7 +1030,7 @@ xehp_emit_state_base_address(struct intel_bb *ibb)
>   	intel_bb_out(ibb, 0);
>   
>   	/* stateless data port */
> -	tmp = intel_graphics_ver(ibb->devid) == IP_VER(20, 0) ? 0 : BASE_ADDRESS_MODIFY;
> +	tmp = intel_graphics_ver(ibb->devid) >= IP_VER(20, 0) ? 0 : BASE_ADDRESS_MODIFY;
>   	intel_bb_out(ibb, 0 | tmp);                  //dw3
>   
>   	/* surface */
> @@ -1056,7 +1056,7 @@ xehp_emit_state_base_address(struct intel_bb *ibb)
>   	/* dynamic state buffer size */
>   	intel_bb_out(ibb, 1 << 12 | 1);                             //dw13
>   	/* indirect object buffer size */
> -	if (intel_graphics_ver(ibb->devid) == IP_VER(20, 0))	    //dw14
> +	if (intel_graphics_ver(ibb->devid) >= IP_VER(20, 0))	    //dw14

nice catch, should be like this from the start.

Acked-by: Christoph Manszewski <christoph.manszewski@intel.com>

Christoph

>   		intel_bb_out(ibb, 0);
>   	else
>   		intel_bb_out(ibb, 0xfffff000 | 1);

  reply	other threads:[~2024-04-25 12:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-25 12:13 [PATCH i-g-t] lib/gpu_cmds: be ready to use xe2 gpgpu fill on newer platforms Dominik Grzegorzek
2024-04-25 12:28 ` Manszewski, Christoph [this message]
2024-04-25 13:51 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-04-25 13:55 ` ✓ CI.xeBAT: " Patchwork
2024-04-25 18:30 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-04-26  4:00 ` ✗ CI.xeFULL: " Patchwork
2024-05-06  7:26 ` [PATCH i-g-t] " Zbigniew Kempczyński

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=c81b7354-e123-4c15-99de-0c7627e5bef7@intel.com \
    --to=christoph.manszewski@intel.com \
    --cc=dominik.grzegorzek@intel.com \
    --cc=igt-dev@lists.freedesktop.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.