Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_fence.c46 int fence_fd; member
58 uint32_t timestamp, int fence_fd) in fd_fence_populate() argument
63 fence->fence_fd = fence_fd; in fd_fence_populate()
69 if (fence->fence_fd != -1) in fd_fence_destroy()
70 close(fence->fence_fd); in fd_fence_destroy()
91 if (fence->fence_fd != -1) { in fd_fence_finish()
92 int ret = sync_wait(fence->fence_fd, timeout / 1000000); in fd_fence_finish()
103 struct fd_batch *batch, uint32_t timestamp, int fence_fd) in fence_create() argument
117 fence->fence_fd = fence_fd; in fence_create()
136 if (sync_accumulate("freedreno", &batch->in_fence_fd, fence->fence_fd)) { in fd_fence_server_sync()
[all …]
Dfreedreno_fence.h35 uint32_t timestamp, int fence_fd);
/external/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()
90 sync_accumulate("etnaviv", &ctx->in_fence_fd, pfence->fence_fd); in etna_fence_server_sync()
97 return dup(pfence->fence_fd); in etna_screen_fence_get_fd()
101 etna_fence_create(struct pipe_context *pctx, int fence_fd) in etna_fence_create() argument
115 fence->fence_fd = fence_fd; in etna_fence_create()
Detnaviv_fence.h46 etna_fence_create(struct pipe_context *pctx, int fence_fd);
/external/minigbm/cros_gralloc/gralloc0/
Dgralloc0.cc220 int32_t fence_fd, ret; in gralloc0_unlock() local
222 ret = mod->driver->unlock(handle, &fence_fd); in gralloc0_unlock()
226 ret = cros_gralloc_sync_wait(fence_fd); in gralloc0_unlock()
297 int usage, int l, int t, int w, int h, void **vaddr, int fence_fd) in gralloc0_lock_async() argument
325 ret = mod->driver->lock(handle, fence_fd, &rect, map_flags, addr); in gralloc0_lock_async()
331 int *fence_fd) in gralloc0_unlock_async() argument
334 return mod->driver->unlock(handle, fence_fd); in gralloc0_unlock_async()
339 struct android_ycbcr *ycbcr, int fence_fd) in gralloc0_lock_async_ycbcr() argument
369 ret = mod->driver->lock(handle, fence_fd, &rect, map_flags, addr); in gralloc0_lock_async_ycbcr()
/external/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()
/external/minigbm/cros_gralloc/gralloc0/tests/
Dgralloctest.c103 int fence_fd; /* fence file descriptor */ member
116 info->fence_fd = -1; in grallocinfo_init()
222 (info->h) / 2, &info->vaddr, info->fence_fd); in lock_async()
231 ret = module->unlockAsync(module, info->handle, &info->fence_fd); in unlock_async()
241 (info->h) / 2, &info->ycbcr, info->fence_fd); in lock_async_ycbcr()
619 if (rgba_info.fence_fd >= 0) { in test_async()
620 CHECK(sync_wait(rgba_info.fence_fd, 10000) >= 0); in test_async()
621 CHECK(close(rgba_info.fence_fd) == 0); in test_async()
624 if (ycbcr_info.fence_fd >= 0) { in test_async()
625 CHECK(sync_wait(ycbcr_info.fence_fd, 10000) >= 0); in test_async()
[all …]
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_winsys_dri3.c222 int buffer_fd, fence_fd; in dri3_alloc_back_buffer() local
231 fence_fd = xshmfence_alloc_shm(); in dri3_alloc_back_buffer()
232 if (fence_fd < 0) in dri3_alloc_back_buffer()
235 shm_fence = xshmfence_map_shm(fence_fd); in dri3_alloc_back_buffer()
295 fence_fd); in dri3_alloc_back_buffer()
310 close(fence_fd); in dri3_alloc_back_buffer()
464 int fence_fd, *fds; in dri3_get_front_buffer() local
477 fence_fd = xshmfence_alloc_shm(); in dri3_get_front_buffer()
478 if (fence_fd < 0) in dri3_get_front_buffer()
481 shm_fence = xshmfence_map_shm(fence_fd); in dri3_get_front_buffer()
[all …]
/external/mesa3d/src/loader/
Dloader_dri3_helper.c1043 int buffer_fd, fence_fd; in dri3_alloc_render_buffer() local
1050 fence_fd = xshmfence_alloc_shm(); in dri3_alloc_render_buffer()
1051 if (fence_fd < 0) in dri3_alloc_render_buffer()
1054 shm_fence = xshmfence_map_shm(fence_fd); in dri3_alloc_render_buffer()
1127 fence_fd); in dri3_alloc_render_buffer()
1152 close(fence_fd); in dri3_alloc_render_buffer()
1313 int fence_fd; in dri3_get_pixmap_buffer() local
1325 fence_fd = xshmfence_alloc_shm(); in dri3_get_pixmap_buffer()
1326 if (fence_fd < 0) in dri3_get_pixmap_buffer()
1328 shm_fence = xshmfence_map_shm(fence_fd); in dri3_get_pixmap_buffer()
[all …]
/external/mesa3d/src/egl/drivers/dri2/
Dplatform_android.c183 int fence_fd; in droid_window_dequeue_buffer() local
186 &fence_fd)) in droid_window_dequeue_buffer()
206 if (fence_fd >= 0) { in droid_window_dequeue_buffer()
212 sync_wait(fence_fd, timeout); in droid_window_dequeue_buffer()
213 close(fence_fd); in droid_window_dequeue_buffer()
269 int fence_fd = dri2_surf->out_fence_fd; in droid_window_enqueue_buffer() local
272 fence_fd); in droid_window_enqueue_buffer()
292 int fence_fd = dri2_surf->out_fence_fd; in droid_window_cancel_buffer() local
296 dri2_surf->buffer, fence_fd); in droid_window_cancel_buffer()
Degl_dri2.c1421 dri2_surface_set_out_fence_fd( _EGLSurface *surf, int fence_fd) in dri2_surface_set_out_fence_fd() argument
1428 dri2_surf->out_fence_fd = fence_fd; in dri2_surface_set_out_fence_fd()
1458 int fence_fd = -1; in dri2_surf_update_fence_fd() local
1466 fence_fd = dri2_dpy->fence->get_fence_fd(dri2_dpy->dri_screen, in dri2_surf_update_fence_fd()
1470 dri2_surface_set_out_fence_fd(surf, fence_fd); in dri2_surf_update_fence_fd()
/external/mesa3d/src/amd/vulkan/
Dradv_android.c300 int fence_fd = nativeFenceFd >= 0 ? dup(nativeFenceFd) : nativeFenceFd; in radv_AcquireImageANDROID() local
305 .fd = fence_fd, in radv_AcquireImageANDROID()
/external/libdrm/etnaviv/
Detnaviv_cmd_stream.c200 req.fence_fd = in_fence_fd; in flush()
222 *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
/external/mesa3d/src/vulkan/wsi/
Dwsi_common_x11.c954 int fence_fd = xshmfence_alloc_shm(); in x11_image_init() local
955 if (fence_fd < 0) in x11_image_init()
958 image->shm_fence = xshmfence_map_shm(fence_fd); in x11_image_init()
967 fence_fd); in x11_image_init()
975 close(fence_fd); in x11_image_init()
/external/kernel-headers/original/uapi/drm/
Dvirtgpu_drm.h69 __s32 fence_fd; /* in/out fence fd (see VIRTGPU_EXECBUF_FENCE_FD_IN/OUT) */ member
Dmsm_drm.h236 __s32 fence_fd; /* in/out fence fd (see MSM_SUBMIT_FENCE_FD_IN/OUT) */ member
Detnaviv_drm.h197 __s32 fence_fd; /* in/out, fence fd (see ETNA_SUBMIT_FENCE_FD_x) */ member
/external/drm_hwcomposer/
Ddrmdisplaycompositor.cpp314 int fence_fd = -1; in CommitFrame() local
339 fence_fd = layer.acquire_fence.get(); in CommitFrame()
393 if (fence_fd >= 0) { in CommitFrame()
399 ret = drmModeAtomicAddProperty(pset, plane->id(), prop_id, fence_fd); in CommitFrame()
/external/libdrm/freedreno/msm/
Dmsm_drm.h222 __s32 fence_fd; /* in/out fence fd (see MSM_SUBMIT_FENCE_FD_IN/OUT) */ member
Dmsm_ringbuffer.c407 req.fence_fd = in_fence_fd; in msm_ringbuffer_flush()
447 *out_fence_fd = req.fence_fd; in msm_ringbuffer_flush()
/external/libdrm/include/drm/
DREADME127 drm_msm_gem_submit::flags, missing drm_msm_gem_submit::fence_fd.