Lines Matching refs:whandle
824 struct winsys_handle *whandle, in crocus_resource_from_handle() argument
836 switch (whandle->type) { in crocus_resource_from_handle()
838 res->bo = crocus_bo_import_dmabuf(bufmgr, whandle->handle, in crocus_resource_from_handle()
839 whandle->modifier); in crocus_resource_from_handle()
843 whandle->handle); in crocus_resource_from_handle()
851 res->offset = whandle->offset; in crocus_resource_from_handle()
852 res->external_format = whandle->format; in crocus_resource_from_handle()
854 if (whandle->plane < util_format_get_num_planes(whandle->format)) { in crocus_resource_from_handle()
856 whandle->modifier != DRM_FORMAT_MOD_INVALID ? in crocus_resource_from_handle()
857 whandle->modifier : tiling_to_modifier(res->bo->tiling_mode); in crocus_resource_from_handle()
861 whandle->stride); in crocus_resource_from_handle()
867 if (whandle->modifier == DRM_FORMAT_MOD_INVALID) { in crocus_resource_from_handle()
890 res->aux.surf.row_pitch_B = whandle->stride; in crocus_resource_from_handle()
891 res->aux.offset = whandle->offset; in crocus_resource_from_handle()
1046 struct winsys_handle *whandle, in crocus_resource_get_handle() argument
1057 if (mod_with_aux && whandle->plane > 0) { in crocus_resource_get_handle()
1060 whandle->stride = res->aux.surf.row_pitch_B; in crocus_resource_get_handle()
1061 whandle->offset = res->aux.offset; in crocus_resource_get_handle()
1064 whandle->stride = res->surf.row_pitch_B; in crocus_resource_get_handle()
1067 whandle->format = res->external_format; in crocus_resource_get_handle()
1068 whandle->modifier = in crocus_resource_get_handle()
1083 switch (whandle->type) { in crocus_resource_get_handle()
1085 return crocus_bo_flink(bo, &whandle->handle) == 0; in crocus_resource_get_handle()
1095 whandle->handle = handle; in crocus_resource_get_handle()
1099 return crocus_bo_export_dmabuf(bo, (int *) &whandle->handle) == 0; in crocus_resource_get_handle()
1934 struct winsys_handle *whandle, in crocus_memobj_create_from_handle() argument
1945 switch (whandle->type) { in crocus_memobj_create_from_handle()
1948 whandle->handle); in crocus_memobj_create_from_handle()
1951 mod_inf = isl_drm_modifier_get_info(whandle->modifier); in crocus_memobj_create_from_handle()
1953 bo = crocus_bo_import_dmabuf(screen->bufmgr, whandle->handle, in crocus_memobj_create_from_handle()
1954 whandle->modifier); in crocus_memobj_create_from_handle()
1961 whandle->handle); in crocus_memobj_create_from_handle()
1976 memobj->format = whandle->format; in crocus_memobj_create_from_handle()
1977 memobj->stride = whandle->stride; in crocus_memobj_create_from_handle()