Home
last modified time | relevance | path

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

123

/external/mesa3d/src/gallium/drivers/iris/
Diris_fence.c68 struct iris_syncobj *syncobj = malloc(sizeof(*syncobj)); in iris_create_syncobj() local
70 if (!syncobj) in iris_create_syncobj()
73 syncobj->handle = gem_syncobj_create(screen->fd, 0); in iris_create_syncobj()
74 assert(syncobj->handle); in iris_create_syncobj()
76 pipe_reference_init(&syncobj->ref, 1); in iris_create_syncobj()
78 return syncobj; in iris_create_syncobj()
82 iris_syncobj_destroy(struct iris_screen *screen, struct iris_syncobj *syncobj) in iris_syncobj_destroy() argument
84 gem_syncobj_destroy(screen->fd, syncobj->handle); in iris_syncobj_destroy()
85 free(syncobj); in iris_syncobj_destroy()
95 struct iris_syncobj *syncobj, in iris_batch_add_syncobj() argument
[all …]
Diris_batch.h249 struct iris_syncobj *syncobj = in iris_batch_get_signal_syncobj() local
251 return syncobj; in iris_batch_get_signal_syncobj()
265 struct iris_syncobj *syncobj = iris_batch_get_signal_syncobj(batch); in iris_batch_reference_signal_syncobj() local
266 iris_syncobj_reference(batch->screen, out_syncobj, syncobj); in iris_batch_reference_signal_syncobj()
Diris_fence.h45 struct iris_syncobj *syncobj,
48 struct iris_syncobj *syncobj,
Diris_fine_fence.c39 iris_syncobj_reference(screen, &fine->syncobj, NULL); in iris_fine_fence_destroy()
55 iris_syncobj_reference(batch->screen, &fine->syncobj, in iris_fine_fence_new()
Diris_query.c66 struct iris_syncobj *syncobj; member
484 iris_syncobj_reference(screen, &query->syncobj, NULL); in iris_destroy_query()
559 iris_batch_reference_signal_syncobj(batch, &q->syncobj); in iris_end_query()
577 iris_batch_reference_signal_syncobj(batch, &q->syncobj); in iris_end_query()
628 if (q->syncobj == iris_batch_get_signal_syncobj(batch)) in iris_get_query_result()
633 iris_wait_syncobj(ctx->screen, q->syncobj, INT64_MAX); in iris_get_query_result()
676 if (q->syncobj == iris_batch_get_signal_syncobj(batch)) in iris_get_query_result_resource()
Diris_fine_fence.h60 struct iris_syncobj *syncobj; member
/external/igt-gpu-tools/tests/
Dsyncobj_wait.c130 syncobj_trigger_delayed(int fd, uint32_t syncobj, uint64_t nsec) in syncobj_trigger_delayed() argument
135 pair->handle = syncobj; in syncobj_trigger_delayed()
318 uint32_t syncobj = syncobj_create(fd, 0); in test_single_wait() local
323 timeline = syncobj_attach_sw_sync(fd, syncobj); in test_single_wait()
328 igt_assert_eq(syncobj_wait_err(fd, &syncobj, 1, 0, flags), expect); in test_single_wait()
330 igt_assert_eq(syncobj_wait_err(fd, &syncobj, 1, short_timeout(), in test_single_wait()
334 igt_assert_eq(syncobj_wait_err(fd, &syncobj, 1, UINT64_MAX, in test_single_wait()
338 syncobj_destroy(fd, syncobj); in test_single_wait()
346 uint32_t syncobj = syncobj_create(fd, 0); in test_wait_delayed_signal() local
352 timer = syncobj_trigger_delayed(fd, syncobj, SHORT_TIME_NSEC); in test_wait_delayed_signal()
[all …]
Dsyncobj_basic.c152 uint32_t syncobj = syncobj_create(fd, LOCAL_SYNCOBJ_CREATE_SIGNALED); in test_create_signaled() local
154 igt_assert_eq(syncobj_wait_err(fd, &syncobj, 1, 0, 0), 0); in test_create_signaled()
156 syncobj_destroy(fd, syncobj); in test_create_signaled()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_fence.c47 uint32_t syncobj; member
71 if (fence->syncobj) in fd_fence_destroy()
72 drmSyncobjDestroy(fd_device_fd(fence->screen->dev), fence->syncobj); in fd_fence_destroy()
105 struct fd_batch *batch, uint32_t timestamp, int fence_fd, int syncobj) in fence_create() argument
120 fence->syncobj = syncobj; in fence_create()
137 uint32_t syncobj; in fd_create_fence_fd() local
140 ret = drmSyncobjFDToHandle(fd_device_fd(ctx->screen->dev), fd, &syncobj); in fd_create_fence_fd()
144 *pfence = fence_create(fd_context(pctx), NULL, 0, -1, syncobj); in fd_create_fence_fd()
173 if (fence->syncobj) { in fd_fence_server_signal()
174 drmSyncobjSignal(fd_device_fd(ctx->screen->dev), &fence->syncobj, 1); in fd_fence_server_signal()
/external/mesa3d/src/gallium/drivers/v3d/
Dv3d_fence.c74 unsigned syncobj; in v3d_fence_finish() local
75 ret = drmSyncobjCreate(screen->fd, 0, &syncobj); in v3d_fence_finish()
82 ret = drmSyncobjImportSyncFile(screen->fd, syncobj, f->fd); in v3d_fence_finish()
92 ret = drmSyncobjWait(screen->fd, &syncobj, 1, abs_timeout, 0, NULL); in v3d_fence_finish()
94 drmSyncobjDestroy(screen->fd, syncobj); in v3d_fence_finish()
/external/mesa3d/src/intel/vulkan/
Danv_queue.c777 uint32_t syncobj; in anv_queue_submit_simple_batch() local
781 syncobj = anv_gem_syncobj_create(device, 0); in anv_queue_submit_simple_batch()
782 if (!syncobj) { in anv_queue_submit_simple_batch()
787 result = anv_queue_submit_add_syncobj(submit, device, syncobj, in anv_queue_submit_simple_batch()
822 if (anv_gem_syncobj_wait(device, &syncobj, 1, in anv_queue_submit_simple_batch()
825 anv_gem_syncobj_destroy(device, syncobj); in anv_queue_submit_simple_batch()
843 anv_gem_syncobj_destroy(device, syncobj); in anv_queue_submit_simple_batch()
987 impl->syncobj, in anv_queue_submit()
1005 impl->syncobj, in anv_queue_submit()
1051 result = anv_queue_submit_add_syncobj(submit, device, impl->syncobj, in anv_queue_submit()
[all …]
/external/libdrm/amdgpu/
Damdgpu.h1479 uint32_t *syncobj);
1492 uint32_t *syncobj);
1504 uint32_t syncobj);
1640 uint32_t syncobj,
1655 uint32_t *syncobj);
1669 uint32_t syncobj,
1684 uint32_t syncobj,
1700 uint32_t syncobj,
1718 uint32_t syncobj,
Damdgpu_cs.c764 uint32_t syncobj, in amdgpu_cs_syncobj_export_sync_file() argument
770 return drmSyncobjExportSyncFile(dev->fd, syncobj, sync_file_fd); in amdgpu_cs_syncobj_export_sync_file()
774 uint32_t syncobj, in amdgpu_cs_syncobj_import_sync_file() argument
780 return drmSyncobjImportSyncFile(dev->fd, syncobj, sync_file_fd); in amdgpu_cs_syncobj_import_sync_file()
784 uint32_t syncobj, in amdgpu_cs_syncobj_export_sync_file2() argument
796 return drmSyncobjExportSyncFile(dev->fd, syncobj, sync_file_fd); in amdgpu_cs_syncobj_export_sync_file2()
803 syncobj, point, flags); in amdgpu_cs_syncobj_export_sync_file2()
813 uint32_t syncobj, in amdgpu_cs_syncobj_import_sync_file2() argument
824 return drmSyncobjImportSyncFile(dev->fd, syncobj, sync_file_fd); in amdgpu_cs_syncobj_import_sync_file2()
832 ret = drmSyncobjTransfer(dev->fd, syncobj, point, in amdgpu_cs_syncobj_import_sync_file2()
/external/mesa3d/src/amd/vulkan/winsys/amdgpu/
Dradv_amdgpu_cs.c1477 const uint32_t *src = syncobj_override ? syncobj_override : counts->syncobj; in radv_amdgpu_cs_alloc_syncobj_chunk()
1478 …struct drm_amdgpu_cs_chunk_sem *syncobj = malloc(sizeof(struct drm_amdgpu_cs_chunk_sem) * counts->… in radv_amdgpu_cs_alloc_syncobj_chunk() local
1479 if (!syncobj) in radv_amdgpu_cs_alloc_syncobj_chunk()
1483 struct drm_amdgpu_cs_chunk_sem *sem = &syncobj[i]; in radv_amdgpu_cs_alloc_syncobj_chunk()
1489 chunk->chunk_data = (uint64_t)(uintptr_t)syncobj; in radv_amdgpu_cs_alloc_syncobj_chunk()
1490 return syncobj; in radv_amdgpu_cs_alloc_syncobj_chunk()
1498 const uint32_t *src = syncobj_override ? syncobj_override : counts->syncobj; in radv_amdgpu_cs_alloc_timeline_syncobj_chunk()
1499 struct drm_amdgpu_cs_chunk_syncobj *syncobj = malloc(sizeof(struct drm_amdgpu_cs_chunk_syncobj) * in radv_amdgpu_cs_alloc_timeline_syncobj_chunk() local
1501 if (!syncobj) in radv_amdgpu_cs_alloc_timeline_syncobj_chunk()
1505 struct drm_amdgpu_cs_chunk_syncobj *sem = &syncobj[i]; in radv_amdgpu_cs_alloc_timeline_syncobj_chunk()
[all …]
Dradv_amdgpu_winsys.h62 uint32_t *syncobj; member
/external/mesa3d/src/gallium/drivers/panfrost/
Dpan_screen.c640 drmSyncobjDestroy(dev->fd, old->syncobj); in panfrost_fence_reference()
663 ret = drmSyncobjWait(dev->fd, &f->syncobj, in panfrost_fence_finish()
687 ret = drmSyncobjExportSyncFile(dev->fd, ctx->syncobj, &fd); in panfrost_fence_create()
693 ret = drmSyncobjCreate(dev->fd, 0, &f->syncobj); in panfrost_fence_create()
699 ret = drmSyncobjImportSyncFile(dev->fd, f->syncobj, fd); in panfrost_fence_create()
705 assert(f->syncobj != ctx->syncobj); in panfrost_fence_create()
712 drmSyncobjDestroy(dev->fd, f->syncobj); in panfrost_fence_create()
Dpan_job.c957 out_sync = ctx->syncobj; in panfrost_batch_submit_ioctl()
1121 panfrost_batch_submit(batch, ctx->syncobj, ctx->syncobj); in panfrost_flush_all_batches()
1127 panfrost_batch_submit(batch, ctx->syncobj, ctx->syncobj); in panfrost_flush_all_batches()
1176 panfrost_batch_submit(access->writer->batch, ctx->syncobj, ctx->syncobj); in panfrost_flush_batches_accessing_bo()
1184 panfrost_batch_submit((*reader)->batch, ctx->syncobj, ctx->syncobj); in panfrost_flush_batches_accessing_bo()
Dpan_context.h89 uint32_t syncobj; member
113 uint32_t syncobj; member
/external/mesa3d/src/intel/common/
Dgen_gem.c38 uint32_t syncobj = create.handle; in gen_gem_supports_syncobj_wait() local
49 .handle = syncobj, in gen_gem_supports_syncobj_wait()
/external/mesa3d/src/amd/vulkan/
Dradv_radeon_winsys.h174 uint32_t *syncobj; member
338 int (*export_syncobj)(struct radeon_winsys *ws, uint32_t syncobj, int *fd);
339 int (*import_syncobj)(struct radeon_winsys *ws, int fd, uint32_t *syncobj);
341 int (*export_syncobj_to_sync_file)(struct radeon_winsys *ws, uint32_t syncobj, int *fd);
344 int (*import_syncobj_from_sync_file)(struct radeon_winsys *ws, uint32_t syncobj, int fd);
Dradv_device.c4052 sizeof(*counts->syncobj) * counts->syncobj_count + in radv_alloc_sem_counts()
4053 (sizeof(*counts->syncobj) + sizeof(*counts->points)) * counts->timeline_syncobj_count); in radv_alloc_sem_counts()
4056 counts->syncobj = (uint32_t*)(counts->points + counts->timeline_syncobj_count); in radv_alloc_sem_counts()
4062 free(counts->syncobj); in radv_alloc_sem_counts()
4075 counts->syncobj[syncobj_idx++] = sems[i]->syncobj; in radv_alloc_sem_counts()
4092 counts->syncobj[non_reset_idx++] = point->syncobj; in radv_alloc_sem_counts()
4101 counts->syncobj[counts->syncobj_count + timeline_idx] = sems[i]->syncobj; in radv_alloc_sem_counts()
4115 counts->syncobj[non_reset_idx++] = part->syncobj; in radv_alloc_sem_counts()
4734 uint32_t *syncobj = (uint32_t*)(points + syncobj_count); in wait_for_submission_timelines_available() local
4743 syncobj[syncobj_idx] = submission->wait_semaphores[i]->syncobj; in wait_for_submission_timelines_available()
[all …]
/external/igt-gpu-tools/benchmarks/
Dgem_busy.c170 struct local_gem_exec_fence syncobj; in loop() local
208 syncobj.handle = syncobj_create(fd); in loop()
209 syncobj.flags = LOCAL_EXEC_FENCE_SIGNAL; in loop()
211 execbuf.cliprects_ptr = to_user_pointer(&syncobj); in loop()
303 .handles = to_user_pointer(&syncobj.handle), in loop()
/external/igt-gpu-tools/tests/i915/
Dgem_exec_fence.c942 static int __syncobj_export(int fd, uint32_t handle, int *syncobj) in __syncobj_export() argument
960 *syncobj = arg.fd; in __syncobj_export()
966 int syncobj; in syncobj_export() local
968 igt_assert_eq(__syncobj_export(fd, handle, &syncobj), 0); in syncobj_export()
970 return syncobj; in syncobj_export()
973 static int __syncobj_import(int fd, int syncobj, uint32_t *handle) in __syncobj_import() argument
985 arg.fd = syncobj; in __syncobj_import()
996 static uint32_t syncobj_import(int fd, int syncobj) in syncobj_import() argument
1000 igt_assert_eq(__syncobj_import(fd, syncobj, &handle), 0); in syncobj_import()
1395 int syncobj[3]; in test_syncobj_channel() local
[all …]
/external/mesa3d/src/panfrost/bifrost/test/
Dbi_submit.c78 uint32_t syncobj = 0; in bit_submit() local
81 ret = drmSyncobjCreate(dev->fd, DRM_SYNCOBJ_CREATE_SIGNALED, &syncobj); in bit_submit()
88 .out_sync = syncobj, in bit_submit()
95 drmSyncobjWait(dev->fd, &syncobj, 1, INT64_MAX, 0, NULL); in bit_submit()
/external/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_cs.h161 uint32_t syncobj; member
200 amdgpu_cs_destroy_syncobj(fence->ws->dev, fence->syncobj); in amdgpu_fence_reference()

123