From 1a7ef7eb5e99c9a8f4ffbc13cdae399a01a9aa12 Mon Sep 17 00:00:00 2001 From: Zbigniew Kempczyński Date: Wed, 30 Sep 2020 14:09:45 +0200 Subject: lib/intel_batchbuffer: Prepare batch to use in allocator infrastructure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With upcoming of allocator code we need to ensure batch will execute with appropriate context. If mismatch between allocator data and batch could lead to strange or wrong results. All functions which could change context in execbuf called from intel_bb were removed. As an allocator requires size (which was not previously required in intel_bb) adding object to intel_bb is now mandatory. Signed-off-by: Zbigniew Kempczyński Cc: Dominik Grzegorzek Cc: Chris Wilson Reviewed-by: Chris Wilson Signed-off-by: Chris Wilson --- tests/i915/gem_stress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/i915/gem_stress.c') diff --git a/tests/i915/gem_stress.c b/tests/i915/gem_stress.c index 0d513709..3e4d4907 100644 --- a/tests/i915/gem_stress.c +++ b/tests/i915/gem_stress.c @@ -377,7 +377,7 @@ static void render_copyfunc(struct intel_buf *src, unsigned src_x, unsigned src_ */ intel_bb_flush_blit(ibb); - rendercopy(ibb, 0, src, src_x, src_y, + rendercopy(ibb, src, src_x, src_y, options.tile_size, options.tile_size, dst, dst_x, dst_y); } else -- cgit v1.2.3