Home
last modified time | relevance | path

Searched refs:fence_fd (Results 1 – 25 of 40) sorted by relevance

12

/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_fence.c41 int fence_fd; member
48 if (fence->fence_fd != -1) in etna_fence_destroy()
49 close(fence->fence_fd); in etna_fence_destroy()
68 if (fence->fence_fd != -1) in etna_screen_fence_finish()
69 return !sync_wait(fence->fence_fd, timeout / 1000000); in etna_screen_fence_finish()
92 if (pfence->fence_fd != -1) in etna_fence_server_sync()
93 sync_accumulate("etnaviv", &ctx->in_fence_fd, pfence->fence_fd); in etna_fence_server_sync()
100 return os_dupfd_cloexec(pfence->fence_fd); in etna_screen_fence_get_fd()
104 etna_fence_create(struct pipe_context *pctx, int fence_fd) in etna_fence_create() argument
117 fence->fence_fd = fence_fd; in etna_fence_create()
Detnaviv_fence.h47 etna_fence_create(struct pipe_context *pctx, int fence_fd);
/third_party/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_fence.c108 close(fence->submit_fence.fence_fd); in fd_fence_destroy()
150 int ret = sync_wait(fence->submit_fence.fence_fd, timeout / 1000000); in fd_fence_finish()
161 fence_create(struct fd_context *ctx, struct fd_batch *batch, int fence_fd, in fence_create() argument
178 fence->submit_fence.fence_fd = fence_fd; in fence_create()
179 fence->submit_fence.use_fence_fd = (fence_fd != -1); in fence_create()
232 if (sync_accumulate("freedreno", &ctx->in_fence_fd, fence->submit_fence.fence_fd)) { in fd_fence_server_sync()
261 return os_dupfd_cloexec(fence->submit_fence.fence_fd); in fd_fence_get_fd()
/third_party/mesa3d/src/egl/drivers/dri2/
Dplatform_ohos.c211 int fence_fd; in ohos_window_dequeue_buffer() local
214 &fence_fd)) in ohos_window_dequeue_buffer()
234 if (fence_fd >= 0) { in ohos_window_dequeue_buffer()
240 sync_wait(fence_fd, timeout); in ohos_window_dequeue_buffer()
241 close(fence_fd); in ohos_window_dequeue_buffer()
294 int fence_fd = dri2_surf->out_fence_fd; in ohos_window_enqueue_buffer() local
296 ANativeWindow_queueBuffer(dri2_surf->window, dri2_surf->buffer, fence_fd); in ohos_window_enqueue_buffer()
315 int fence_fd = dri2_surf->out_fence_fd; in ohos_window_cancel_buffer() local
319 fence_fd); in ohos_window_cancel_buffer()
922 ohos_display_shared_buffer(__DRIdrawable *driDrawable, int fence_fd, in ohos_display_shared_buffer() argument
[all …]
Dplatform_android.c467 int fence_fd; in droid_window_dequeue_buffer() local
470 &fence_fd)) in droid_window_dequeue_buffer()
490 if (fence_fd >= 0) { in droid_window_dequeue_buffer()
496 sync_wait(fence_fd, timeout); in droid_window_dequeue_buffer()
497 close(fence_fd); in droid_window_dequeue_buffer()
551 int fence_fd = dri2_surf->out_fence_fd; in droid_window_enqueue_buffer() local
553 ANativeWindow_queueBuffer(dri2_surf->window, dri2_surf->buffer, fence_fd); in droid_window_enqueue_buffer()
572 int fence_fd = dri2_surf->out_fence_fd; in droid_window_cancel_buffer() local
576 fence_fd); in droid_window_cancel_buffer()
1385 droid_display_shared_buffer(__DRIdrawable *driDrawable, int fence_fd, in droid_display_shared_buffer() argument
[all …]
/third_party/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_fence.c63 int32_t fence_fd; member
200 fence->fence_fd = fd; in vmw_fence_create()
238 if (vfence->fence_fd != -1) in vmw_fence_destroy()
239 close(vfence->fence_fd); in vmw_fence_destroy()
361 ret = sync_wait(vfence->fence_fd, timeout / 1000000); in vmw_fence_finish()
403 return vfence->fence_fd; in vmw_fence_get_fd()
/third_party/mesa3d/src/gallium/auxiliary/vl/
Dvl_winsys_dri3.c226 int buffer_fd, fence_fd; in dri3_alloc_back_buffer() local
234 fence_fd = xshmfence_alloc_shm(); in dri3_alloc_back_buffer()
235 if (fence_fd < 0) in dri3_alloc_back_buffer()
238 shm_fence = xshmfence_map_shm(fence_fd); in dri3_alloc_back_buffer()
296 fence_fd); in dri3_alloc_back_buffer()
311 close(fence_fd); in dri3_alloc_back_buffer()
466 int fence_fd, *fds; in dri3_get_front_buffer() local
479 fence_fd = xshmfence_alloc_shm(); in dri3_get_front_buffer()
480 if (fence_fd < 0) in dri3_get_front_buffer()
483 shm_fence = xshmfence_map_shm(fence_fd); in dri3_get_front_buffer()
[all …]
/third_party/mesa3d/src/intel/vulkan/
Danv_android.c831 int semaphore_fd = -1, fence_fd = -1; in anv_AcquireImageANDROID() local
838 fence_fd = dup(nativeFenceFd); in anv_AcquireImageANDROID()
839 if (fence_fd < 0) { in anv_AcquireImageANDROID()
848 fence_fd = nativeFenceFd; in anv_AcquireImageANDROID()
874 .fd = fence_fd, in anv_AcquireImageANDROID()
878 fence_fd = -1; /* ANV took ownership */ in anv_AcquireImageANDROID()
883 if (fence_fd >= 0) in anv_AcquireImageANDROID()
884 close(fence_fd); in anv_AcquireImageANDROID()
/third_party/mesa3d/src/amd/vulkan/
Dradv_android.c397 int semaphore_fd = -1, fence_fd = -1; in radv_AcquireImageANDROID() local
404 fence_fd = dup(nativeFenceFd); in radv_AcquireImageANDROID()
405 if (fence_fd < 0) { in radv_AcquireImageANDROID()
414 fence_fd = nativeFenceFd; in radv_AcquireImageANDROID()
440 .fd = fence_fd, in radv_AcquireImageANDROID()
444 fence_fd = -1; /* RADV took ownership */ in radv_AcquireImageANDROID()
449 if (fence_fd >= 0) in radv_AcquireImageANDROID()
450 close(fence_fd); in radv_AcquireImageANDROID()
/third_party/weston/libweston/
Dlinux-explicit-synchronization.c44 fd_clear(&buffer_release->fence_fd); in destroy_linux_buffer_release()
135 buffer_release->fence_fd = -1; in linux_surface_synchronization_get_release()
/third_party/mesa3d/src/virtio/vulkan/
Dvn_android.c566 int fence_fd = -1; in vn_AcquireImageANDROID() local
570 fence_fd = os_dupfd_cloexec(nativeFenceFd); in vn_AcquireImageANDROID()
571 if (fence_fd < 0) { in vn_AcquireImageANDROID()
580 fence_fd = nativeFenceFd; in vn_AcquireImageANDROID()
607 .fd = fence_fd, in vn_AcquireImageANDROID()
611 fence_fd = -1; in vn_AcquireImageANDROID()
616 if (fence_fd >= 0) in vn_AcquireImageANDROID()
617 close(fence_fd); in vn_AcquireImageANDROID()
/third_party/mesa3d/src/loader/
Dloader_dri3_helper.c1360 int buffer_fds[4], fence_fd; in dri3_alloc_render_buffer() local
1371 fence_fd = xshmfence_alloc_shm(); in dri3_alloc_render_buffer()
1372 if (fence_fd < 0) in dri3_alloc_render_buffer()
1375 shm_fence = xshmfence_map_shm(fence_fd); in dri3_alloc_render_buffer()
1595 fence_fd); in dri3_alloc_render_buffer()
1624 close(fence_fd); in dri3_alloc_render_buffer()
1838 int fence_fd; in dri3_get_pixmap_buffer() local
1850 fence_fd = xshmfence_alloc_shm(); in dri3_get_pixmap_buffer()
1851 if (fence_fd < 0) in dri3_get_pixmap_buffer()
1853 shm_fence = xshmfence_map_shm(fence_fd); in dri3_get_pixmap_buffer()
[all …]
/third_party/libdrm/etnaviv/
Detnaviv_cmd_stream.c199 req.fence_fd = in_fence_fd; in flush()
221 *out_fence_fd = req.fence_fd; in flush()
Detnaviv_drm.h197 __s32 fence_fd; /* in/out, fence fd (see ETNA_SUBMIT_FENCE_FD_x) */ member
/third_party/mesa3d/src/freedreno/vulkan/
Dmsm_kgsl.h797 int fence_fd; /* Fence to signal */ member
1203 int fence_fd; member
1224 int fence_fd; member
Dtu_android.c498 int fence_fd = nativeFenceFd >= 0 ? os_dupfd_cloexec(nativeFenceFd) : nativeFenceFd; in tu_AcquireImageANDROID() local
503 .fd = fence_fd, in tu_AcquireImageANDROID()
/third_party/mesa3d/src/etnaviv/drm/
Detnaviv_cmd_stream.c232 req.fence_fd = in_fence_fd; in etna_cmd_stream_flush()
262 *out_fence_fd = req.fence_fd; in etna_cmd_stream_flush()
/third_party/libdrm/include/drm/
Dvirtgpu_drm.h69 __s32 fence_fd; /* in/out fence fd (see VIRTGPU_EXECBUF_FENCE_FD_IN/OUT) */ member
Dmsm_drm.h223 __s32 fence_fd; /* in/out fence fd (see MSM_SUBMIT_FENCE_FD_IN/OUT) */ member
/third_party/mesa3d/src/freedreno/drm/
Dmsm_ringbuffer.c354 req.fence_fd = in_fence_fd; in msm_submit_flush()
376 out_fence->fence_fd = req.fence_fd; in msm_submit_flush()
Dmsm_ringbuffer_sp.c340 req.fence_fd = msm_submit->in_fence_fd; in flush_submit_list()
389 msm_submit->out_fence->fence_fd = req.fence_fd; in flush_submit_list()
/third_party/mesa3d/include/drm-uapi/
Dvirtgpu_drm.h73 __s32 fence_fd; /* in/out fence fd (see VIRTGPU_EXECBUF_FENCE_FD_IN/OUT) */ member
Detnaviv_drm.h208 __s32 fence_fd; /* in/out, fence fd (see ETNA_SUBMIT_FENCE_FD_x) */ member
Dmsm_drm.h261 __s32 fence_fd; /* in/out fence fd (see MSM_SUBMIT_FENCE_FD_IN/OUT) */ member
/third_party/mesa3d/src/vulkan/wsi/
Dwsi_common_x11.c1417 int fence_fd; in x11_image_init() local
1504 fence_fd = xshmfence_alloc_shm(); in x11_image_init()
1505 if (fence_fd < 0) in x11_image_init()
1508 image->shm_fence = xshmfence_map_shm(fence_fd); in x11_image_init()
1517 fence_fd); in x11_image_init()
1525 close(fence_fd); in x11_image_init()

12