Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Grzegorzek, Dominik" <dominik.grzegorzek@intel.com>
To: "Kempczynski, Zbigniew" <zbigniew.kempczynski@intel.com>,
	"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Cc: "juhapekka.heikkila@gmail.com" <juhapekka.heikkila@gmail.com>,
	"Hogander,  Jouni" <jouni.hogander@intel.com>
Subject: Re: [PATCH i-g-t v2] lib/rendercopy_gen9: Fix Xe2 missing pixels on non-modulo-16 surfaces
Date: Mon, 5 Feb 2024 10:57:16 +0000	[thread overview]
Message-ID: <387a31cddc81f8ab84c91e85116267afe57dc652.camel@intel.com> (raw)
In-Reply-To: <20240201171840.412905-1-zbigniew.kempczynski@intel.com>

On Thu, 2024-02-01 at 18:18 +0100, Zbigniew Kempczyński wrote:
> Missing setting Kernel0Enable bit results in lack of rasterization
> of right and bottom part of the surface. Fix this as kms tests depends
> on that.
> 
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> Tested-by: Jouni Högander <jouni.hogander@intel.com>
> ---
> v2: set Kernel0Enable bit only on Xe2+ keeping older platforms intact
> 
> 
> 
> ---
>  lib/rendercopy_gen9.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/lib/rendercopy_gen9.c b/lib/rendercopy_gen9.c
> index bdfd9be087..a4220d78da 100644
> --- a/lib/rendercopy_gen9.c
> +++ b/lib/rendercopy_gen9.c
> @@ -863,7 +863,10 @@ gen8_emit_ps(struct intel_bb *ibb, uint32_t kernel, bool fast_clear) {
>  	intel_bb_out(ibb, 0);
>  
>  	intel_bb_out(ibb, GEN7_3DSTATE_PS | (12-2));
> -	intel_bb_out(ibb, kernel);
> +	if (AT_LEAST_GEN(intel_get_drm_devid(ibb->fd), 20))
> +		intel_bb_out(ibb, kernel | 1);
> +	else
> +		intel_bb_out(ibb, kernel);
Agreed, this Kernel0Enable field does not even exist on platforms before Xe2.
The change is definetly needed and:
Reviewed-by: Dominik Grzegorzek <dominik.grzegorzek@intel.com>

Regards,
Dominik
>  	intel_bb_out(ibb, 0); /* kernel hi */
>  
>  	if (fast_clear)


      parent reply	other threads:[~2024-02-05 10:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-01 17:18 [PATCH i-g-t v2] lib/rendercopy_gen9: Fix Xe2 missing pixels on non-modulo-16 surfaces Zbigniew Kempczyński
2024-02-01 19:03 ` ✓ Fi.CI.BAT: success for lib/rendercopy_gen9: Fix Xe2 missing pixels on non-modulo-16 surfaces (rev2) Patchwork
2024-02-01 19:05 ` ✓ CI.xeBAT: " Patchwork
2024-02-01 20:58 ` ✓ Fi.CI.IGT: " Patchwork
2024-02-05 10:57 ` Grzegorzek, Dominik [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=387a31cddc81f8ab84c91e85116267afe57dc652.camel@intel.com \
    --to=dominik.grzegorzek@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jouni.hogander@intel.com \
    --cc=juhapekka.heikkila@gmail.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