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
Subject: [PATCH i-g-t v2 2/3] lib/intel_batchbuffer: Select xe2 rendercopy for LunarLake
Date: Tue,  9 Jan 2024 14:21:04 +0100	[thread overview]
Message-ID: <20240109132105.10958-3-zbigniew.kempczynski@intel.com> (raw)
In-Reply-To: <20240109132105.10958-1-zbigniew.kempczynski@intel.com>

Along with rendercopy xe2 pipeline / shader selection for LunarLake
reorganize if/else conditionals to handle specific selection first.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Cc: Dominik Grzegorzek <dominik.grzegorzek@intel.com>
---
 lib/intel_batchbuffer.c | 38 ++++++++++++++++++++------------------
 1 file changed, 20 insertions(+), 18 deletions(-)

diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
index ccab55cec7..5cd5dd9133 100644
--- a/lib/intel_batchbuffer.c
+++ b/lib/intel_batchbuffer.c
@@ -656,28 +656,30 @@ igt_render_copyfunc_t igt_get_render_copyfunc(int devid)
 {
 	igt_render_copyfunc_t copy = NULL;
 
-	if (IS_GEN2(devid))
-		copy = gen2_render_copyfunc;
-	else if (IS_GEN3(devid))
-		copy = gen3_render_copyfunc;
-	else if (IS_GEN4(devid) || IS_GEN5(devid))
-		copy = gen4_render_copyfunc;
-	else if (IS_GEN6(devid))
-		copy = gen6_render_copyfunc;
-	else if (IS_GEN7(devid))
-		copy = gen7_render_copyfunc;
-	else if (IS_GEN8(devid))
-		copy = gen8_render_copyfunc;
-	else if (IS_GEN9(devid) || IS_GEN10(devid))
-		copy = gen9_render_copyfunc;
-	else if (IS_GEN11(devid))
-		copy = gen11_render_copyfunc;
+	if (IS_METEORLAKE(devid))
+		copy = mtl_render_copyfunc;
+	else if (IS_LUNARLAKE(devid))
+		copy = xe2_render_copyfunc;
 	else if (HAS_FLATCCS(devid))
 		copy = gen12p71_render_copyfunc;
-	else if (IS_METEORLAKE(devid))
-		copy = mtl_render_copyfunc;
 	else if (IS_GEN12(devid))
 		copy = gen12_render_copyfunc;
+	else if (IS_GEN11(devid))
+		copy = gen11_render_copyfunc;
+	else if (IS_GEN9(devid) || IS_GEN10(devid))
+		copy = gen9_render_copyfunc;
+	else if (IS_GEN8(devid))
+		copy = gen8_render_copyfunc;
+	else if (IS_GEN7(devid))
+		copy = gen7_render_copyfunc;
+	else if (IS_GEN6(devid))
+		copy = gen6_render_copyfunc;
+	else if (IS_GEN4(devid) || IS_GEN5(devid))
+		copy = gen4_render_copyfunc;
+	else if (IS_GEN3(devid))
+		copy = gen3_render_copyfunc;
+	else if (IS_GEN2(devid))
+		copy = gen2_render_copyfunc;
 
 	return copy;
 }
-- 
2.34.1

  parent reply	other threads:[~2024-01-09 13:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-09 13:21 [PATCH i-g-t v2 0/3] Add Xe2 render-copy implementation Zbigniew Kempczyński
2024-01-09 13:21 ` [PATCH i-g-t v2 1/3] lib/rendercopy: Add render-copy xe2 implementation Zbigniew Kempczyński
2024-01-10  8:43   ` Grzegorzek, Dominik
2024-01-10 12:11     ` Zbigniew Kempczyński
2024-01-09 13:21 ` Zbigniew Kempczyński [this message]
2024-01-09 13:21 ` [PATCH i-g-t v2 3/3] tests/xe_intel_bb: Use Tile4 instead Y on render subtest Zbigniew Kempczyński
2024-01-09 14:52 ` ✗ GitLab.Pipeline: warning for Add Xe2 render-copy implementation (rev2) Patchwork
2024-01-09 15:15 ` ✓ Fi.CI.BAT: success " Patchwork
2024-01-09 16:34 ` ✓ CI.xeBAT: " Patchwork
2024-01-09 17:11 ` ✗ Fi.CI.IGT: failure " 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=20240109132105.10958-3-zbigniew.kempczynski@intel.com \
    --to=zbigniew.kempczynski@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