summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-02-01 13:35:16 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-02-06 10:14:41 +0000
commit0995b563341c9e34f4b6314c67d4671a516fb1b0 (patch)
treec91260a30fcbc0299617393bc8d11917bd023911 /tests
parent0e50b972de4ea7e883b6cea608311fbd84b2961b (diff)
Fix basic blt test for SNB
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_exec_blt.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/gem_exec_blt.c b/tests/gem_exec_blt.c
index a939952b..774a078e 100644
--- a/tests/gem_exec_blt.c
+++ b/tests/gem_exec_blt.c
@@ -41,6 +41,8 @@
#include "drm.h"
#include "i915_drm.h"
#include "drmtest.h"
+#include "intel_chipset.h"
+#include "intel_gpu_tools.h"
#define OBJECT_SIZE 16384
@@ -49,7 +51,6 @@
#define BLT_WRITE_RGB (1<<20)
#define BLT_SRC_TILED (1<<15)
#define BLT_DST_TILED (1<<11)
-#define MI_BATCH_BUFFER_END (0xA<<23)
static uint32_t gem_create(int fd, int size)
{
@@ -250,6 +251,10 @@ static void run(int object_size)
exec[2].rsvd1 = 0;
exec[2].rsvd2 = 0;
+ ring = 0;
+ if (IS_GEN6(intel_get_drm_devid(fd)))
+ ring = I915_EXEC_BLT;
+
execbuf.buffers_ptr = (uintptr_t)exec;
execbuf.buffer_count = 3;
execbuf.batch_start_offset = 0;
@@ -258,7 +263,7 @@ static void run(int object_size)
execbuf.num_cliprects = 0;
execbuf.DR1 = 0;
execbuf.DR4 = 0;
- execbuf.flags = 0;
+ execbuf.flags = ring;
execbuf.rsvd1 = 0;
execbuf.rsvd2 = 0;