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_copy_redux.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_copy_redux.c')
-rw-r--r-- | tests/i915/gem_render_copy_redux.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/i915/gem_render_copy_redux.c b/tests/i915/gem_render_copy_redux.c index 3f9f926c..8e633567 100644 --- a/tests/i915/gem_render_copy_redux.c +++ b/tests/i915/gem_render_copy_redux.c @@ -134,7 +134,7 @@ static void copy(data_t *data) scratch_buf_check(data, &src, WIDTH / 2, HEIGHT / 2, SRC_COLOR); scratch_buf_check(data, &dst, WIDTH / 2, HEIGHT / 2, DST_COLOR); - data->render_copy(data->ibb, 0, + data->render_copy(data->ibb, &src, 0, 0, WIDTH, HEIGHT, &dst, WIDTH / 2, HEIGHT / 2); @@ -158,14 +158,14 @@ static void copy_flink(data_t *data) scratch_buf_init(data, &src, WIDTH, HEIGHT, STRIDE, 0); scratch_buf_init(data, &dst, WIDTH, HEIGHT, STRIDE, DST_COLOR); - data->render_copy(data->ibb, 0, + data->render_copy(data->ibb, &src, 0, 0, WIDTH, HEIGHT, &dst, WIDTH, HEIGHT); scratch_buf_init(&local, &local_src, WIDTH, HEIGHT, STRIDE, 0); scratch_buf_init(&local, &local_dst, WIDTH, HEIGHT, STRIDE, SRC_COLOR); - local.render_copy(local.ibb, 0, + local.render_copy(local.ibb, &local_src, 0, 0, WIDTH, HEIGHT, &local_dst, WIDTH, HEIGHT); @@ -173,7 +173,7 @@ static void copy_flink(data_t *data) flink = local_dst; flink.handle = gem_open(data->fd, name); - data->render_copy(data->ibb, 0, + data->render_copy(data->ibb, &flink, 0, 0, WIDTH, HEIGHT, &dst, WIDTH / 2, HEIGHT / 2); |