From: Karolina Drobnik <karolina.drobnik@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 0/3] Add support for intel_ctx_t in intel_bb
Date: Fri, 21 Oct 2022 10:54:40 +0200 [thread overview]
Message-ID: <cover.1666337964.git.karolina.drobnik@intel.com> (raw)
Currently, intel_bb assumes that context has a fixed set of engines, which
might not be the case for contexts passed from the userspace. They may use
a custom engines layout, so the legacy flags like I915_EXEC_BLT wouldn't
match the actual engine indices.
To address this issue, the series adds an additional field to intel_bb,
intel_ctx_cfg_t (intel_ctx_t configuration), that describes the engine
instances, together with an engine index lookup function, find_engine().
The function added in the second patch is used by intel_bb_flush_render()
and intel_bb_flush_blit() helpers.
The last patch in the series adds a test where we define a context with
the blitter engine at index 0 (1 in the legacy mode) to verify that
(1) intel_bb can indeed handle external contexts, and (2) intel_bb_exec gets
the correct engine id in intel_bb_flush_blit().
Karolina Drobnik (3):
lib/intel_batchbuffer: Extend __intel_bb_create to handle context
config
lib/intel_batchbuffer: Add support for custom engine layouts
tests/api_intel_bb: Add misplaced_blitter test
lib/igt_draw.c | 2 +-
lib/intel_batchbuffer.c | 86 +++++++++++++++++++++++++--------
lib/intel_batchbuffer.h | 6 ++-
lib/media_fill.c | 2 +-
tests/i915/api_intel_bb.c | 36 +++++++++++++-
tests/i915/gem_ppgtt.c | 2 +-
tests/i915/gem_pxp.c | 16 +++---
tests/i915/kms_fence_pin_leak.c | 2 +-
tests/i915/perf.c | 18 +++----
9 files changed, 126 insertions(+), 44 deletions(-)
--
2.25.1
next reply other threads:[~2022-10-21 8:54 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-21 8:54 Karolina Drobnik [this message]
2022-10-21 8:54 ` [igt-dev] [PATCH i-g-t 1/3] lib/intel_batchbuffer: Extend __intel_bb_create to handle context config Karolina Drobnik
2022-10-24 6:37 ` Zbigniew Kempczyński
2022-10-24 12:55 ` Karolina Drobnik
2022-10-21 8:54 ` [igt-dev] [PATCH i-g-t 2/3] lib/intel_batchbuffer: Add support for custom engine layouts Karolina Drobnik
2022-10-24 6:40 ` Zbigniew Kempczyński
2022-10-24 13:16 ` Karolina Drobnik
2022-10-24 19:26 ` Zbigniew Kempczyński
2022-10-25 6:10 ` Karolina Drobnik
2022-10-21 8:54 ` [igt-dev] [PATCH i-g-t 3/3] tests/api_intel_bb: Add misplaced_blitter test Karolina Drobnik
2022-10-24 6:46 ` Zbigniew Kempczyński
2022-10-24 13:19 ` Karolina Drobnik
2022-10-21 10:42 ` [igt-dev] ✓ Fi.CI.BAT: success for Add support for intel_ctx_t in intel_bb Patchwork
2022-10-21 16:18 ` [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=cover.1666337964.git.karolina.drobnik@intel.com \
--to=karolina.drobnik@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.