Lines Matching refs:syncobj

755    uint32_t syncobj;
759 syncobj = anv_gem_syncobj_create(device, 0);
760 if (!syncobj) {
765 result = anv_queue_submit_add_syncobj(queue, submit, syncobj,
801 if (anv_gem_syncobj_wait(device, &syncobj, 1,
804 anv_gem_syncobj_destroy(device, syncobj);
822 anv_gem_syncobj_destroy(device, syncobj);
848 * make copies of the temporary syncobj to ensure they stay alive until we
882 out->syncobj = anv_gem_syncobj_create(device, 0);
883 if (!out->syncobj)
886 int fd = anv_gem_syncobj_export_sync_file(device, in->syncobj);
888 anv_gem_syncobj_destroy(device, out->syncobj);
893 out->syncobj,
897 anv_gem_syncobj_destroy(device, out->syncobj);
909 * - We're dealing with a syncobj semaphore and are using threaded
912 * staled DMA fence. In this case we reset the original syncobj, but make
913 * a clone of the contained DMA fence into another syncobj for submission
931 /* We need to reset syncobj before submission so that they do not
935 * reset the syncobj that i915 is about to see from the submission
939 * syncobj that the submission thread will destroy when it's done with
948 /* Put the fence into a new syncobj so the old one can be reset. */
956 anv_gem_syncobj_destroy(queue->device, template.syncobj);
994 * dma-fence to materialize in the syncobj. This is needed to be able to
1002 &impl->syncobj, &value, 1,
1008 "unable to wait on syncobj to materialize");
1032 impl->syncobj,
1053 impl->syncobj,
1094 * Reset the content of the syncobj so it doesn't contain a previously
1098 anv_gem_syncobj_reset(queue->device, impl->syncobj);
1100 result = anv_queue_submit_add_syncobj(queue, submit, impl->syncobj,
1121 result = anv_queue_submit_add_syncobj(queue, submit, impl->syncobj,
1168 * For the same reason we reset the signaled binary syncobj above, also
1169 * reset the fence's syncobj so that they don't contain a signaled
1172 anv_gem_syncobj_reset(queue->device, impl->syncobj);
1174 result = anv_queue_submit_add_syncobj(queue, submit, impl->syncobj,
1500 fence->permanent.syncobj = anv_gem_syncobj_create(device, create_flags);
1501 if (!fence->permanent.syncobj)
1541 anv_gem_syncobj_destroy(device, impl->syncobj);
1609 anv_gem_syncobj_reset(device, impl->syncobj);
1662 int ret = anv_gem_syncobj_timeline_wait(device, &impl->syncobj,
1677 int ret = anv_gem_syncobj_wait(device, &impl->syncobj, 1, 0, false);
1718 syncobjs[i] = impl->syncobj;
2022 new_impl.syncobj = anv_gem_syncobj_fd_to_handle(device, fd);
2023 if (!new_impl.syncobj)
2030 * syncobj implementation of WaitForFences, we don't use the sync file
2031 * directly but instead import it into a syncobj.
2045 new_impl.syncobj = anv_gem_syncobj_create(device, create_flags);
2046 if (!new_impl.syncobj)
2050 anv_gem_syncobj_import_sync_file(device, new_impl.syncobj, fd)) {
2051 anv_gem_syncobj_destroy(device, new_impl.syncobj);
2053 "syncobj sync file import failed: %m");
2085 /* The sideband payload of the DRM syncobj was incremented when the
2091 uint32_t syncobj,
2101 if (anv_gem_syncobj_timeline_wait(device, &syncobj, &binary_value, 1,
2127 int fd = anv_gem_syncobj_handle_to_fd(device, impl->syncobj);
2136 VkResult result = wait_syncobj_materialize(device, impl->syncobj, pFd);
2140 int fd = anv_gem_syncobj_export_sync_file(device, impl->syncobj);
2187 impl->syncobj = anv_gem_syncobj_create(device, 0);
2188 if (!impl->syncobj)
2200 impl->syncobj = anv_gem_syncobj_create(device, 0);
2201 if (!impl->syncobj)
2205 &impl->syncobj,
2207 anv_gem_syncobj_destroy(device, impl->syncobj);
2267 semaphore->permanent.syncobj = anv_gem_syncobj_create(device, 0);
2268 if (!semaphore->permanent.syncobj) {
2305 anv_gem_syncobj_destroy(device, impl->syncobj);
2416 new_impl.syncobj = anv_gem_syncobj_fd_to_handle(device, fd);
2417 if (!new_impl.syncobj)
2440 .syncobj = anv_gem_syncobj_create(device, create_flags),
2443 if (!new_impl.syncobj)
2447 if (anv_gem_syncobj_import_sync_file(device, new_impl.syncobj, fd)) {
2448 anv_gem_syncobj_destroy(device, new_impl.syncobj);
2450 "syncobj sync file import failed: %m");
2453 * anymore because the associated fence has been put into a syncobj,
2494 VkResult result = wait_syncobj_materialize(device, impl->syncobj, pFd);
2498 fd = anv_gem_syncobj_export_sync_file(device, impl->syncobj);
2501 fd = anv_gem_syncobj_handle_to_fd(device, impl->syncobj);
2510 fd = anv_gem_syncobj_handle_to_fd(device, impl->syncobj);
2555 int ret = anv_gem_syncobj_timeline_query(device, &impl->syncobj, pValue, 1);
2558 return anv_device_set_lost(device, "unable to query timeline syncobj");
2711 handles[handle_count] = impl->syncobj;
2731 anv_device_set_lost(device, "unable to wait on timeline syncobj");
2781 int ret = anv_gem_syncobj_timeline_signal(device, &impl->syncobj,
2785 anv_device_set_lost(device, "unable to signal timeline syncobj");