Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>,
	"Dominik Grzegorzek" <dominik.grzegorzek@intel.com>
Subject: [PATCH i-g-t 2/2] lib/intel_batchbuffer: Be ready to use xe2 render-copy on newer hardware
Date: Tue, 23 Apr 2024 09:04:49 +0200	[thread overview]
Message-ID: <20240423070449.150518-3-zbigniew.kempczynski@intel.com> (raw)
In-Reply-To: <20240423070449.150518-1-zbigniew.kempczynski@intel.com>

Newer hardware seems to have same 3D functionality so lets prepare
batchbuffer to reuse Xe2 pipeline and shader for render-copy.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Dominik Grzegorzek <dominik.grzegorzek@intel.com>
---
 lib/intel_batchbuffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
index c8c6e9a193..824e928319 100644
--- a/lib/intel_batchbuffer.c
+++ b/lib/intel_batchbuffer.c
@@ -660,7 +660,7 @@ igt_render_copyfunc_t igt_get_render_copyfunc(int devid)
 		copy = mtl_render_copyfunc;
 	else if (IS_DG2(devid))
 		copy = gen12p71_render_copyfunc;
-	else if (IS_GEN(devid, 20))
+	else if (AT_LEAST_GEN(devid, 20))
 		copy = xe2_render_copyfunc;
 	else if (IS_GEN12(devid))
 		copy = gen12_render_copyfunc;
-- 
2.34.1


  parent reply	other threads:[~2024-04-23  7:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-23  7:04 [PATCH i-g-t 0/2] Use xe2 render-copy on newer hardware Zbigniew Kempczyński
2024-04-23  7:04 ` [PATCH i-g-t 1/2] lib/rendercopy: Fix horizontal stride Zbigniew Kempczyński
2024-04-23  8:29   ` Grzegorzek, Dominik
2024-04-23  7:04 ` Zbigniew Kempczyński [this message]
2024-04-23  8:30   ` [PATCH i-g-t 2/2] lib/intel_batchbuffer: Be ready to use xe2 render-copy on newer hardware Grzegorzek, Dominik
2024-04-23  9:29 ` ✓ Fi.CI.BAT: success for Use " Patchwork
2024-04-23  9:58 ` ✓ CI.xeBAT: " Patchwork
2024-04-23 15:20 ` ✗ CI.xeFULL: failure " Patchwork
2024-04-24  6:08   ` Zbigniew Kempczyński
2024-04-24  8:07 ` ✓ 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=20240423070449.150518-3-zbigniew.kempczynski@intel.com \
    --to=zbigniew.kempczynski@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox