From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [PATCH i-g-t 2/3] lib/intel_batchbuffer: Select xe2 rendercopy for LunarLake
Date: Mon, 8 Jan 2024 12:30:11 +0100 [thread overview]
Message-ID: <20240108113012.382557-3-zbigniew.kempczynski@intel.com> (raw)
In-Reply-To: <20240108113012.382557-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>
---
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..d374645d99 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 = genxe2_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
next prev parent reply other threads:[~2024-01-08 11:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-08 11:30 [PATCH i-g-t 0/3] Add Xe2 render-copy implementation Zbigniew Kempczyński
2024-01-08 11:30 ` [PATCH i-g-t 1/3] lib/rendercopy: Add render-copy xe2 implementation Zbigniew Kempczyński
2024-01-08 15:59 ` Grzegorzek, Dominik
2024-01-09 13:16 ` Zbigniew Kempczyński
2024-01-08 11:30 ` Zbigniew Kempczyński [this message]
2024-01-10 8:46 ` [PATCH i-g-t 2/3] lib/intel_batchbuffer: Select xe2 rendercopy for LunarLake Grzegorzek, Dominik
2024-01-10 11:25 ` Matthew Auld
2024-01-10 12:02 ` Zbigniew Kempczyński
2024-01-08 11:30 ` [PATCH i-g-t 3/3] tests/xe_intel_bb: Use Tile4 instead Y on render subtest Zbigniew Kempczyński
2024-01-08 12:27 ` Grzegorzek, Dominik
2024-01-08 12:09 ` ✗ GitLab.Pipeline: warning for Add Xe2 render-copy implementation Patchwork
2024-01-08 12:45 ` ✓ Fi.CI.BAT: success " Patchwork
2024-01-08 12:46 ` ✓ CI.xeBAT: " Patchwork
2024-01-08 14:00 ` ✗ 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=20240108113012.382557-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