diff options
author | Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> | 2020-09-11 10:07:26 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-09-16 14:51:23 +0100 |
commit | 1ed57b03fea39595095c0ea05368dd8717e91ab7 (patch) | |
tree | bb4d6663e8464756cfa0365e51c8b82646ef114c | |
parent | 92139c71e87cdbd8cd3ac46b24333c1dac93f061 (diff) |
tests/gem_caching|partial: adopt to batch flush function cleanup
intel_bb API has been cleaned so flush generates also BBE and executes
the batch. Remove redundant code to use flush properly.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Dominik Grzegorzek <dominik.grzegorzek@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | tests/i915/gem_caching.c | 5 | ||||
-rw-r--r-- | tests/i915/gem_partial_pwrite_pread.c | 3 |
2 files changed, 0 insertions, 8 deletions
diff --git a/tests/i915/gem_caching.c b/tests/i915/gem_caching.c index 894c4b12..c178c98e 100644 --- a/tests/i915/gem_caching.c +++ b/tests/i915/gem_caching.c @@ -99,11 +99,6 @@ copy_bo(struct intel_bb *ibb, struct intel_buf *src, struct intel_buf *dst) intel_bb_emit_reloc_fenced(ibb, src->handle, I915_GEM_DOMAIN_RENDER, 0, 0, 0x0); - - /* Mark the end of the buffer. */ - intel_bb_out(ibb, MI_BATCH_BUFFER_END); - intel_bb_ptr_align(ibb, 8); - intel_bb_flush_blit(ibb); intel_bb_sync(ibb); } diff --git a/tests/i915/gem_partial_pwrite_pread.c b/tests/i915/gem_partial_pwrite_pread.c index b4bae9b6..b1028472 100644 --- a/tests/i915/gem_partial_pwrite_pread.c +++ b/tests/i915/gem_partial_pwrite_pread.c @@ -101,9 +101,6 @@ static void copy_bo(struct intel_buf *src, struct intel_buf *dst) I915_GEM_DOMAIN_RENDER, 0, 0, 0x0); - intel_bb_out(ibb, MI_BATCH_BUFFER_END); - intel_bb_ptr_align(ibb, 8); - intel_bb_flush_blit(ibb); intel_bb_sync(ibb); } |