diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-13 03:35:02 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-13 18:07:22 +0100 |
commit | eaccd444f774ff88f9cfc24fb0a5e5b20f71d749 (patch) | |
tree | e31fe06cde23fdec8b31b043d1d615b572a9a31c /tests/gem_concurrent_blit.c | |
parent | 32d41cc7a7fc357758a60f019341805ae1ee418d (diff) |
lib: switch intel_copy_bo to directly take a size
Instead of a width/height combination. Since I've been lazy with the
math this now only accepts page-aligned copy operations, but that's
all we need really.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_concurrent_blit.c')
-rw-r--r-- | tests/gem_concurrent_blit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/gem_concurrent_blit.c b/tests/gem_concurrent_blit.c index 09616e57..254bc4c2 100644 --- a/tests/gem_concurrent_blit.c +++ b/tests/gem_concurrent_blit.c @@ -204,7 +204,7 @@ static void do_overwrite_source(struct access_mode *mode, mode->set_bo(dst[i], i, width, height); } for (i = 0; i < num_buffers; i++) - intel_copy_bo(batch, dst[i], src[i], width, height); + intel_copy_bo(batch, dst[i], src[i], width*height*4); for (i = num_buffers; i--; ) mode->set_bo(src[i], 0xdeadbeef, width, height); for (i = 0; i < num_buffers; i++) @@ -221,7 +221,7 @@ static void do_early_read(struct access_mode *mode, for (i = num_buffers; i--; ) mode->set_bo(src[i], 0xdeadbeef, width, height); for (i = 0; i < num_buffers; i++) - intel_copy_bo(batch, dst[i], src[i], width, height); + intel_copy_bo(batch, dst[i], src[i], width*height*4); for (i = num_buffers; i--; ) mode->cmp_bo(dst[i], 0xdeadbeef, width, height); } @@ -236,9 +236,9 @@ static void do_gpu_read_after_write(struct access_mode *mode, for (i = num_buffers; i--; ) mode->set_bo(src[i], 0xabcdabcd, width, height); for (i = 0; i < num_buffers; i++) - intel_copy_bo(batch, dst[i], src[i], width, height); + intel_copy_bo(batch, dst[i], src[i], width*height*4); for (i = num_buffers; i--; ) - intel_copy_bo(batch, dummy, dst[i], width, height); + intel_copy_bo(batch, dummy, dst[i], width*height*4); for (i = num_buffers; i--; ) mode->cmp_bo(dst[i], 0xabcdabcd, width, height); } |