summaryrefslogtreecommitdiff
path: root/tests/gem_tiled_blits.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-10-26 10:59:18 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-10-26 11:46:52 +0100
commitd4d769a4329f3f22842f8270fca46047bd4892ce (patch)
tree095bf321488170b5d14943a179cbac644d6f535c /tests/gem_tiled_blits.c
parent8934395d9d3b5910a52785d69a8da4516c4d82a6 (diff)
Prepare for split BLT ring on Sandybridge.
Depends on libdrm 057fab3382c02af54126ce395c43d4e6dce9439a Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31123 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_tiled_blits.c')
-rw-r--r--tests/gem_tiled_blits.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/gem_tiled_blits.c b/tests/gem_tiled_blits.c
index 212b4b7b..b7f5d49c 100644
--- a/tests/gem_tiled_blits.c
+++ b/tests/gem_tiled_blits.c
@@ -60,7 +60,6 @@
static drm_intel_bufmgr *bufmgr;
struct intel_batchbuffer *batch;
static int width = 512, height = 512;
-static uint32_t devid;
static drm_intel_bo *
create_bo(uint32_t start_val)
@@ -86,7 +85,7 @@ create_bo(uint32_t start_val)
}
drm_intel_bo_unmap(linear_bo);
- intel_copy_bo (batch, bo, linear_bo, width, height, devid);
+ intel_copy_bo (batch, bo, linear_bo, width, height);
drm_intel_bo_unreference(linear_bo);
@@ -102,7 +101,7 @@ check_bo(drm_intel_bo *bo, uint32_t start_val)
linear_bo = drm_intel_bo_alloc(bufmgr, "linear dst", 1024 * 1024, 4096);
- intel_copy_bo(batch, linear_bo, bo, width, height, devid);
+ intel_copy_bo(batch, linear_bo, bo, width, height);
drm_intel_bo_map(linear_bo, 0);
linear = linear_bo->virtual;
@@ -131,11 +130,10 @@ int main(int argc, char **argv)
int i;
fd = drm_open_any();
- devid = intel_get_drm_devid(fd);
bufmgr = drm_intel_bufmgr_gem_init(fd, 4096);
drm_intel_bufmgr_gem_enable_reuse(bufmgr);
- batch = intel_batchbuffer_alloc(bufmgr);
+ batch = intel_batchbuffer_alloc(bufmgr, intel_get_drm_devid(fd));
for (i = 0; i < bo_count; i++) {
bo[i] = create_bo(start);
@@ -156,7 +154,7 @@ int main(int argc, char **argv)
if (src == dst)
continue;
- intel_copy_bo(batch, bo[dst], bo[src], width, height, devid);
+ intel_copy_bo(batch, bo[dst], bo[src], width, height);
bo_start_val[dst] = bo_start_val[src];
/*