Lines Matching refs:res
81 struct virgl_renderer_resource_create_args res; in START_TEST() local
84 testvirgl_init_simple_1d_resource(&res, 1); in START_TEST()
86 ret = virgl_renderer_resource_create(&res, NULL, 0); in START_TEST()
89 virgl_renderer_ctx_attach_resource(1, res.handle); in START_TEST()
93 virgl_renderer_ctx_detach_resource(1, res.handle); in START_TEST()
102 struct virgl_renderer_resource_create_args res; in START_TEST() local
105 testvirgl_init_simple_1d_resource(&res, 1); in START_TEST()
107 ret = virgl_renderer_resource_create(&res, NULL, 0); in START_TEST()
110 virgl_renderer_ctx_attach_resource(1, res.handle); in START_TEST()
114 virgl_renderer_ctx_detach_resource(1, res.handle); in START_TEST()
122 struct virgl_renderer_resource_create_args res; in START_TEST() local
127 testvirgl_init_simple_1d_resource(&res, 1); in START_TEST()
129 ret = virgl_renderer_resource_create(&res, NULL, 0); in START_TEST()
132 virgl_renderer_ctx_attach_resource(1, res.handle); in START_TEST()
136 virgl_renderer_ctx_detach_resource(1, res.handle); in START_TEST()
144 struct virgl_renderer_resource_create_args res; in START_TEST() local
149 testvirgl_init_simple_1d_resource(&res, 1); in START_TEST()
151 ret = virgl_renderer_resource_create(&res, NULL, 0); in START_TEST()
154 virgl_renderer_ctx_attach_resource(1, res.handle); in START_TEST()
158 virgl_renderer_ctx_detach_resource(1, res.handle); in START_TEST()
168 struct virgl_renderer_resource_create_args res; in START_TEST() local
174 testvirgl_init_simple_1d_resource(&res, 1); in START_TEST()
176 ret = virgl_renderer_resource_create(&res, NULL, 0); in START_TEST()
179 virgl_renderer_ctx_attach_resource(1, res.handle); in START_TEST()
188 virgl_renderer_ctx_detach_resource(1, res.handle); in START_TEST()
196 struct virgl_renderer_resource_create_args res; in START_TEST() local
202 testvirgl_init_simple_1d_resource(&res, 1); in START_TEST()
204 ret = virgl_renderer_resource_create(&res, NULL, 0); in START_TEST()
207 virgl_renderer_ctx_attach_resource(1, res.handle); in START_TEST()
216 virgl_renderer_ctx_detach_resource(1, res.handle); in START_TEST()
224 struct virgl_renderer_resource_create_args res; in START_TEST() local
230 testvirgl_init_simple_1d_resource(&res, 1); in START_TEST()
231 res.target = PIPE_TEXTURE_1D_ARRAY; in START_TEST()
232 res.array_size = 5; in START_TEST()
234 ret = virgl_renderer_resource_create(&res, NULL, 0); in START_TEST()
237 virgl_renderer_ctx_attach_resource(1, res.handle); in START_TEST()
246 virgl_renderer_ctx_detach_resource(1, res.handle); in START_TEST()
254 struct virgl_renderer_resource_create_args res; in START_TEST() local
260 testvirgl_init_simple_1d_resource(&res, 1); in START_TEST()
261 res.target = PIPE_TEXTURE_3D; in START_TEST()
262 res.depth = 5; in START_TEST()
264 ret = virgl_renderer_resource_create(&res, NULL, 0); in START_TEST()
267 virgl_renderer_ctx_attach_resource(1, res.handle); in START_TEST()
276 virgl_renderer_ctx_detach_resource(1, res.handle); in START_TEST()
284 struct virgl_resource res; in START_TEST() local
293 ret = testvirgl_create_backed_simple_1d_res(&res, 1); in START_TEST()
297 virgl_renderer_ctx_attach_resource(1, res.handle); 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()
313 unsigned char *ptr = res.iovs[0].iov_base; in START_TEST()
318 virgl_renderer_ctx_detach_resource(1, res.handle); in START_TEST()
319 testvirgl_destroy_backed_res(&res); in START_TEST()
325 struct virgl_renderer_resource_create_args res; in START_TEST() local
331 testvirgl_init_simple_1d_resource(&res, 1); in START_TEST()
332 res.target = PIPE_TEXTURE_1D; in START_TEST()
333 res.depth = 1; in START_TEST()
335 ret = virgl_renderer_resource_create(&res, NULL, 0); in START_TEST()
338 virgl_renderer_ctx_attach_resource(1, res.handle); in START_TEST()
340 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 0, &box, 0, iovs, niovs); in START_TEST()
343 virgl_renderer_ctx_detach_resource(1, res.handle); in START_TEST()
351 struct virgl_renderer_resource_create_args res; in START_TEST() local
358 testvirgl_init_simple_1d_resource(&res, 1); in START_TEST()
359 res.target = PIPE_TEXTURE_1D; in START_TEST()
360 res.depth = 1; in START_TEST()
362 ret = virgl_renderer_resource_create(&res, NULL, 0); in START_TEST()
365 virgl_renderer_ctx_attach_resource(1, res.handle); in START_TEST()
367 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 0, &box, 20, &iov, niovs); in START_TEST()
370 virgl_renderer_ctx_detach_resource(1, res.handle); in START_TEST()
378 struct virgl_renderer_resource_create_args res; in START_TEST() local
385 testvirgl_init_simple_1d_resource(&res, 1); in START_TEST()
386 res.target = PIPE_TEXTURE_1D; in START_TEST()
387 res.depth = 1; in START_TEST()
389 ret = virgl_renderer_resource_create(&res, NULL, 0); in START_TEST()
392 virgl_renderer_ctx_attach_resource(1, res.handle); in START_TEST()
394 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 50, &box, 0, &iov, niovs); in START_TEST()
397 virgl_renderer_ctx_detach_resource(1, res.handle); in START_TEST()
405 struct virgl_renderer_resource_create_args res; in START_TEST() local
412 testvirgl_init_simple_2d_resource(&res, 1); in START_TEST()
414 ret = virgl_renderer_resource_create(&res, NULL, 0); in START_TEST()
417 virgl_renderer_ctx_attach_resource(1, res.handle); in START_TEST()
419 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 50, &box, 0, &iov, niovs); in START_TEST()
422 virgl_renderer_ctx_detach_resource(1, res.handle); in START_TEST()
430 struct virgl_renderer_resource_create_args res; in START_TEST() local
437 testvirgl_init_simple_buffer(&res, 1); in START_TEST()
439 ret = virgl_renderer_resource_create(&res, NULL, 0); in START_TEST()
442 virgl_renderer_ctx_attach_resource(1, res.handle); in START_TEST()
444 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 50, &box, 0, &iov, niovs); in START_TEST()
447 virgl_renderer_ctx_detach_resource(1, res.handle); in START_TEST()
455 struct virgl_renderer_resource_create_args res; in START_TEST() local
465 testvirgl_init_simple_2d_resource(&res, 1); in START_TEST()
466 res.target = PIPE_TEXTURE_2D_ARRAY; in START_TEST()
467 res.array_size = 5; in START_TEST()
469 ret = virgl_renderer_resource_create(&res, NULL, 0); in START_TEST()
472 virgl_renderer_ctx_attach_resource(1, res.handle); in START_TEST()
474 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 100, &box, 0, &iov, niovs); in START_TEST()
477 virgl_renderer_ctx_detach_resource(1, res.handle); in START_TEST()
486 struct virgl_renderer_resource_create_args res; in START_TEST() local
493 testvirgl_init_simple_2d_resource(&res, 1); in START_TEST()
494 res.last_level = 1; in START_TEST()
495 ret = virgl_renderer_resource_create(&res, NULL, 0); in START_TEST()
498 virgl_renderer_ctx_attach_resource(1, res.handle); in START_TEST()
500 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 2, 0, 0, &box, 0, &iov, niovs); in START_TEST()
503 virgl_renderer_ctx_detach_resource(1, res.handle); in START_TEST()
512 struct virgl_renderer_resource_create_args res; in START_TEST() local
519 testvirgl_init_simple_2d_resource(&res, 1); in START_TEST()
521 ret = virgl_renderer_resource_create(&res, NULL, 0); in START_TEST()
524 virgl_renderer_ctx_attach_resource(1, res.handle); in START_TEST()
526 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 10, 0, &box, 0, &iov, niovs); in START_TEST()
529 virgl_renderer_ctx_detach_resource(1, res.handle); in START_TEST()
619 struct virgl_renderer_resource_create_args res; in virgl_test_transfer_res() local
627 get_resource_args(target, invalid, &res, &box, 1, 0); in virgl_test_transfer_res()
634 ret = virgl_renderer_resource_create(&res, NULL, 0); in virgl_test_transfer_res()
637 virgl_renderer_ctx_attach_resource(1, res.handle); in virgl_test_transfer_res()
640 ret = virgl_renderer_transfer_write_iov(res.handle, 1, 0, 0, 0, in virgl_test_transfer_res()
643 ret = virgl_renderer_transfer_read_iov(res.handle, 1, 0, 0, 0, in virgl_test_transfer_res()
646 virgl_renderer_ctx_detach_resource(1, res.handle); in virgl_test_transfer_res()
648 virgl_renderer_resource_unref(res.handle); in virgl_test_transfer_res()
682 struct virgl_resource res; in virgl_test_transfer_inline() local
697 res.handle = args.handle; in virgl_test_transfer_inline()
698 res.base.target = args.target; in virgl_test_transfer_inline()
699 res.base.format = args.format; in virgl_test_transfer_inline()
701 virgl_renderer_ctx_attach_resource(ctx.ctx_id, res.handle); 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()
705 virgl_renderer_ctx_detach_resource(ctx.ctx_id, res.handle); in virgl_test_transfer_inline()
707 virgl_renderer_resource_unref(res.handle); in virgl_test_transfer_inline()