[igt-dev] [PATCH i-g-t v27 24/36] tests/api_intel_bb: Use allocator in delta-check test
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Thu Mar 18 11:23:55 UTC 2021
We want to use address returned from emit_reloc() but do not call
kernel relocation path. Change intel-bb to use allocator to fully
control addresses passed in execbuf.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
---
tests/i915/api_intel_bb.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/i915/api_intel_bb.c b/tests/i915/api_intel_bb.c
index 0c73ee21c..26e982057 100644
--- a/tests/i915/api_intel_bb.c
+++ b/tests/i915/api_intel_bb.c
@@ -1126,7 +1126,8 @@ static void delta_check(struct buf_ops *bops)
uint64_t offset;
bool supports_48bit;
- ibb = intel_bb_create(i915, PAGE_SIZE);
+ ibb = intel_bb_create_with_allocator(i915, 0, PAGE_SIZE,
+ INTEL_ALLOCATOR_SIMPLE);
supports_48bit = ibb->supports_48b_address;
if (!supports_48bit)
intel_bb_destroy(ibb);
--
2.26.0
More information about the igt-dev
mailing list