summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2013-10-08 19:48:35 -0700
committerBen Widawsky <benjamin.widawsky@intel.com>2013-11-06 09:34:35 -0800
commit3aad2ac83c76e8e05ac91d8b7dab465556ef9575 (patch)
treea65e9fd75a4072a78675b01b4d9955f976ce87ad /tests
parentd3480229341b78952dc1558dd8992d0f12f6998b (diff)
tests/bdw: pwrite_pread
support gen8 style blits Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_pwrite_pread.c6
1 files changed, 5 insertions, 1 deletions
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)
{