summaryrefslogtreecommitdiff
path: root/tests/gem_tiled_fence_blits.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-13 03:35:02 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-13 18:07:22 +0100
commiteaccd444f774ff88f9cfc24fb0a5e5b20f71d749 (patch)
treee31fe06cde23fdec8b31b043d1d615b572a9a31c /tests/gem_tiled_fence_blits.c
parent32d41cc7a7fc357758a60f019341805ae1ee418d (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_tiled_fence_blits.c')
-rw-r--r--tests/gem_tiled_fence_blits.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_tiled_fence_blits.c b/tests/gem_tiled_fence_blits.c
index c72d25f9..b33be58c 100644
--- a/tests/gem_tiled_fence_blits.c
+++ b/tests/gem_tiled_fence_blits.c
@@ -136,7 +136,7 @@ igt_simple_main
for (i = 0; i < count; i++) {
int src = count - i - 1;
- intel_copy_bo(batch, bo[i], bo[src], width, height);
+ intel_copy_bo(batch, bo[i], bo[src], width*height*4);
bo_start_val[i] = bo_start_val[src];
}
@@ -147,7 +147,7 @@ igt_simple_main
if (src == dst)
continue;
- intel_copy_bo(batch, bo[dst], bo[src], width, height);
+ intel_copy_bo(batch, bo[dst], bo[src], width*height*4);
bo_start_val[dst] = bo_start_val[src];
/*