Home
last modified time | relevance | path

Searched refs:semaphore (Results 1 – 25 of 383) sorted by relevance

12345678910>>...16

/third_party/mesa3d/src/vulkan/runtime/
Dvk_semaphore.c127 struct vk_semaphore *semaphore; in vk_common_CreateSemaphore() local
167 semaphore = vk_object_zalloc(device, pAllocator, size, in vk_common_CreateSemaphore()
169 if (semaphore == NULL) in vk_common_CreateSemaphore()
172 semaphore->type = semaphore_type; in vk_common_CreateSemaphore()
180 VkResult result = vk_sync_init(device, &semaphore->permanent, in vk_common_CreateSemaphore()
183 vk_object_free(device, pAllocator, semaphore); in vk_common_CreateSemaphore()
187 *pSemaphore = vk_semaphore_to_handle(semaphore); in vk_common_CreateSemaphore()
194 struct vk_semaphore *semaphore) in vk_semaphore_reset_temporary() argument
196 if (semaphore->temporary == NULL) in vk_semaphore_reset_temporary()
199 vk_sync_destroy(device, semaphore->temporary); in vk_semaphore_reset_temporary()
[all …]
Dvk_semaphore.h65 struct vk_semaphore *semaphore);
68 vk_semaphore_get_active_sync(struct vk_semaphore *semaphore) in vk_semaphore_get_active_sync() argument
70 return semaphore->temporary ? semaphore->temporary : &semaphore->permanent; in vk_semaphore_get_active_sync()
Dvk_android.c37 VkSemaphore semaphore, in vk_common_AcquireImageANDROID() argument
55 if (semaphore != VK_NULL_HANDLE && fence != VK_NULL_HANDLE) { in vk_common_AcquireImageANDROID()
67 } else if (semaphore != VK_NULL_HANDLE) { in vk_common_AcquireImageANDROID()
77 if (semaphore != VK_NULL_HANDLE) { in vk_common_AcquireImageANDROID()
80 .semaphore = semaphore, in vk_common_AcquireImageANDROID()
135 .semaphore = pWaitSemaphores[i], in vk_common_QueueSignalReleaseImageANDROID()
/third_party/openGLES/extensions/NV/
DNV_timeline_semaphore.txt43 a semaphore type to the semaphore object. In OpenGL, timeline semaphore
51 void SemaphoreParameterivNV(uint semaphore,
55 void GetSemaphoreParameterivNV(uint semaphore,
93 returns <n> previously unused semaphore names in <semaphores>.
99 Semaphore parameters control the type of the semaphore and how
100 semaphore wait and signal operations behave.
101 Table 4.3 defines which parameters are available for a semaphore
105 void SemaphoreParameterivNV(uint semaphore,
111 void SemaphoreParameterui64vEXT(uint semaphore,
115 <semaphore> is the name of the semaphore object on which the
[all …]
/third_party/vk-gl-cts/framework/delibs/dethread/unix/
DdeNamedSemaphoreUnix.c36 sem_t* semaphore; member
59 sem->semaphore = sem_open(name, O_CREAT|O_EXCL, mode, initialValue); in deSemaphore_create()
61 if (sem->semaphore == SEM_FAILED) in deSemaphore_create()
70 void deSemaphore_destroy (deSemaphore semaphore) in deSemaphore_destroy() argument
72 NamedSemaphore* sem = (NamedSemaphore*)semaphore; in deSemaphore_destroy()
78 res = sem_close(sem->semaphore); in deSemaphore_destroy()
86 void deSemaphore_increment (deSemaphore semaphore) in deSemaphore_increment() argument
88 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore; in deSemaphore_increment()
94 void deSemaphore_decrement (deSemaphore semaphore) in deSemaphore_decrement() argument
96 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore; in deSemaphore_decrement()
[all …]
DdeSemaphoreMach.c49 void deSemaphore_destroy (deSemaphore semaphore) in deSemaphore_destroy() argument
51 semaphore_t sem = (semaphore_t)semaphore; in deSemaphore_destroy()
57 void deSemaphore_increment (deSemaphore semaphore) in deSemaphore_increment() argument
59 semaphore_t sem = (semaphore_t)semaphore; in deSemaphore_increment()
65 void deSemaphore_decrement (deSemaphore semaphore) in deSemaphore_decrement() argument
67 semaphore_t sem = (semaphore_t)semaphore; in deSemaphore_decrement()
73 deBool deSemaphore_tryDecrement (deSemaphore semaphore) in deSemaphore_tryDecrement() argument
75 semaphore_t sem = (semaphore_t)semaphore; in deSemaphore_tryDecrement()
DdeSemaphoreUnix.c53 void deSemaphore_destroy (deSemaphore semaphore) in deSemaphore_destroy() argument
55 sem_t* sem = (sem_t*)semaphore; in deSemaphore_destroy()
61 void deSemaphore_increment (deSemaphore semaphore) in deSemaphore_increment() argument
63 sem_t* sem = (sem_t*)semaphore; in deSemaphore_increment()
69 void deSemaphore_decrement (deSemaphore semaphore) in deSemaphore_decrement() argument
71 sem_t* sem = (sem_t*)semaphore; in deSemaphore_decrement()
77 deBool deSemaphore_tryDecrement (deSemaphore semaphore) in deSemaphore_tryDecrement() argument
79 sem_t* sem = (sem_t*)semaphore; in deSemaphore_tryDecrement()
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
DVkSemaphoreExternalLinux.hpp186 semaphore->wait(); in wait()
191 return semaphore->tryWait(); in tryWait()
196 semaphore->signal(); in signal()
202 if(semaphore) in unmapRegion()
204 if(semaphore->deref()) in unmapRegion()
206 semaphore->~SharedSemaphore(); in unmapRegion()
208 memfd.unmap(semaphore, sw::memoryPageSize()); in unmapRegion()
210 semaphore = nullptr; in unmapRegion()
224 semaphore = reinterpret_cast<SharedSemaphore *>(addr); in mapRegion()
227 new(semaphore) SharedSemaphore(initialValue); in mapRegion()
[all …]
DVkSemaphore.hpp43 static inline Semaphore *Cast(VkSemaphore semaphore) in Cast() argument
45 return static_cast<Semaphore *>(static_cast<void *>(semaphore)); in Cast()
193 Semaphore *semaphore = vk::Cast(object); in DynamicCast() local
194 if(semaphore == nullptr) in DynamicCast()
202 if(semaphore->getSemaphoreType() != VK_SEMAPHORE_TYPE_BINARY) in DynamicCast()
209 if(semaphore->getSemaphoreType() != VK_SEMAPHORE_TYPE_TIMELINE) in DynamicCast()
214 return static_cast<T *>(semaphore); in DynamicCast()
/third_party/skia/third_party/externals/dng_sdk/source/
Ddng_pthread.cpp62 HANDLE semaphore; member
184 HANDLE semaphore = ::TlsGetValue(thread_wait_sema_TLS_index); in GetThreadSemaphore() local
185 if (semaphore == NULL) in GetThreadSemaphore()
187 semaphore = ::CreateSemaphore(NULL, 0, 1, NULL); in GetThreadSemaphore()
188 ::TlsSetValue(thread_wait_sema_TLS_index, semaphore); in GetThreadSemaphore()
191 return semaphore; in GetThreadSemaphore()
198 HANDLE semaphore = (HANDLE)::TlsGetValue(thread_wait_sema_TLS_index); in FreeThreadSemaphore() local
200 if (semaphore != NULL) in FreeThreadSemaphore()
203 ::CloseHandle(semaphore); in FreeThreadSemaphore()
577 HANDLE semaphore = GetThreadSemaphore(); in cond_wait_internal() local
[all …]
/third_party/skia/src/gpu/vk/
DGrVkSemaphore.cpp25 VkSemaphore semaphore = VK_NULL_HANDLE; in Make() local
28 &semaphore)); in Make()
33 return std::unique_ptr<GrVkSemaphore>(new GrVkSemaphore(gpu, semaphore, false, false, isOwned)); in Make()
37 VkSemaphore semaphore, in MakeWrapped() argument
40 if (VK_NULL_HANDLE == semaphore) { in MakeWrapped()
46 return std::unique_ptr<GrVkSemaphore>(new GrVkSemaphore(gpu, semaphore, prohibitSignal, in MakeWrapped()
51 GrVkSemaphore::GrVkSemaphore(GrVkGpu* gpu, VkSemaphore semaphore, bool prohibitSignal, in GrVkSemaphore() argument
53 fResource = new Resource(gpu, semaphore, prohibitSignal, prohibitWait, isOwned); in GrVkSemaphore()
71 backendSemaphore.initVulkan(fResource->semaphore()); in backendSemaphore()
/third_party/vk-gl-cts/framework/delibs/dethread/win32/
DdeSemaphoreWin32.c51 void deSemaphore_destroy (deSemaphore semaphore) in deSemaphore_destroy() argument
53 HANDLE handle = (HANDLE)semaphore; in deSemaphore_destroy()
57 void deSemaphore_increment (deSemaphore semaphore) in deSemaphore_increment() argument
59 HANDLE handle = (HANDLE)semaphore; in deSemaphore_increment()
65 void deSemaphore_decrement (deSemaphore semaphore) in deSemaphore_decrement() argument
67 HANDLE handle = (HANDLE)semaphore; in deSemaphore_decrement()
73 deBool deSemaphore_tryDecrement (deSemaphore semaphore) in deSemaphore_tryDecrement() argument
75 HANDLE handle = (HANDLE)semaphore; in deSemaphore_tryDecrement()
/third_party/openGLES/extensions/NVX/
DNVX_progress_fence.txt46 GPU command streams. A semaphore type called "progress fence" is
47 derived from the GL semaphore. The progress fence semaphore is
49 created semaphore object. Like other semaphores, these are signaled
51 stream with an associated fence value that is written to the semaphore
55 This blocks the GPU until the progress fence semaphore reaches or exceeds the
96 creates a named progress fence semaphore object.
103 Progress fence operations can be performed on named semaphore objects. The
119 If a value in <semaphoreArray> is not the name of a semaphore object,
138 If a value in <semaphoreArray> is not the name of a semaphore object,
151 If a value in <semaphoreArray> is not the name of a semaphore object,
[all …]
/third_party/mesa3d/src/virtio/venus-protocol/
Dvn_protocol_driver_semaphore.h260 size += vn_sizeof_VkSemaphore(&val->semaphore); in vn_sizeof_VkSemaphoreSignalInfo_self()
288 vn_encode_VkSemaphore(enc, &val->semaphore); in vn_encode_VkSemaphoreSignalInfo_self()
374 static inline size_t vn_sizeof_vkDestroySemaphore(VkDevice device, VkSemaphore semaphore, const VkA… in vn_sizeof_vkDestroySemaphore() argument
381 cmd_size += vn_sizeof_VkSemaphore(&semaphore); in vn_sizeof_vkDestroySemaphore()
389 …encoder *enc, VkCommandFlagsEXT cmd_flags, VkDevice device, VkSemaphore semaphore, const VkAllocat… in vn_encode_vkDestroySemaphore() argument
397 vn_encode_VkSemaphore(enc, &semaphore); in vn_encode_vkDestroySemaphore()
402 static inline size_t vn_sizeof_vkDestroySemaphore_reply(VkDevice device, VkSemaphore semaphore, con… in vn_sizeof_vkDestroySemaphore_reply() argument
414 …Semaphore_reply(struct vn_cs_decoder *dec, VkDevice device, VkSemaphore semaphore, const VkAllocat… in vn_decode_vkDestroySemaphore_reply() argument
425 static inline size_t vn_sizeof_vkGetSemaphoreCounterValue(VkDevice device, VkSemaphore semaphore, u… in vn_sizeof_vkGetSemaphoreCounterValue() argument
432 cmd_size += vn_sizeof_VkSemaphore(&semaphore); in vn_sizeof_vkGetSemaphoreCounterValue()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/external_semaphore/
DSemaphoreServiceFD.cpp72 VkSemaphore semaphore = VK_NULL_HANDLE; in ImportSemaphore() local
79 mDevice->fn.CreateSemaphore(mDevice->GetVkDevice(), &info, nullptr, &*semaphore), in ImportSemaphore()
85 importSemaphoreFdInfo.semaphore = semaphore; in ImportSemaphore()
95 mDevice->fn.DestroySemaphore(mDevice->GetVkDevice(), semaphore, nullptr); in ImportSemaphore()
99 return semaphore; in ImportSemaphore()
121 ResultOrError<ExternalSemaphoreHandle> Service::ExportSemaphore(VkSemaphore semaphore) { in ExportSemaphore() argument
125 semaphoreGetFdInfo.semaphore = semaphore; in ExportSemaphore()
DSemaphoreServiceZirconHandle.cpp66 VkSemaphore semaphore = VK_NULL_HANDLE; in ImportSemaphore() local
73 mDevice->fn.CreateSemaphore(mDevice->GetVkDevice(), &info, nullptr, &*semaphore), in ImportSemaphore()
80 importSemaphoreHandleInfo.semaphore = semaphore; in ImportSemaphore()
91 mDevice->fn.DestroySemaphore(mDevice->GetVkDevice(), semaphore, nullptr); in ImportSemaphore()
95 return semaphore; in ImportSemaphore()
118 ResultOrError<ExternalSemaphoreHandle> Service::ExportSemaphore(VkSemaphore semaphore) { in ExportSemaphore() argument
122 semaphoreGetHandleInfo.semaphore = semaphore; in ExportSemaphore()
/third_party/mesa3d/src/mesa/main/
Dexternalobjects.h61 _mesa_lookup_semaphore_object(struct gl_context *ctx, GLuint semaphore) in _mesa_lookup_semaphore_object() argument
63 if (!semaphore) in _mesa_lookup_semaphore_object()
67 _mesa_HashLookup(ctx->Shared->SemaphoreObjects, semaphore); in _mesa_lookup_semaphore_object()
71 _mesa_lookup_semaphore_object_locked(struct gl_context *ctx, GLuint semaphore) in _mesa_lookup_semaphore_object_locked() argument
73 if (!semaphore) in _mesa_lookup_semaphore_object_locked()
77 _mesa_HashLookupLocked(ctx->Shared->SemaphoreObjects, semaphore); in _mesa_lookup_semaphore_object_locked()
/third_party/vk-gl-cts/external/vulkan-docs/src/appendices/
DVK_KHR_timeline_semaphore.txt31 This extension introduces a new type of semaphore that has an integer
36 timeline semaphore.
38 semaphore to reach a specified value.
40 semaphore to a specified value.
42 semaphore to reach a specified value.
44 semaphore to a specified value.
59 *RESOLVED*: No, we just introduce a new type of semaphore object, as
107 Timeline semaphore specific external sharing capabilities can be queried
111 This allows having a different set of external semaphore handle types
126 on a binary semaphore, the client must: ensure that the semaphore signal
[all …]
DVK_KHR_timeline_semaphore.adoc30 This extension introduces a new type of semaphore that has an integer
35 timeline semaphore.
37 semaphore to reach a specified value.
39 semaphore to a specified value.
41 semaphore to reach a specified value.
43 semaphore to a specified value.
58 *RESOLVED*: No, we just introduce a new type of semaphore object, as
106 Timeline semaphore specific external sharing capabilities can be queried
110 This allows having a different set of external semaphore handle types
125 on a binary semaphore, the client must: ensure that the semaphore signal
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/synchronization/
DvktSynchronizationBasicSemaphoreTests.cpp82 const Unique<VkSemaphore> semaphore (createTestSemaphore(context, vk, device, config)); in basicOneQueueCase() local
96 …VkSemaphoreSubmitInfoKHR signalSemaphoreSubmitInfo = makeCommonSemaphoreSubmitInfo(semaphore.get(… in basicOneQueueCase()
97 …VkSemaphoreSubmitInfoKHR waitSemaphoreSubmitInfo = makeCommonSemaphoreSubmitInfo(semaphore.get()… in basicOneQueueCase()
137 const Unique<VkSemaphore> semaphore (createTestSemaphore(context, vk, device, config)); in noneWaitSubmitTest() local
165 &semaphore.get() //const VkSemaphore* pSignalSemaphores in noneWaitSubmitTest()
175 &semaphore.get(), //const VkSemaphore* pWaitSemaphores in noneWaitSubmitTest()
222 err = vk.createSemaphore(device, &sci, DE_NULL, &pSignalSemaphoreInfo->semaphore); in basicChainCase()
238 pWaitSemaphoreInfo->semaphore = pSignalSemaphoreInfo->semaphore; in basicChainCase()
255 vk.destroySemaphore(device, s.semaphore, DE_NULL); in basicChainCase()
273 VkSemaphore semaphore; in basicChainTimelineCase() local
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/synchronization/
DvktSynchronizationBasicSemaphoreTests.cpp82 const Unique<VkSemaphore> semaphore (createTestSemaphore(context, vk, device, config)); in basicOneQueueCase() local
96 …VkSemaphoreSubmitInfoKHR signalSemaphoreSubmitInfo = makeCommonSemaphoreSubmitInfo(semaphore.get(… in basicOneQueueCase()
97 …VkSemaphoreSubmitInfoKHR waitSemaphoreSubmitInfo = makeCommonSemaphoreSubmitInfo(semaphore.get()… in basicOneQueueCase()
137 const Unique<VkSemaphore> semaphore (createTestSemaphore(context, vk, device, config)); in noneWaitSubmitTest() local
165 &semaphore.get() //const VkSemaphore* pSignalSemaphores in noneWaitSubmitTest()
175 &semaphore.get(), //const VkSemaphore* pWaitSemaphores in noneWaitSubmitTest()
222 err = vk.createSemaphore(device, &sci, DE_NULL, &pSignalSemaphoreInfo->semaphore); in basicChainCase()
238 pWaitSemaphoreInfo->semaphore = pSignalSemaphoreInfo->semaphore; in basicChainCase()
255 vk.destroySemaphore(device, s.semaphore, DE_NULL); in basicChainCase()
273 VkSemaphore semaphore; in basicChainTimelineCase() local
[all …]
/third_party/pulseaudio/src/pulsecore/
Dasyncmsgq.c48 pa_semaphore *semaphore; member
84 pa_assert(!i->semaphore); in asyncmsgq_free()
136 i->semaphore = NULL; in pa_asyncmsgq_post()
160 if (!(i.semaphore = pa_flist_pop(PA_STATIC_FLIST_GET(semaphores)))) in pa_asyncmsgq_send()
161 i.semaphore = pa_semaphore_new(0); in pa_asyncmsgq_send()
168 pa_semaphore_wait(i.semaphore); in pa_asyncmsgq_send()
170 if (pa_flist_push(PA_STATIC_FLIST_GET(semaphores), i.semaphore) < 0) in pa_asyncmsgq_send()
171 pa_semaphore_free(i.semaphore); in pa_asyncmsgq_send()
216 if (a->current->semaphore) { in pa_asyncmsgq_done()
218 pa_semaphore_post(a->current->semaphore); in pa_asyncmsgq_done()
Daupdate.c39 pa_semaphore *semaphore; member
49 a->semaphore = pa_semaphore_new(0); in pa_aupdate_new()
58 pa_semaphore_free(a->semaphore); in pa_aupdate_free()
91 pa_semaphore_post(a->semaphore); in pa_aupdate_read_end()
118 pa_semaphore_wait(a->semaphore); in pa_aupdate_write_swap()
/third_party/vk-gl-cts/framework/delibs/dethread/
DdeSemaphore.h42 void deSemaphore_destroy (deSemaphore semaphore);
44 void deSemaphore_increment (deSemaphore semaphore);
45 void deSemaphore_decrement (deSemaphore semaphore);
47 deBool deSemaphore_tryDecrement (deSemaphore semaphore);
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/
DVulkanHelper.h81 VkResult createSemaphoreOpaqueFd(VkSemaphore *semaphore);
82 VkResult exportSemaphoreOpaqueFd(VkSemaphore semaphore, int *fd);
86 VkResult createSemaphoreZirconEvent(VkSemaphore *semaphore);
87 VkResult exportSemaphoreZirconEvent(VkSemaphore semaphore, zx_handle_t *event);
96 VkSemaphore semaphore);
105 VkSemaphore semaphore);

12345678910>>...16