Lines Matching refs:whandle
810 struct winsys_handle *whandle, in crocus_resource_from_handle() argument
822 switch (whandle->type) { in crocus_resource_from_handle()
824 res->bo = crocus_bo_import_dmabuf(bufmgr, whandle->handle, in crocus_resource_from_handle()
825 whandle->modifier); in crocus_resource_from_handle()
829 whandle->handle); in crocus_resource_from_handle()
837 res->offset = whandle->offset; in crocus_resource_from_handle()
838 res->external_format = whandle->format; in crocus_resource_from_handle()
840 if (whandle->plane < util_format_get_num_planes(whandle->format)) { in crocus_resource_from_handle()
842 whandle->modifier != DRM_FORMAT_MOD_INVALID ? in crocus_resource_from_handle()
843 whandle->modifier : tiling_to_modifier(res->bo->tiling_mode); in crocus_resource_from_handle()
847 whandle->stride); in crocus_resource_from_handle()
853 if (whandle->modifier == DRM_FORMAT_MOD_INVALID) { in crocus_resource_from_handle()
876 res->aux.surf.row_pitch_B = whandle->stride; in crocus_resource_from_handle()
877 res->aux.offset = whandle->offset; in crocus_resource_from_handle()
1032 struct winsys_handle *whandle, in crocus_resource_get_handle() argument
1043 if (mod_with_aux && whandle->plane > 0) { in crocus_resource_get_handle()
1046 whandle->stride = res->aux.surf.row_pitch_B; in crocus_resource_get_handle()
1047 whandle->offset = res->aux.offset; in crocus_resource_get_handle()
1050 whandle->stride = res->surf.row_pitch_B; in crocus_resource_get_handle()
1053 whandle->format = res->external_format; in crocus_resource_get_handle()
1054 whandle->modifier = in crocus_resource_get_handle()
1069 switch (whandle->type) { in crocus_resource_get_handle()
1071 return crocus_bo_flink(bo, &whandle->handle) == 0; in crocus_resource_get_handle()
1081 whandle->handle = handle; in crocus_resource_get_handle()
1085 return crocus_bo_export_dmabuf(bo, (int *) &whandle->handle) == 0; in crocus_resource_get_handle()
1921 struct winsys_handle *whandle, in crocus_memobj_create_from_handle() argument
1932 switch (whandle->type) { in crocus_memobj_create_from_handle()
1935 whandle->handle); in crocus_memobj_create_from_handle()
1938 mod_inf = isl_drm_modifier_get_info(whandle->modifier); in crocus_memobj_create_from_handle()
1940 bo = crocus_bo_import_dmabuf(screen->bufmgr, whandle->handle, in crocus_memobj_create_from_handle()
1941 whandle->modifier); in crocus_memobj_create_from_handle()
1948 whandle->handle); in crocus_memobj_create_from_handle()
1963 memobj->format = whandle->format; in crocus_memobj_create_from_handle()
1964 memobj->stride = whandle->stride; in crocus_memobj_create_from_handle()