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);
};
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);
};
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);
};
int i;
- 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;
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);
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);