Lines Matching full:box

39   struct virgl_box box;  in START_TEST()  local
41 ret = virgl_renderer_transfer_read_iov(1, 2, 0, 1, 1, &box, 0, NULL, 0); in START_TEST()
49 struct virgl_box box; in START_TEST() local
51 ret = virgl_renderer_transfer_write_iov(1, 2, 0, 1, 1, &box, 0, NULL, 0); in START_TEST()
60 struct virgl_box box; in START_TEST() local
62 ret = virgl_renderer_transfer_read_iov(1, 1, 0, 1, 1, &box, 0, NULL, 0); in START_TEST()
70 struct virgl_box box; in START_TEST() local
72 ret = virgl_renderer_transfer_write_iov(1, 1, 0, 1, 1, &box, 0, NULL, 0); in START_TEST()
80 struct virgl_box box; in START_TEST() local
91 ret = virgl_renderer_transfer_read_iov(1, 1, 0, 1, 1, &box, 0, NULL, 0); in START_TEST()
101 struct virgl_box box; in START_TEST() local
112 ret = virgl_renderer_transfer_write_iov(1, 1, 0, 1, 1, &box, 0, NULL, 0); in START_TEST()
165 /* pass a bad box argument */
172 struct virgl_box box; in START_TEST() local
181 box.x = box.y = box.z = 0; in START_TEST()
182 box.w = 10; in START_TEST()
183 box.h = 2; in START_TEST()
184 box.d = 1; in START_TEST()
186 ret = virgl_renderer_transfer_read_iov(1, 1, 0, 1, 1, &box, 0, iovs, niovs); in START_TEST()
200 struct virgl_box box; in START_TEST() local
209 box.x = box.y = box.z = 0; in START_TEST()
210 box.w = 10; in START_TEST()
211 box.h = 2; in START_TEST()
212 box.d = 1; in START_TEST()
214 ret = virgl_renderer_transfer_write_iov(1, 1, 0, 1, 1, &box, 0, iovs, niovs); in START_TEST()
228 struct virgl_box box; in START_TEST() local
239 box.x = box.y = box.z = 0; in START_TEST()
240 box.w = 10; in START_TEST()
241 box.h = 2; in START_TEST()
242 box.d = 6; in START_TEST()
244 ret = virgl_renderer_transfer_read_iov(1, 1, 0, 1, 1, &box, 0, iovs, niovs); in START_TEST()
258 struct virgl_box box; in START_TEST() local
269 box.x = box.y = box.z = 0; in START_TEST()
270 box.w = 10; in START_TEST()
271 box.h = 2; in START_TEST()
272 box.d = 6; in START_TEST()
274 ret = virgl_renderer_transfer_read_iov(1, 1, 0, 1, 1, &box, 0, iovs, niovs); in START_TEST()
290 struct virgl_box box; in START_TEST() local
299 box.x = box.y = box.z = 0; in START_TEST()
300 box.w = 50; in START_TEST()
301 box.h = 1; in START_TEST()
302 box.d = 1; in START_TEST()
306 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 0, &box, 0, &iov, niovs); in START_TEST()
309 ret = virgl_renderer_transfer_read_iov(res.handle, 1, 0, 0, 0, &box, 0, NULL, 0); in START_TEST()
329 struct virgl_box box = { .w = 50, .h = 1, .d = 1 }; in START_TEST() local
340 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 0, &box, 0, iovs, niovs); in START_TEST()
356 struct virgl_box box = { .w = 50, .h = 1, .d = 1 }; in START_TEST() local
367 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 0, &box, 20, &iov, niovs); in START_TEST()
383 struct virgl_box box = { .w = 50, .h = 1, .d = 1 }; in START_TEST() local
394 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 50, &box, 0, &iov, niovs); in START_TEST()
410 struct virgl_box box = { .w = 50, .h = 1, .d = 1 }; in START_TEST() local
419 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 50, &box, 0, &iov, niovs); in START_TEST()
435 struct virgl_box box = { .w = 50, .h = 1, .d = 1 }; in START_TEST() local
444 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 50, &box, 0, &iov, niovs); in START_TEST()
460 struct virgl_box box = { .w = 50, .h = 5, .d = 2 }; in START_TEST() local
474 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 100, &box, 0, &iov, niovs); in START_TEST()
491 struct virgl_box box = { .w = 50, .h = 1, .d = 1 }; in START_TEST() local
500 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 2, 0, 0, &box, 0, &iov, niovs); in START_TEST()
509 /* test stride less than box size */
517 struct virgl_box box = { .w = 50, .h = 2, .d = 1 }; in START_TEST() local
526 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 10, 0, &box, 0, &iov, niovs); in START_TEST()
536 invalid using a box outside the bounds of the transfer */
542 struct pipe_box *box, int nsamples, int large_flags) in get_resource_args() argument
545 memset(box, 0, sizeof(*box)); in get_resource_args()
597 box->width = args->width + 10; in get_resource_args()
598 box->height = args->height; in get_resource_args()
599 box->depth = 1; in get_resource_args()
601 box->width = args->width; in get_resource_args()
602 box->height = args->height; in get_resource_args()
603 box->depth = 1; in get_resource_args()
605 box->depth = 6; in get_resource_args()
607 box->depth = 4; in get_resource_args()
611 static unsigned get_box_size(struct pipe_box *box, int elsize) in get_box_size() argument
613 return elsize * box->width * box->height * box->depth; in get_box_size()
620 struct pipe_box box; in virgl_test_transfer_res() local
627 get_resource_args(target, invalid, &res, &box, 1, 0); in virgl_test_transfer_res()
629 size = get_box_size(&box, target == PIPE_BUFFER ? 1 : 4); in virgl_test_transfer_res()
641 (struct virgl_box *)&box, 0, iovs, niovs); in virgl_test_transfer_res()
644 (struct virgl_box *)&box, 0, iovs, niovs); in virgl_test_transfer_res()
680 struct pipe_box box; in virgl_test_transfer_inline() local
690 get_resource_args(target, invalid, &args, &box, 1, large_flags); in virgl_test_transfer_inline()
692 size = get_box_size(&box, elsize); in virgl_test_transfer_inline()
702 …virgl_encoder_inline_write(&ctx, &res, 0, 0, (struct pipe_box *)&box, data, box.width * elsize, 0); in virgl_test_transfer_inline()