[PATCH v3 i-g-t 0/1] Introduce intel_bb_create_with_context_in_region
Dominik Karol Piątkowski
dominik.karol.piatkowski at intel.com
Wed Sep 4 08:42:48 UTC 2024
This patch extends __intel_bb_create to take memory region as argument,
making it possible to create batchbuffer in given memory region.
Existing helper functions preserve original behavior.
To make use of this extension, intel_bb_create_with_context_in_region
is introduced, that creates bb with given context in given memory region.
v2:
- Support both i915 and xe in intel_bb_create_with_context_in_region
- Extend intel_bb_create_full to use region argument
v3:
- Introduce is_i915 variable to avoid calling is_i915_device() twice
- Squash "Fix igt_require in intel_bb_create_no_relocs"
gem_uses_full_ppgtt() calls gem_gtt_type(), that expects i915 drm
file descriptor. Wrap the igt_require in is_i915_device() check
to fix the issue.
Signed-off-by: Dominik Karol Piątkowski <dominik.karol.piatkowski at intel.com>
Dominik Karol Piątkowski (1):
lib/intel_batchbuffer: Introduce
intel_bb_create_with_context_in_region
lib/intel_batchbuffer.c | 74 +++++++++++++++++++++++++++++++----------
lib/intel_batchbuffer.h | 5 ++-
tests/intel/xe_pat.c | 4 +--
3 files changed, 63 insertions(+), 20 deletions(-)
--
2.34.1
More information about the igt-dev
mailing list