tests/bdw: pwrite_pread

support gen8 style blits

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
Ben Widawsky 2013-10-08 19:48:35 -07:00
parent d348022934
commit 3aad2ac83c

View File

@ -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)
{