summaryrefslogtreecommitdiff
path: root/benchmarks/intel_upload_blit_large_map.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 /benchmarks/intel_upload_blit_large_map.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 'benchmarks/intel_upload_blit_large_map.c')
-rw-r--r--benchmarks/intel_upload_blit_large_map.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmarks/intel_upload_blit_large_map.c b/benchmarks/intel_upload_blit_large_map.c
index 8a508392..0ca9e9de 100644
--- a/benchmarks/intel_upload_blit_large_map.c
+++ b/benchmarks/intel_upload_blit_large_map.c
@@ -61,6 +61,7 @@
#include "drmtest.h"
#include "intel_bufmgr.h"
#include "intel_batchbuffer.h"
+#include "intel_gpu_tools.h"
#define OBJECT_WIDTH 1280
#define OBJECT_HEIGHT 720
@@ -131,7 +132,7 @@ int main(int argc, char **argv)
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));
dst_bo = drm_intel_bo_alloc(bufmgr, "dst", object_size, 4096);