mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 06:13:04 +00:00
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>
This commit is contained in:
@@ -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];
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user