[PATCH i-g-t v7 27/33] tests/api_intel_bb: Fix, to be squashed later

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Mon Oct 19 11:31:37 UTC 2020


Removing some testing calls residues + run noreloc test on full
ppgtt only.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
---
 tests/i915/api_intel_bb.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/tests/i915/api_intel_bb.c b/tests/i915/api_intel_bb.c
index b51685cb..8a84ec0d 100644
--- a/tests/i915/api_intel_bb.c
+++ b/tests/i915/api_intel_bb.c
@@ -334,12 +334,6 @@ static void reset_flags(struct buf_ops *bops)
 	/* Check mid keep 48bit address flag */
 	igt_assert((obj->flags & EXEC_OBJECT_SUPPORTS_48B_ADDRESS) == mid_48bit);
 
-
-	intel_allocator_is_allocated(ibb->allocator_handle,
-				     src->handle,
-				     intel_buf_bo_size(src),
-				     src->addr.offset);
-
 	intel_bb_emit_blt_copy(ibb,
 			       mid, 0, 0, mid->surface[0].stride,
 			       dst, 0, 0, dst->surface[0].stride,
@@ -664,6 +658,9 @@ static void blit(struct buf_ops *bops,
 	bool purge_cache = cache_op == PURGE_CACHE ? true : false;
 	bool do_relocs = reloc_obj == RELOC ? true : false;
 
+	if (!do_relocs)
+		igt_require(gem_uses_full_ppgtt(i915));
+
 	src = create_buf(bops, WIDTH, HEIGHT, COLOR_CC);
 	dst = create_buf(bops, WIDTH, HEIGHT, COLOR_00);
 
-- 
2.26.0



More information about the Intel-gfx-trybot mailing list