Lines Matching defs:handle
272 struct winsys_handle handle;
278 screen->ro, &handle);
284 assert(handle.type == WINSYS_HANDLE_TYPE_FD);
285 rsc->levels[0].stride = handle.stride;
286 rsc->bo = etna_screen_bo_from_handle(pscreen, &handle);
287 close(handle.handle);
466 struct winsys_handle *handle, unsigned usage)
492 rsc->bo = etna_screen_bo_from_handle(pscreen, handle);
497 rsc->layout = modifier_to_layout(handle->modifier);
506 level->stride = handle->stride;
507 level->offset = handle->offset;
562 struct winsys_handle *handle, unsigned usage)
568 if (handle->plane) {
571 for (int i = 0; i < handle->plane; i++) {
582 handle->stride = rsc->levels[0].stride;
583 handle->offset = rsc->levels[0].offset;
584 handle->modifier = layout_to_modifier(rsc->layout);
589 if (handle->type == WINSYS_HANDLE_TYPE_SHARED) {
590 return etna_bo_get_name(rsc->bo, &handle->handle) == 0;
591 } else if (handle->type == WINSYS_HANDLE_TYPE_KMS) {
593 return renderonly_get_handle(scanout, handle);
595 handle->handle = etna_bo_handle(rsc->bo);
598 } else if (handle->type == WINSYS_HANDLE_TYPE_FD) {
599 handle->handle = etna_bo_dmabuf(rsc->bo);