diff options
author | Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> | 2020-10-23 09:30:16 +0200 |
---|---|---|
committer | Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> | 2021-04-13 15:44:38 +0200 |
commit | a3e6b4f832d1e6671594a0e1b3c66c5659a943d9 (patch) | |
tree | f88cb0af634f38e8addeccdd9041a0da0efaf9c3 /tests/i915/api_intel_bb.c | |
parent | 2d403fc0290b88ebb87e2b4f52b993872537a138 (diff) |
lib/intel_batchbuffer: Integrate intel_bb with allocator
Refactor the intel-bb interface to introduce the IGT allocator for
specifying the position of objects within the ppGTT.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Signed-off-by: Dominik Grzegorzek <dominik.grzegorzek@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 | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/i915/api_intel_bb.c b/tests/i915/api_intel_bb.c index 1c960891..7a50189d 100644 --- a/tests/i915/api_intel_bb.c +++ b/tests/i915/api_intel_bb.c @@ -810,11 +810,11 @@ static void offset_control(struct buf_ops *bops) dst2 = create_buf(bops, WIDTH, HEIGHT, COLOR_77); intel_bb_add_object(ibb, src->handle, intel_buf_bo_size(src), - src->addr.offset, false); + src->addr.offset, 0, false); intel_bb_add_object(ibb, dst1->handle, intel_buf_bo_size(dst1), - dst1->addr.offset, true); + dst1->addr.offset, 0, true); intel_bb_add_object(ibb, dst2->handle, intel_buf_bo_size(dst2), - dst2->addr.offset, true); + dst2->addr.offset, 0, true); intel_bb_out(ibb, MI_BATCH_BUFFER_END); intel_bb_ptr_align(ibb, 8); @@ -838,13 +838,13 @@ static void offset_control(struct buf_ops *bops) dst3 = create_buf(bops, WIDTH, HEIGHT, COLOR_33); intel_bb_add_object(ibb, dst3->handle, intel_buf_bo_size(dst3), - dst3->addr.offset, true); + dst3->addr.offset, 0, true); intel_bb_add_object(ibb, src->handle, intel_buf_bo_size(src), - src->addr.offset, false); + src->addr.offset, 0, false); intel_bb_add_object(ibb, dst1->handle, intel_buf_bo_size(dst1), - dst1->addr.offset, true); + dst1->addr.offset, 0, true); intel_bb_add_object(ibb, dst2->handle, intel_buf_bo_size(dst2), - dst2->addr.offset, true); + dst2->addr.offset, 0, true); intel_bb_out(ibb, MI_BATCH_BUFFER_END); intel_bb_ptr_align(ibb, 8); @@ -901,7 +901,7 @@ static void delta_check(struct buf_ops *bops) buf = create_buf(bops, 0x1000, 0x10, COLOR_CC); buf->addr.offset = 0xfffff000; intel_bb_add_object(ibb, buf->handle, intel_buf_bo_size(buf), - buf->addr.offset, false); + buf->addr.offset, 0, false); intel_bb_out(ibb, MI_STORE_DWORD_IMM); intel_bb_emit_reloc(ibb, buf->handle, |