Lines Matching full:box

40   struct virgl_box box;  in START_TEST()  local
42 ret = virgl_renderer_transfer_read_iov(1, 2, 0, 1, 1, &box, 0, NULL, 0); in START_TEST()
50 struct virgl_box box; in START_TEST() local
52 ret = virgl_renderer_transfer_write_iov(1, 2, 0, 1, 1, &box, 0, NULL, 0); in START_TEST()
61 struct virgl_box box; in START_TEST() local
63 ret = virgl_renderer_transfer_read_iov(1, 1, 0, 1, 1, &box, 0, NULL, 0); in START_TEST()
71 struct virgl_box box; in START_TEST() local
73 ret = virgl_renderer_transfer_write_iov(1, 1, 0, 1, 1, &box, 0, NULL, 0); in START_TEST()
81 struct virgl_box box; in START_TEST() local
92 ret = virgl_renderer_transfer_read_iov(1, 1, 0, 1, 1, &box, 0, NULL, 0); in START_TEST()
102 struct virgl_box box; in START_TEST() local
113 ret = virgl_renderer_transfer_write_iov(1, 1, 0, 1, 1, &box, 0, NULL, 0); in START_TEST()
166 /* pass a bad box argument */
173 struct virgl_box box; in START_TEST() local
182 box.x = box.y = box.z = 0; in START_TEST()
183 box.w = 10; in START_TEST()
184 box.h = 2; in START_TEST()
185 box.d = 1; in START_TEST()
187 ret = virgl_renderer_transfer_read_iov(1, 1, 0, 1, 1, &box, 0, iovs, niovs); in START_TEST()
201 struct virgl_box box; in START_TEST() local
210 box.x = box.y = box.z = 0; in START_TEST()
211 box.w = 10; in START_TEST()
212 box.h = 2; in START_TEST()
213 box.d = 1; in START_TEST()
215 ret = virgl_renderer_transfer_write_iov(1, 1, 0, 1, 1, &box, 0, iovs, niovs); in START_TEST()
229 struct virgl_box box; in START_TEST() local
240 box.x = box.y = box.z = 0; in START_TEST()
241 box.w = 10; in START_TEST()
242 box.h = 2; in START_TEST()
243 box.d = 6; in START_TEST()
245 ret = virgl_renderer_transfer_read_iov(1, 1, 0, 1, 1, &box, 0, iovs, niovs); in START_TEST()
259 struct virgl_box box; in START_TEST() local
270 box.x = box.y = box.z = 0; in START_TEST()
271 box.w = 10; in START_TEST()
272 box.h = 2; in START_TEST()
273 box.d = 6; in START_TEST()
275 ret = virgl_renderer_transfer_read_iov(1, 1, 0, 1, 1, &box, 0, iovs, niovs); in START_TEST()
291 struct virgl_box box; in START_TEST() local
300 box.x = box.y = box.z = 0; in START_TEST()
301 box.w = 50; in START_TEST()
302 box.h = 1; in START_TEST()
303 box.d = 1; in START_TEST()
307 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 0, &box, 0, &iov, niovs); in START_TEST()
310 ret = virgl_renderer_transfer_read_iov(res.handle, 1, 0, 0, 0, &box, 0, NULL, 0); in START_TEST()
330 struct virgl_box box = { .w = 50, .h = 1, .d = 1 }; in START_TEST() local
341 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 0, &box, 0, iovs, niovs); in START_TEST()
357 struct virgl_box box = { .w = 50, .h = 1, .d = 1 }; in START_TEST() local
368 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 0, &box, 20, &iov, niovs); in START_TEST()
384 struct virgl_box box = { .w = 50, .h = 1, .d = 1 }; in START_TEST() local
385 int bad_stride = box.w - 1; in START_TEST()
397 &box, 0, &iov, niovs); in START_TEST()
400 &box, 0, &iov, niovs); in START_TEST()
416 struct virgl_box box = { .w = 50, .h = 1, .d = 1 }; in START_TEST() local
417 int bad_stride = box.w - 1; in START_TEST()
427 &box, 0, &iov, niovs); in START_TEST()
430 &box, 0, &iov, niovs); in START_TEST()
446 struct virgl_box box = { .w = 50, .h = 1, .d = 1 }; in START_TEST() local
447 int bad_stride = box.w - 1; in START_TEST()
457 &box, 0, &iov, niovs); in START_TEST()
460 &box, 0, &iov, niovs); in START_TEST()
476 struct virgl_box box = { .w = 50, .h = 5, .d = 2 }; in START_TEST() local
490 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 100, &box, 0, &iov, niovs); in START_TEST()
507 struct virgl_box box = { .w = 50, .h = 1, .d = 1 }; in START_TEST() local
516 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 2, 0, 0, &box, 0, &iov, niovs); in START_TEST()
526 invalid using a box outside the bounds of the transfer */
532 struct pipe_box *box, int nsamples, int large_flags) in get_resource_args() argument
535 memset(box, 0, sizeof(*box)); in get_resource_args()
601 box->width = args->width + 10; in get_resource_args()
602 box->height = args->height; in get_resource_args()
603 box->depth = 1; in get_resource_args()
605 box->width = args->width; in get_resource_args()
606 box->height = args->height; in get_resource_args()
607 box->depth = 1; in get_resource_args()
609 box->depth = 6; in get_resource_args()
611 box->depth = 4; in get_resource_args()
615 static unsigned get_box_size(struct pipe_box *box, int elsize) in get_box_size() argument
617 return elsize * box->width * box->height * box->depth; in get_box_size()
624 struct pipe_box box; in virgl_test_transfer_res() local
631 get_resource_args(target, invalid, &res, &box, 0, 0); in virgl_test_transfer_res()
633 size = get_box_size(&box, target == PIPE_BUFFER ? 1 : 4); in virgl_test_transfer_res()
645 (struct virgl_box *)&box, 0, iovs, niovs); in virgl_test_transfer_res()
648 (struct virgl_box *)&box, 0, iovs, niovs); in virgl_test_transfer_res()
684 struct pipe_box box; in virgl_test_transfer_inline() local
694 get_resource_args(target, invalid, &args, &box, 0, large_flags); in virgl_test_transfer_inline()
696 size = get_box_size(&box, elsize); in virgl_test_transfer_inline()
706 …virgl_encoder_inline_write(&ctx, &res, 0, 0, (struct pipe_box *)&box, data, box.width * elsize, 0); in virgl_test_transfer_inline()
739 struct pipe_box box = {.width = bufsize, .height = 1, .depth = 1}; in START_TEST() local
749 box.width = bufsize; in START_TEST()
750 virgl_encoder_transfer(&ctx, &res, 0, 0, &box, 0, VIRGL_TRANSFER_TO_HOST); in START_TEST()
766 struct pipe_box box = {.width = bufsize, .height = 1, .depth = 1}; in START_TEST() local
776 box.width = bufsize; in START_TEST()
777 virgl_encoder_transfer(&ctx, &res, 0, 0, &box, 0, VIRGL_TRANSFER_TO_HOST); in START_TEST()
795 struct pipe_box box = {.width = bufsize, .height = 1, .depth = 1}; in START_TEST() local
809 box.width = bufsize; in START_TEST()
810 virgl_encoder_copy_transfer(&ctx, &dst_res, 0, 0, &box, &src_res, 0, synchronized); in START_TEST()
830 struct pipe_box box = {.width = bufsize, .height = 1, .depth = 1}; in START_TEST() local
844 box.width = bufsize; in START_TEST()
845 virgl_encoder_copy_transfer(&ctx, &dst_res, 0, 0, &box, &src_res, 0, synchronized); in START_TEST()
865 struct pipe_box box = {.width = bufsize, .height = 1, .depth = 1}; in START_TEST() local
879 virgl_encoder_copy_transfer(&ctx, &dst_res, 0, 0, &box, &src_res, 0, synchronized); in START_TEST()
899 struct pipe_box box = {.width = bufsize, .height = 1, .depth = 1}; in START_TEST() local
913 virgl_encoder_copy_transfer(&ctx, &dst_res, 0, 0, &box, &src_res, 0, synchronized); in START_TEST()
933 struct pipe_box box = {.x = 2, .y = 1, .z = 0, .width = 2, .height = 2, .depth = 1}; in START_TEST() local
943 virgl_encoder_transfer_with_stride(&ctx, &res, 0, 0, &box, 6 * 4, VIRGL_TRANSFER_TO_HOST, in START_TEST()