This will make an upcoming change easier.
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
0, 0, 0, 0,
HAS_BLT_RING(intel_get_drm_devid(fd)) ? I915_EXEC_BLT : 0,
};
0, 0, 0, 0,
HAS_BLT_RING(intel_get_drm_devid(fd)) ? I915_EXEC_BLT : 0,
};
- gem_write(fd, exec[2].handle, 0, batch, sizeof(batch));
+ gem_write(fd, exec[2].handle, 0, batch, execbuf.batch_len);
while (loops--) {
gem_write(fd, src, 0, buf, len);
while (loops--) {
gem_write(fd, src, 0, buf, len);
};
uint32_t *src_ptr, *dst_ptr;
};
uint32_t *src_ptr, *dst_ptr;
- gem_write(fd, exec[2].handle, 0, batch, sizeof(batch));
+ gem_write(fd, exec[2].handle, 0, batch, execbuf.batch_len);
src_ptr = gem_mmap__gtt(fd, src, OBJECT_SIZE, PROT_WRITE);
dst_ptr = gem_mmap__gtt(fd, dst, OBJECT_SIZE, PROT_READ);
src_ptr = gem_mmap__gtt(fd, src, OBJECT_SIZE, PROT_WRITE);
dst_ptr = gem_mmap__gtt(fd, dst, OBJECT_SIZE, PROT_READ);
};
uint32_t *src_ptr, *dst_ptr;
};
uint32_t *src_ptr, *dst_ptr;
- gem_write(fd, exec[2].handle, 0, batch, sizeof(batch));
+ gem_write(fd, exec[2].handle, 0, batch, execbuf.batch_len);
src_ptr = gem_mmap__cpu(fd, src, OBJECT_SIZE, PROT_WRITE);
dst_ptr = gem_mmap__cpu(fd, dst, OBJECT_SIZE, PROT_READ);
src_ptr = gem_mmap__cpu(fd, src, OBJECT_SIZE, PROT_WRITE);
dst_ptr = gem_mmap__cpu(fd, dst, OBJECT_SIZE, PROT_READ);
- gem_write(fd, exec[2].handle, 0, batch, sizeof(batch));
+ gem_write(fd, exec[2].handle, 0, batch, execbuf.batch_len);
for (i = 0; i < len/4; i++)
buf[i] = i;
for (i = 0; i < len/4; i++)
buf[i] = i;
uint32_t *src_ptr, *dst_ptr;
int i;
uint32_t *src_ptr, *dst_ptr;
int i;
- gem_write(fd, exec[2].handle, 0, batch, sizeof(batch));
+ gem_write(fd, exec[2].handle, 0, batch, execbuf.batch_len);
src_ptr = gem_mmap__gtt(fd, src, OBJECT_SIZE, PROT_WRITE);
dst_ptr = gem_mmap__gtt(fd, dst, OBJECT_SIZE, PROT_READ);
src_ptr = gem_mmap__gtt(fd, src, OBJECT_SIZE, PROT_WRITE);
dst_ptr = gem_mmap__gtt(fd, dst, OBJECT_SIZE, PROT_READ);
uint32_t *src_ptr, *dst_ptr;
int i;
uint32_t *src_ptr, *dst_ptr;
int i;
- gem_write(fd, exec[2].handle, 0, batch, sizeof(batch));
+ gem_write(fd, exec[2].handle, 0, batch, execbuf.batch_len);
src_ptr = gem_mmap__cpu(fd, src, OBJECT_SIZE, PROT_WRITE);
dst_ptr = gem_mmap__cpu(fd, dst, OBJECT_SIZE, PROT_READ);
src_ptr = gem_mmap__cpu(fd, src, OBJECT_SIZE, PROT_WRITE);
dst_ptr = gem_mmap__cpu(fd, dst, OBJECT_SIZE, PROT_READ);