diff options
author | Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> | 2020-11-12 08:29:54 +0100 |
---|---|---|
committer | Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> | 2021-04-13 15:44:38 +0200 |
commit | 62980f81b58ae61135cda16859c82a9ee31e0262 (patch) | |
tree | 83855a684d90973ecd82c258c60122735bd5f2d3 /tests/i915/api_intel_bb.c | |
parent | 3a91e22d51061b8c36548b8d89100fdb2a7ba17f (diff) |
tests/api_intel_bb: Use allocator in delta-check test
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@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tests/i915/api_intel_bb.c')
-rw-r--r-- | tests/i915/api_intel_bb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/i915/api_intel_bb.c b/tests/i915/api_intel_bb.c index 9c62f71e..ccb78d92 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); |