From 3aad2ac83c76e8e05ac91d8b7dab465556ef9575 Mon Sep 17 00:00:00 2001 From: Ben Widawsky Date: Tue, 8 Oct 2013 19:48:35 -0700 Subject: tests/bdw: pwrite_pread support gen8 style blits Signed-off-by: Ben Widawsky --- tests/gem_pwrite_pread.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/gem_pwrite_pread.c') diff --git a/tests/gem_pwrite_pread.c b/tests/gem_pwrite_pread.c index bda35a01..1ae08208 100644 --- a/tests/gem_pwrite_pread.c +++ b/tests/gem_pwrite_pread.c @@ -62,16 +62,20 @@ static inline void build_batch(uint32_t *batch, int len, uint32_t *batch_len) batch[i++] = 0; batch[i++] = 1 << 16 | (len / 4); batch[i++] = 0; /* dst */ + if (intel_gen(devid) >= 8) + batch[i++] = 0; /* FIXME */ batch[i++] = 0; batch[i++] = len; batch[i++] = 0; /* src */ + if (intel_gen(devid) >= 8) + batch[i++] = 0; /* FIXME */ batch[i++] = MI_BATCH_BUFFER_END; batch[i++] = 0; *batch_len = i * 4; } -#define GPP_BATCH_SIZE (10 * 4) +#define GPP_BATCH_SIZE (12 * 4) static void copy(int fd, uint32_t src, uint32_t dst, void *buf, int len, int loops) { -- cgit v1.2.3