Lines Matching refs:whandle
419 struct winsys_handle *whandle, in v3d_resource_get_handle() argument
426 whandle->stride = rsc->slices[0].stride; in v3d_resource_get_handle()
427 whandle->offset = 0; in v3d_resource_get_handle()
428 whandle->modifier = v3d_resource_modifier(rsc); in v3d_resource_get_handle()
436 switch (whandle->type) { in v3d_resource_get_handle()
438 return v3d_bo_flink(bo, &whandle->handle); in v3d_resource_get_handle()
441 if (renderonly_get_handle(rsc->scanout, whandle)) { in v3d_resource_get_handle()
442 whandle->stride = rsc->slices[0].stride; in v3d_resource_get_handle()
447 whandle->handle = bo->handle; in v3d_resource_get_handle()
450 whandle->handle = v3d_bo_get_dmabuf(bo); in v3d_resource_get_handle()
451 return whandle->handle != -1; in v3d_resource_get_handle()
872 struct winsys_handle *whandle, in v3d_resource_from_handle() argument
883 switch (whandle->modifier) { in v3d_resource_from_handle()
894 switch(fourcc_mod_broadcom_mod(whandle->modifier)) { in v3d_resource_from_handle()
898 fourcc_mod_broadcom_param(whandle->modifier); in v3d_resource_from_handle()
903 (long long)whandle->modifier); in v3d_resource_from_handle()
908 switch (whandle->type) { in v3d_resource_from_handle()
910 rsc->bo = v3d_bo_open_name(screen, whandle->handle); in v3d_resource_from_handle()
913 rsc->bo = v3d_bo_open_dmabuf(screen, whandle->handle); in v3d_resource_from_handle()
918 whandle->type); in v3d_resource_from_handle()
927 v3d_setup_slices(rsc, whandle->stride, true); in v3d_resource_from_handle()
930 if (whandle->offset != 0) { in v3d_resource_from_handle()
934 whandle->offset); in v3d_resource_from_handle()
937 rsc->slices[0].offset += whandle->offset; in v3d_resource_from_handle()
943 whandle->offset, in v3d_resource_from_handle()
961 if (rsc->tiled && whandle->stride != slice->stride) { in v3d_resource_from_handle()
970 whandle->stride, in v3d_resource_from_handle()
975 slice->stride = whandle->stride; in v3d_resource_from_handle()