• Home
  • Raw
  • Download

Lines Matching refs:whandle

550 …screen *screen, const struct pipe_resource *templ, struct winsys_handle *whandle, bool *optimal_ti…  in resource_object_create()  argument
562 if (whandle && whandle->plane >= util_format_get_num_planes(whandle->format)) in resource_object_create()
586 if (whandle) { in resource_object_create()
587 if (whandle->type == WINSYS_HANDLE_TYPE_FD || whandle->type == ZINK_EXTERNAL_MEMORY_HANDLE) in resource_object_create()
593 if (whandle && whandle->type == ZINK_EXTERNAL_MEMORY_HANDLE) { in resource_object_create()
643 …(export_types & VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT) && whandle && whandle->modifier !=… in resource_object_create()
647 whandle && whandle->modifier == DRM_FORMAT_MOD_INVALID && whandle->stride) { in resource_object_create()
655 const uint64_t *ici_modifiers = winsys_modifier ? &whandle->modifier : modifiers; in resource_object_create()
691 .offset = whandle ? whandle->offset : 0, in resource_object_create()
693 .rowPitch = whandle ? whandle->stride : 0, in resource_object_create()
709 if (whandle && ici.tiling == VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT) { in resource_object_create()
710 assert(mod == whandle->modifier || !winsys_modifier); in resource_object_create()
749 obj->modifier_aspect = VK_IMAGE_ASPECT_MEMORY_PLANE_0_BIT_EXT << whandle->plane; in resource_object_create()
750 obj->plane_offsets[whandle->plane] = whandle->offset; in resource_object_create()
751 obj->plane_strides[whandle->plane] = whandle->stride; in resource_object_create()
752 obj->handle = os_dupfd_cloexec(whandle->handle); in resource_object_create()
818 } else if (whandle) { in resource_object_create()
819 obj->plane_strides[whandle->plane] = whandle->stride; in resource_object_create()
964 if (whandle) { in resource_object_create()
967 imfi.fd = os_dupfd_cloexec(whandle->handle); in resource_object_create()
982 if (whandle) { in resource_object_create()
986 …bool result = DuplicateHandle(source_target, whandle->handle, source_target, &out_handle, 0, false… in resource_object_create()
1090 struct winsys_handle *whandle, in resource_create() argument
1122 …res->obj = resource_object_create(screen, &templ2, whandle, &optimal_tiling, modifiers, modifiers_… in resource_create()
1156 res->dmabuf_acquire = whandle && whandle->type == WINSYS_HANDLE_TYPE_FD; in resource_create()
1157 res->dmabuf = res->dmabuf_acquire = whandle && whandle->type == WINSYS_HANDLE_TYPE_FD; in resource_create()
1287 struct winsys_handle whandle; in zink_resource_get_param() local
1368 memset(&whandle, 0, sizeof(whandle)); in zink_resource_get_param()
1370 whandle.type = WINSYS_HANDLE_TYPE_SHARED; in zink_resource_get_param()
1372 whandle.type = WINSYS_HANDLE_TYPE_KMS; in zink_resource_get_param()
1374 whandle.type = WINSYS_HANDLE_TYPE_FD; in zink_resource_get_param()
1376 if (!pscreen->resource_get_handle(pscreen, pctx, pres, &whandle, handle_usage)) in zink_resource_get_param()
1380 *value = (uintptr_t)whandle.handle; in zink_resource_get_param()
1382 *value = whandle.handle; in zink_resource_get_param()
1386 (void)whandle; in zink_resource_get_param()
1398 struct winsys_handle *whandle, in zink_resource_get_handle() argument
1401 if (whandle->type == WINSYS_HANDLE_TYPE_FD || whandle->type == WINSYS_HANDLE_TYPE_KMS) { in zink_resource_get_handle()
1408 if (whandle->type == WINSYS_HANDLE_TYPE_KMS && screen->drm_fd == -1) { in zink_resource_get_handle()
1409 whandle->handle = -1; in zink_resource_get_handle()
1428 if (whandle->type == WINSYS_HANDLE_TYPE_FD) in zink_resource_get_handle()
1437 if (whandle->type == WINSYS_HANDLE_TYPE_KMS) { in zink_resource_get_handle()
1446 whandle->handle = fd; in zink_resource_get_handle()
1458 whandle->handle = handle; in zink_resource_get_handle()
1462 whandle->modifier = value; in zink_resource_get_handle()
1464 whandle->offset = value; in zink_resource_get_handle()
1466 whandle->stride = value; in zink_resource_get_handle()
1477 struct winsys_handle *whandle, in zink_resource_from_handle() argument
1481 if (whandle->modifier != DRM_FORMAT_MOD_INVALID && in zink_resource_from_handle()
1487 templ2.format = whandle->format; in zink_resource_from_handle()
1491 if (whandle->modifier != DRM_FORMAT_MOD_INVALID) { in zink_resource_from_handle()
1492 modifier = whandle->modifier; in zink_resource_from_handle()
1495 …struct pipe_resource *pres = resource_create(pscreen, &templ2, whandle, usage, &modifier, modifier… in zink_resource_from_handle()
1498 res->drm_format = whandle->format; in zink_resource_from_handle()
1510 struct winsys_handle whandle; member
1514 zink_memobj_create_from_handle(struct pipe_screen *pscreen, struct winsys_handle *whandle, bool ded… in zink_memobj_create_from_handle() argument
1519 memcpy(&memobj->whandle, whandle, sizeof(struct winsys_handle)); in zink_memobj_create_from_handle()
1520 memobj->whandle.type = ZINK_EXTERNAL_MEMORY_HANDLE; in zink_memobj_create_from_handle()
1525 memobj->whandle.handle = os_dupfd_cloexec(whandle->handle); in zink_memobj_create_from_handle()
1530 …DuplicateHandle(source_target, whandle->handle, source_target, &out_handle, 0, false, DUPLICATE_SA… in zink_memobj_create_from_handle()
1531 memobj->whandle.handle = out_handle; in zink_memobj_create_from_handle()
1546 close(memobj->whandle.handle); in zink_memobj_destroy()
1548 CloseHandle(memobj->whandle.handle); in zink_memobj_destroy()
1563 struct pipe_resource *pres = resource_create(pscreen, templ, &memobj->whandle, 0, NULL, 0, NULL); in zink_resource_from_memobj()