tests: don't pass a bad stride in validation tests

macos/master
Dave Airlie 10 years ago
parent 93072467c4
commit a423879e87
  1. 4
      tests/test_virgl_transfer.c

@ -605,10 +605,10 @@ static void virgl_test_transfer_res(enum pipe_texture_target target,
virgl_renderer_ctx_attach_resource(1, res.handle);
if (write)
ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 1, 0,
ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 0,
(struct virgl_box *)&box, 0, iovs, niovs);
else
ret = virgl_renderer_transfer_read_iov(res.handle, 1, 0, 1, 0,
ret = virgl_renderer_transfer_read_iov(res.handle, 1, 0, 0, 0,
(struct virgl_box *)&box, 0, iovs, niovs);
ck_assert_int_eq(ret, invalid ? EINVAL : 0);
virgl_renderer_ctx_detach_resource(1, res.handle);

Loading…
Cancel
Save