diff options
author | Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> | 2020-09-30 14:09:45 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-10-01 13:21:29 +0100 |
commit | 1a7ef7eb5e99c9a8f4ffbc13cdae399a01a9aa12 (patch) | |
tree | 6f6d16ad2ac076d3d98373adcc0a93c7daec21de /tests/i915/gem_render_tiled_blits.c | |
parent | 19ae9421a5af7b03a1c9a577c57f2cf8b16a0116 (diff) |
lib/intel_batchbuffer: Prepare batch to use in allocator infrastructure
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 <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>
Diffstat (limited to 'tests/i915/gem_render_tiled_blits.c')
-rw-r--r-- | tests/i915/gem_render_tiled_blits.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/i915/gem_render_tiled_blits.c b/tests/i915/gem_render_tiled_blits.c index 5a92a471..187714d6 100644 --- a/tests/i915/gem_render_tiled_blits.c +++ b/tests/i915/gem_render_tiled_blits.c @@ -66,7 +66,7 @@ check_buf(struct intel_bb *ibb, struct intel_buf *buf, uint32_t val) uint32_t *ptr; int i; - render_copy(ibb, 0, buf, 0, 0, WIDTH, HEIGHT, &linear, 0, 0); + render_copy(ibb, buf, 0, 0, WIDTH, HEIGHT, &linear, 0, 0); if (snoop) { ptr = gem_mmap__cpu_coherent(i915, linear.handle, 0, @@ -148,7 +148,7 @@ static void run_test (int fd, int count) int src = i % count; int dst = (i + 1) % count; - render_copy(ibb, 0, &bufs[src], 0, 0, WIDTH, HEIGHT, + render_copy(ibb, &bufs[src], 0, 0, WIDTH, HEIGHT, &bufs[dst], 0, 0); start_val[dst] = start_val[src]; } @@ -161,7 +161,7 @@ static void run_test (int fd, int count) int src = (i + 1) % count; int dst = i % count; - render_copy(ibb, 0, &bufs[src], 0, 0, WIDTH, HEIGHT, + render_copy(ibb, &bufs[src], 0, 0, WIDTH, HEIGHT, &bufs[dst], 0, 0); start_val[dst] = start_val[src]; } @@ -176,7 +176,7 @@ static void run_test (int fd, int count) if (src == dst) continue; - render_copy(ibb, 0, &bufs[src], 0, 0, WIDTH, HEIGHT, + render_copy(ibb, &bufs[src], 0, 0, WIDTH, HEIGHT, &bufs[dst], 0, 0); start_val[dst] = start_val[src]; } |