From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Subject: [igt-dev] [PATCH i-g-t v2 3/5] lib/intel_batchbuffer: Add new media fillfunc v2
Date: Thu, 21 May 2020 10:39:24 +0200 [thread overview]
Message-ID: <20200521083926.20428-4-zbigniew.kempczynski@intel.com> (raw)
In-Reply-To: <20200521083926.20428-1-zbigniew.kempczynski@intel.com>
Media fill function selection for "_v2" version.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
---
lib/intel_batchbuffer.c | 26 ++++++++++++++++++++++++++
lib/intel_batchbuffer.h | 1 +
2 files changed, 27 insertions(+)
diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
index b7e86854..02c293be 100644
--- a/lib/intel_batchbuffer.c
+++ b/lib/intel_batchbuffer.c
@@ -1118,6 +1118,32 @@ igt_fillfunc_t igt_get_media_fillfunc(int devid)
return fill;
}
+
+/**
+ * igt_get_media_fillfunc_v2:
+ * @devid: pci device id
+ *
+ * Returns:
+ *
+ * The platform-specific media fill function pointer for the device specified
+ * with @devid. Will return NULL when no media fill function is implemented.
+ */
+igt_fillfunc_v2_t igt_get_media_fillfunc_v2(int devid)
+{
+ igt_fillfunc_v2_t fill = NULL;
+
+ if (IS_GEN12(devid))
+ fill = gen12_media_fillfunc_v2;
+ else if (IS_GEN9(devid) || IS_GEN10(devid) || IS_GEN11(devid))
+ fill = gen9_media_fillfunc_v2;
+ else if (IS_GEN8(devid))
+ fill = gen8_media_fillfunc_v2;
+ else if (IS_GEN7(devid))
+ fill = gen7_media_fillfunc_v2;
+
+ return fill;
+}
+
igt_vme_func_t igt_get_media_vme_func(int devid)
{
igt_vme_func_t fill = NULL;
diff --git a/lib/intel_batchbuffer.h b/lib/intel_batchbuffer.h
index 0d95427c..e7ac58fa 100644
--- a/lib/intel_batchbuffer.h
+++ b/lib/intel_batchbuffer.h
@@ -401,6 +401,7 @@ typedef void (*igt_fillfunc_v2_t)(int i915,
igt_fillfunc_t igt_get_media_fillfunc(int devid);
igt_fillfunc_t igt_get_gpgpu_fillfunc(int devid);
igt_fillfunc_v2_t igt_get_gpgpu_fillfunc_v2(int devid);
+igt_fillfunc_v2_t igt_get_media_fillfunc_v2(int devid);
typedef void (*igt_vme_func_t)(struct intel_batchbuffer *batch,
const struct igt_buf *src,
--
2.26.0
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2020-05-21 8:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-21 8:39 [igt-dev] [PATCH i-g-t v2 0/5] Change media fill to be libdrm-free Zbigniew Kempczyński
2020-05-21 8:39 ` [igt-dev] [PATCH i-g-t v2 1/5] lib/gpu_cmds: Add media pipeline functions based on intel_bb Zbigniew Kempczyński
2020-05-21 8:39 ` [igt-dev] [PATCH i-g-t v2 2/5] lib/media_fill: libdrm-free media pipeline creation Zbigniew Kempczyński
2020-05-21 8:39 ` Zbigniew Kempczyński [this message]
2020-05-21 8:39 ` [igt-dev] [PATCH i-g-t v2 4/5] i915/gem_media_fill: Remove libdrm dependency Zbigniew Kempczyński
2020-05-21 8:39 ` [igt-dev] [PATCH i-g-t v2 5/5] HAX: run media_fill in BAT only Zbigniew Kempczyński
2020-05-21 9:32 ` [igt-dev] ✓ Fi.CI.BAT: success for Change media fill to be libdrm-free (rev2) Patchwork
2020-05-22 1:44 ` [igt-dev] ✓ Fi.CI.IGT: " 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=20200521083926.20428-4-zbigniew.kempczynski@intel.com \
--to=zbigniew.kempczynski@intel.com \
--cc=chris@chris-wilson.co.uk \
--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