From d4d769a4329f3f22842f8270fca46047bd4892ce Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 26 Oct 2010 10:59:18 +0100 Subject: 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 --- benchmarks/intel_upload_blit_small.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'benchmarks/intel_upload_blit_small.c') diff --git a/benchmarks/intel_upload_blit_small.c b/benchmarks/intel_upload_blit_small.c index 719a8a1c..8ad25ad1 100644 --- a/benchmarks/intel_upload_blit_small.c +++ b/benchmarks/intel_upload_blit_small.c @@ -54,6 +54,7 @@ #include "drmtest.h" #include "intel_bufmgr.h" #include "intel_batchbuffer.h" +#include "intel_gpu_tools.h" /* Happens to be 128k, the size of the VBOs used by i965's Mesa driver. */ #define OBJECT_WIDTH 256 @@ -141,7 +142,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); -- cgit v1.2.3