• Home
  • Raw
  • Download

Lines Matching refs:whandle

584    struct winsys_handle whandle;  in si_resource_get_param()  local
621 memset(&whandle, 0, sizeof(whandle)); in si_resource_get_param()
624 whandle.type = WINSYS_HANDLE_TYPE_SHARED; in si_resource_get_param()
626 whandle.type = WINSYS_HANDLE_TYPE_KMS; in si_resource_get_param()
628 whandle.type = WINSYS_HANDLE_TYPE_FD; in si_resource_get_param()
630 if (!screen->resource_get_handle(screen, context, resource, &whandle, handle_usage)) in si_resource_get_param()
633 *value = whandle.handle; in si_resource_get_param()
658 struct pipe_resource *resource, struct winsys_handle *whandle, in si_texture_get_handle() argument
674 unsigned plane = whandle->plane; in si_texture_get_handle()
694 whandle->size = tex->buffer.bo_size; in si_texture_get_handle()
699 whandle->offset = ac_surface_get_plane_offset(sscreen->info.gfx_level, in si_texture_get_handle()
701 whandle->stride = ac_surface_get_plane_stride(sscreen->info.gfx_level, in si_texture_get_handle()
703 whandle->modifier = tex->surface.modifier; in si_texture_get_handle()
704 return sscreen->ws->buffer_get_handle(sscreen->ws, res->buf, whandle); in si_texture_get_handle()
752 if ((!res->b.is_shared || update_metadata) && whandle->offset == 0) in si_texture_get_handle()
820 whandle->stride = stride; in si_texture_get_handle()
821 whandle->offset = offset + slice_size * whandle->layer; in si_texture_get_handle()
822 whandle->modifier = modifier; in si_texture_get_handle()
824 return sscreen->ws->buffer_get_handle(sscreen->ws, res->buf, whandle); in si_texture_get_handle()
1655 struct winsys_handle *whandle, unsigned usage) in si_texture_from_handle() argument
1666 buf = sscreen->ws->buffer_from_handle(sscreen->ws, whandle, in si_texture_from_handle()
1672 if (whandle->plane >= util_format_get_num_planes(whandle->format)) { in si_texture_from_handle()
1678 tex->stride = whandle->stride; in si_texture_from_handle()
1679 tex->offset = whandle->offset; in si_texture_from_handle()
1687 return si_texture_from_winsys_buffer(sscreen, templ, buf, whandle->stride, whandle->offset, in si_texture_from_handle()
1688 whandle->modifier, usage, true); in si_texture_from_handle()
2211 si_memobj_from_handle(struct pipe_screen *screen, struct winsys_handle *whandle, bool dedicated) in si_memobj_from_handle() argument
2220 buf = sscreen->ws->buffer_from_handle(sscreen->ws, whandle, sscreen->info.max_alignment, false); in si_memobj_from_handle()
2228 memobj->stride = whandle->stride; in si_memobj_from_handle()