Home
last modified time | relevance | path

Searched refs:syncobj (Results 1 – 25 of 65) sorted by relevance

123

/third_party/mesa3d/src/gallium/drivers/iris/
Diris_fence.c69 struct iris_syncobj *syncobj = malloc(sizeof(*syncobj)); in iris_create_syncobj() local
71 if (!syncobj) in iris_create_syncobj()
74 syncobj->handle = gem_syncobj_create(fd, 0); in iris_create_syncobj()
75 assert(syncobj->handle); in iris_create_syncobj()
77 pipe_reference_init(&syncobj->ref, 1); in iris_create_syncobj()
79 return syncobj; in iris_create_syncobj()
83 iris_syncobj_destroy(struct iris_bufmgr *bufmgr, struct iris_syncobj *syncobj) in iris_syncobj_destroy() argument
86 gem_syncobj_destroy(fd, syncobj->handle); in iris_syncobj_destroy()
87 free(syncobj); in iris_syncobj_destroy()
91 iris_syncobj_signal(struct iris_bufmgr *bufmgr, struct iris_syncobj *syncobj) in iris_syncobj_signal() argument
[all …]
Diris_batch.h281 struct iris_syncobj *syncobj = in iris_batch_get_signal_syncobj() local
283 return syncobj; in iris_batch_get_signal_syncobj()
297 struct iris_syncobj *syncobj = iris_batch_get_signal_syncobj(batch); in iris_batch_reference_signal_syncobj() local
298 iris_syncobj_reference(batch->screen->bufmgr, out_syncobj, syncobj); in iris_batch_reference_signal_syncobj()
Diris_fence.h46 struct iris_syncobj *syncobj,
49 struct iris_syncobj *syncobj,
Diris_fine_fence.c39 iris_syncobj_reference(screen->bufmgr, &fine->syncobj, NULL); in iris_fine_fence_destroy()
55 iris_syncobj_reference(batch->screen->bufmgr, &fine->syncobj, in iris_fine_fence_new()
Diris_query.c68 struct iris_syncobj *syncobj; member
486 iris_syncobj_reference(screen->bufmgr, &query->syncobj, NULL); in iris_destroy_query()
561 iris_batch_reference_signal_syncobj(batch, &q->syncobj); in iris_end_query()
579 iris_batch_reference_signal_syncobj(batch, &q->syncobj); in iris_end_query()
630 if (q->syncobj == iris_batch_get_signal_syncobj(batch)) in iris_get_query_result()
635 iris_wait_syncobj(screen->bufmgr, q->syncobj, INT64_MAX); in iris_get_query_result()
678 if (q->syncobj == iris_batch_get_signal_syncobj(batch)) in iris_get_query_result_resource()
/third_party/mesa3d/src/gallium/drivers/crocus/
Dcrocus_fence.c66 struct crocus_syncobj *syncobj = malloc(sizeof(*syncobj)); in crocus_create_syncobj() local
68 if (!syncobj) in crocus_create_syncobj()
71 syncobj->handle = gem_syncobj_create(screen->fd, 0); in crocus_create_syncobj()
72 assert(syncobj->handle); in crocus_create_syncobj()
74 pipe_reference_init(&syncobj->ref, 1); in crocus_create_syncobj()
76 return syncobj; in crocus_create_syncobj()
81 struct crocus_syncobj *syncobj) in crocus_syncobj_destroy() argument
83 gem_syncobj_destroy(screen->fd, syncobj->handle); in crocus_syncobj_destroy()
84 free(syncobj); in crocus_syncobj_destroy()
94 struct crocus_syncobj *syncobj, unsigned flags) in crocus_batch_add_syncobj() argument
[all …]
Dcrocus_batch.h280 struct crocus_syncobj *syncobj = in crocus_batch_get_signal_syncobj() local
282 return syncobj; in crocus_batch_get_signal_syncobj()
295 struct crocus_syncobj *syncobj = crocus_batch_get_signal_syncobj(batch); in crocus_batch_reference_signal_syncobj() local
296 crocus_syncobj_reference(batch->screen, out_syncobj, syncobj); in crocus_batch_reference_signal_syncobj()
Dcrocus_fence.h44 struct crocus_syncobj *syncobj,
47 struct crocus_syncobj *syncobj,
Dcrocus_fine_fence.c43 crocus_syncobj_reference(screen, &fine->syncobj, NULL); in crocus_fine_fence_destroy()
59 crocus_syncobj_reference(batch->screen, &fine->syncobj, in crocus_fine_fence_new()
Dcrocus_query.c90 struct crocus_syncobj *syncobj; member
516 crocus_syncobj_reference(screen, &query->syncobj, NULL); in crocus_destroy_query()
602 crocus_batch_reference_signal_syncobj(batch, &q->syncobj); in crocus_end_query()
629 crocus_batch_reference_signal_syncobj(batch, &q->syncobj); in crocus_end_query()
672 if (q->syncobj == crocus_batch_get_signal_syncobj(batch)) in crocus_get_query_result()
678 crocus_wait_syncobj(ctx->screen, q->syncobj, INT64_MAX); in crocus_get_query_result()
684 if (crocus_wait_syncobj(ctx->screen, q->syncobj, wait ? INT64_MAX : 0)) { in crocus_get_query_result()
730 if (q->syncobj == crocus_batch_get_signal_syncobj(batch)) in crocus_get_query_result_resource()
/third_party/mesa3d/src/virtio/vulkan/
Dvn_renderer_virtgpu.c167 struct sim_syncobj *syncobj = calloc(1, sizeof(*syncobj)); in sim_syncobj_create() local
168 if (!syncobj) in sim_syncobj_create()
171 mtx_init(&syncobj->mutex, mtx_plain); in sim_syncobj_create()
172 syncobj->pending_fd = -1; in sim_syncobj_create()
202 (const void *)(uintptr_t)syncobj_handle, syncobj); in sim_syncobj_create()
212 struct sim_syncobj *syncobj = NULL; in sim_syncobj_destroy() local
219 syncobj = entry->data; in sim_syncobj_destroy()
226 if (syncobj) { in sim_syncobj_destroy()
227 if (syncobj->pending_fd >= 0) in sim_syncobj_destroy()
228 close(syncobj->pending_fd); in sim_syncobj_destroy()
[all …]
/third_party/mesa3d/src/vulkan/runtime/
Dvk_drm_syncobj.c56 int err = drmSyncobjCreate(device->drm_fd, flags, &sobj->syncobj); in vk_drm_syncobj_init()
63 err = drmSyncobjTimelineSignal(device->drm_fd, &sobj->syncobj, in vk_drm_syncobj_init()
82 ASSERTED int err = drmSyncobjDestroy(device->drm_fd, sobj->syncobj); in vk_drm_syncobj_finish()
96 err = drmSyncobjTimelineSignal(device->drm_fd, &sobj->syncobj, &value, 1); in vk_drm_syncobj_signal()
98 err = drmSyncobjSignal(device->drm_fd, &sobj->syncobj, 1); in vk_drm_syncobj_signal()
115 int err = drmSyncobjQuery(device->drm_fd, &sobj->syncobj, value, 1); in vk_drm_syncobj_get_value()
131 int err = drmSyncobjReset(device->drm_fd, &sobj->syncobj, 1); in vk_drm_syncobj_reset()
143 uint32_t handle = to_drm_syncobj(sync)->syncobj; in sync_has_sync_file()
243 handles[j] = to_drm_syncobj(waits[i].sync)->syncobj; in vk_drm_syncobj_wait_many()
308 err = drmSyncobjDestroy(device->drm_fd, sobj->syncobj); in vk_drm_syncobj_import_opaque_fd()
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_fence.c109 if (fence->syncobj) in fd_fence_destroy()
110 drmSyncobjDestroy(fd_device_fd(fence->screen->dev), fence->syncobj); in fd_fence_destroy()
162 int syncobj) in fence_create() argument
180 fence->syncobj = syncobj; in fence_create()
198 uint32_t syncobj; in fd_create_fence_fd() local
201 ret = drmSyncobjFDToHandle(fd_device_fd(ctx->screen->dev), fd, &syncobj); in fd_create_fence_fd()
205 *pfence = fence_create(fd_context(pctx), NULL, -1, syncobj); in fd_create_fence_fd()
243 if (fence->syncobj) { in fd_fence_server_signal()
244 drmSyncobjSignal(fd_device_fd(ctx->screen->dev), &fence->syncobj, 1); in fd_fence_server_signal()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_device.c125 panvk_queue_transfer_sync(struct panvk_queue *queue, uint32_t syncobj) in panvk_queue_transfer_sync() argument
140 handle.handle = syncobj; in panvk_queue_transfer_sync()
159 in_fences[(*nr_in_fences)++] = op->event->syncobj; in panvk_add_wait_event_syncobjs()
175 panvk_queue_transfer_sync(queue, op->event->syncobj); in panvk_signal_event_syncobjs()
182 .handles = (uint64_t) (uintptr_t) &event->syncobj, in panvk_signal_event_syncobjs()
213 struct vk_drm_syncobj *syncobj = in panvk_per_arch() local
216 semaphores[i + 1] = syncobj->syncobj; in panvk_per_arch()
292 struct vk_drm_syncobj *syncobj = in panvk_per_arch() local
295 panvk_queue_transfer_sync(queue, syncobj->syncobj); in panvk_per_arch()
/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3d_fence.c81 unsigned syncobj; in v3d_fence_wait() local
83 ret = drmSyncobjCreate(screen->fd, 0, &syncobj); in v3d_fence_wait()
90 ret = drmSyncobjImportSyncFile(screen->fd, syncobj, fence->fd); in v3d_fence_wait()
100 ret = drmSyncobjWait(screen->fd, &syncobj, 1, abs_timeout, 0, NULL); in v3d_fence_wait()
102 drmSyncobjDestroy(screen->fd, syncobj); in v3d_fence_wait()
/third_party/libdrm/amdgpu/
Damdgpu.h1525 uint32_t *syncobj);
1538 uint32_t *syncobj);
1550 uint32_t syncobj);
1686 uint32_t syncobj,
1701 uint32_t *syncobj);
1715 uint32_t syncobj,
1730 uint32_t syncobj,
1746 uint32_t syncobj,
1764 uint32_t syncobj,
Damdgpu_cs.c786 uint32_t syncobj, in amdgpu_cs_syncobj_export_sync_file() argument
792 return drmSyncobjExportSyncFile(dev->fd, syncobj, sync_file_fd); in amdgpu_cs_syncobj_export_sync_file()
796 uint32_t syncobj, in amdgpu_cs_syncobj_import_sync_file() argument
802 return drmSyncobjImportSyncFile(dev->fd, syncobj, sync_file_fd); in amdgpu_cs_syncobj_import_sync_file()
806 uint32_t syncobj, in amdgpu_cs_syncobj_export_sync_file2() argument
818 return drmSyncobjExportSyncFile(dev->fd, syncobj, sync_file_fd); in amdgpu_cs_syncobj_export_sync_file2()
825 syncobj, point, flags); in amdgpu_cs_syncobj_export_sync_file2()
835 uint32_t syncobj, in amdgpu_cs_syncobj_import_sync_file2() argument
846 return drmSyncobjImportSyncFile(dev->fd, syncobj, sync_file_fd); in amdgpu_cs_syncobj_import_sync_file2()
854 ret = drmSyncobjTransfer(dev->fd, syncobj, point, in amdgpu_cs_syncobj_import_sync_file2()
/third_party/mesa3d/src/amd/vulkan/winsys/amdgpu/
Dradv_amdgpu_cs.c90 uint32_t *syncobj; member
1263 ret = amdgpu_cs_syncobj_export_sync_file(ctx->ws->dev, sem_info->wait.syncobj[i], &fd2); in radv_amdgpu_cs_submit_zero()
1275 ctx->ws->dev, sem_info->wait.syncobj[i + sem_info->wait.syncobj_count], in radv_amdgpu_cs_submit_zero()
1284 ctx->ws->dev, &sem_info->wait.syncobj[i + sem_info->wait.syncobj_count], &point, 1, in radv_amdgpu_cs_submit_zero()
1305 uint32_t dst_handle = sem_info->signal.syncobj[i]; in radv_amdgpu_cs_submit_zero()
1326 sem_info->signal.syncobj[i + sem_info->signal.syncobj_count], in radv_amdgpu_cs_submit_zero()
1387 wait_syncobj[wait_idx] = ((struct vk_drm_syncobj *)waits[i].sync)->syncobj; in radv_amdgpu_winsys_cs_submit()
1397 signal_syncobj[signal_idx] = ((struct vk_drm_syncobj *)signals[i].sync)->syncobj; in radv_amdgpu_winsys_cs_submit()
1414 .syncobj = wait_syncobj, in radv_amdgpu_winsys_cs_submit()
1421 .syncobj = signal_syncobj, in radv_amdgpu_winsys_cs_submit()
[all …]
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_drm.c422 uint32_t syncobj = -1; in tu_syncobj_from_vk_sync() local
424 syncobj = to_tu_timeline_sync(sync)->syncobj; in tu_syncobj_from_vk_sync()
426 syncobj = vk_sync_as_drm_syncobj(sync)->syncobj; in tu_syncobj_from_vk_sync()
429 assert(syncobj != -1); in tu_syncobj_from_vk_sync()
431 return syncobj; in tu_syncobj_from_vk_sync()
445 int err = drmSyncobjCreate(device->fd, flags, &sync->syncobj); in tu_timeline_sync_init()
465 ASSERTED int err = drmSyncobjDestroy(dev->fd, sync->syncobj); in tu_timeline_sync_finish()
476 int err = drmSyncobjReset(dev->fd, &sync->syncobj, 1); in tu_timeline_sync_reset()
544 handles[submit_count] = sync->syncobj; in tu_timeline_sync_wait()
1049 submission_data->syncobj = in tu_queue_submit_locked()
[all …]
Dtu_drm.h66 uint32_t syncobj; member
107 tu_device_wait_u_trace(struct tu_device *dev, struct tu_u_trace_syncobj *syncobj);
/third_party/mesa3d/src/gallium/drivers/panfrost/
Dpan_screen.c786 drmSyncobjDestroy(dev->fd, old->syncobj); in panfrost_fence_reference()
799 drmSyncobjExportSyncFile(dev->fd, fence->syncobj, &fd); in panfrost_fence_get_fd()
819 ret = drmSyncobjWait(dev->fd, &fence->syncobj, in panfrost_fence_finish()
843 ret = drmSyncobjExportSyncFile(dev->fd, ctx->syncobj, &fd); in panfrost_fence_create()
849 ret = drmSyncobjCreate(dev->fd, 0, &f->syncobj); in panfrost_fence_create()
855 ret = drmSyncobjImportSyncFile(dev->fd, f->syncobj, fd); in panfrost_fence_create()
861 assert(f->syncobj != ctx->syncobj); in panfrost_fence_create()
868 drmSyncobjDestroy(dev->fd, f->syncobj); in panfrost_fence_create()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_queue.c241 uint32_t syncobj = vk_sync_as_drm_syncobj(query->perf.last_job_sync)->syncobj; in handle_end_query_cpu_job() local
243 syncobj, fd); in handle_end_query_cpu_job()
493 uint32_t syncobj = vk_sync_as_drm_syncobj(waits[i].sync)->syncobj; in process_waits() local
497 syncobj, &wait_fd); in process_waits()
553 uint32_t syncobj = vk_sync_as_drm_syncobj(signals[i].sync)->syncobj; in process_signals() local
555 syncobj, fd); in process_signals()
624 vk_sync_as_drm_syncobj(sync_info->waits[i].sync)->syncobj; in set_in_syncs()
667 vk_sync_as_drm_syncobj(sync_info->signals[i].sync)->syncobj; in set_out_syncs()
/third_party/mesa3d/src/intel/common/
Dintel_gem.c38 uint32_t syncobj = create.handle; in intel_gem_supports_syncobj_wait() local
49 .handle = syncobj, in intel_gem_supports_syncobj_wait()
/third_party/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_cs.h169 uint32_t syncobj; member
208 amdgpu_cs_destroy_syncobj(fence->ws->dev, fence->syncobj); in amdgpu_fence_reference()
Damdgpu_cs.c67 r = amdgpu_cs_import_syncobj(ws->dev, fd, &fence->syncobj); in amdgpu_fence_import_syncobj()
93 int r = amdgpu_cs_create_syncobj(ws->dev, &fence->syncobj); in amdgpu_fence_import_sync_file()
99 r = amdgpu_cs_syncobj_import_sync_file(ws->dev, fence->syncobj, fd); in amdgpu_fence_import_sync_file()
101 amdgpu_cs_destroy_syncobj(ws->dev, fence->syncobj); in amdgpu_fence_import_sync_file()
121 r = amdgpu_cs_syncobj_export_sync_file(ws->dev, fence->syncobj, &fd); in amdgpu_fence_export_sync_file()
140 uint32_t syncobj; in amdgpu_export_signalled_sync_file() local
144 &syncobj); in amdgpu_export_signalled_sync_file()
149 r = amdgpu_cs_syncobj_export_sync_file(ws->dev, syncobj, &fd); in amdgpu_export_signalled_sync_file()
154 amdgpu_cs_destroy_syncobj(ws->dev, syncobj); in amdgpu_export_signalled_sync_file()
199 if (amdgpu_cs_syncobj_wait(afence->ws->dev, &afence->syncobj, 1, in amdgpu_fence_wait()
[all …]

123