Lines Matching refs:whandle
305 struct winsys_handle whandle; in dri2_allocate_buffer() local
373 memset(&whandle, 0, sizeof(whandle)); in dri2_allocate_buffer()
375 whandle.type = WINSYS_HANDLE_TYPE_SHARED; in dri2_allocate_buffer()
377 whandle.type = WINSYS_HANDLE_TYPE_KMS; in dri2_allocate_buffer()
380 buffer->resource, &whandle, in dri2_allocate_buffer()
384 buffer->base.name = whandle.handle; in dri2_allocate_buffer()
386 buffer->base.pitch = whandle.stride; in dri2_allocate_buffer()
451 struct winsys_handle whandle; in dri2_allocate_textures() local
574 memset(&whandle, 0, sizeof(whandle)); in dri2_allocate_textures()
608 whandle.handle = buf->name; in dri2_allocate_textures()
609 whandle.stride = buf->pitch; in dri2_allocate_textures()
610 whandle.offset = 0; in dri2_allocate_textures()
611 whandle.format = format; in dri2_allocate_textures()
612 whandle.modifier = DRM_FORMAT_MOD_INVALID; in dri2_allocate_textures()
614 whandle.type = WINSYS_HANDLE_TYPE_SHARED; in dri2_allocate_textures()
616 whandle.type = WINSYS_HANDLE_TYPE_KMS; in dri2_allocate_textures()
619 &templ, &whandle, in dri2_allocate_textures()
846 int num_handles, struct winsys_handle *whandle, in dri2_create_image_from_winsys() argument
924 tex = pscreen->resource_from_handle(pscreen, &templ, &whandle[i], in dri2_create_image_from_winsys()
948 &templ, &whandle[use_lowered ? map->planes[i].buffer_index : i], in dri2_create_image_from_winsys()
987 struct winsys_handle whandle; in dri2_create_image_from_name() local
993 memset(&whandle, 0, sizeof(whandle)); in dri2_create_image_from_name()
994 whandle.type = WINSYS_HANDLE_TYPE_SHARED; in dri2_create_image_from_name()
995 whandle.handle = name; in dri2_create_image_from_name()
996 whandle.format = map->pipe_format; in dri2_create_image_from_name()
997 whandle.modifier = DRM_FORMAT_MOD_INVALID; in dri2_create_image_from_name()
999 whandle.stride = pitch * util_format_get_blocksize(map->pipe_format); in dri2_create_image_from_name()
1002 1, &whandle, 0, loaderPrivate); in dri2_create_image_from_name()
1265 struct winsys_handle whandle; in dri2_query_image_by_resource_handle() local
1268 memset(&whandle, 0, sizeof(whandle)); in dri2_query_image_by_resource_handle()
1269 whandle.plane = image->plane; in dri2_query_image_by_resource_handle()
1276 whandle.type = WINSYS_HANDLE_TYPE_KMS; in dri2_query_image_by_resource_handle()
1279 whandle.type = WINSYS_HANDLE_TYPE_SHARED; in dri2_query_image_by_resource_handle()
1282 whandle.type = WINSYS_HANDLE_TYPE_FD; in dri2_query_image_by_resource_handle()
1291 whandle.type = WINSYS_HANDLE_TYPE_KMS; in dri2_query_image_by_resource_handle()
1292 whandle.modifier = DRM_FORMAT_MOD_INVALID; in dri2_query_image_by_resource_handle()
1304 &whandle, usage)) in dri2_query_image_by_resource_handle()
1309 *value = whandle.stride; in dri2_query_image_by_resource_handle()
1312 *value = whandle.offset; in dri2_query_image_by_resource_handle()
1317 *value = whandle.handle; in dri2_query_image_by_resource_handle()
1320 if (whandle.modifier == DRM_FORMAT_MOD_INVALID) in dri2_query_image_by_resource_handle()
1322 *value = (whandle.modifier >> 32) & 0xffffffff; in dri2_query_image_by_resource_handle()
1325 if (whandle.modifier == DRM_FORMAT_MOD_INVALID) in dri2_query_image_by_resource_handle()
1327 *value = whandle.modifier & 0xffffffff; in dri2_query_image_by_resource_handle()
1496 struct winsys_handle whandle; in dri2_from_names() local
1504 memset(&whandle, 0, sizeof(whandle)); in dri2_from_names()
1505 whandle.type = WINSYS_HANDLE_TYPE_SHARED; in dri2_from_names()
1506 whandle.handle = names[0]; in dri2_from_names()
1507 whandle.stride = strides[0]; in dri2_from_names()
1508 whandle.offset = offsets[0]; in dri2_from_names()
1509 whandle.format = map->pipe_format; in dri2_from_names()
1510 whandle.modifier = DRM_FORMAT_MOD_INVALID; in dri2_from_names()
1513 1, &whandle, 0, loaderPrivate); in dri2_from_names()
1966 struct winsys_handle whandle; in dri2_interop_export_object() local
2171 memset(&whandle, 0, sizeof(whandle)); in dri2_interop_export_object()
2172 whandle.type = WINSYS_HANDLE_TYPE_FD; in dri2_interop_export_object()
2174 success = screen->resource_get_handle(screen, st->pipe, res, &whandle, in dri2_interop_export_object()
2181 out->dmabuf_fd = whandle.handle; in dri2_interop_export_object()
2185 out->buf_offset += whandle.offset; in dri2_interop_export_object()