/third_party/mesa3d/src/vulkan/runtime/ |
D | vk_semaphore.c | 127 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 …]
|
D | vk_semaphore.h | 65 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()
|
D | vk_android.c | 37 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/ |
D | NV_timeline_semaphore.txt | 43 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/ |
D | deNamedSemaphoreUnix.c | 36 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 …]
|
D | deSemaphoreMach.c | 49 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()
|
D | deSemaphoreUnix.c | 53 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/ |
D | VkSemaphoreExternalLinux.hpp | 186 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 …]
|
D | VkSemaphore.hpp | 43 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/ |
D | dng_pthread.cpp | 62 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/ |
D | GrVkSemaphore.cpp | 25 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/ |
D | deSemaphoreWin32.c | 51 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/ |
D | NVX_progress_fence.txt | 46 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/ |
D | vn_protocol_driver_semaphore.h | 260 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/ |
D | SemaphoreServiceFD.cpp | 72 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()
|
D | SemaphoreServiceZirconHandle.cpp | 66 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/ |
D | externalobjects.h | 61 _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/ |
D | VK_KHR_timeline_semaphore.txt | 31 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 …]
|
D | VK_KHR_timeline_semaphore.adoc | 30 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/ |
D | vktSynchronizationBasicSemaphoreTests.cpp | 82 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/ |
D | vktSynchronizationBasicSemaphoreTests.cpp | 82 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/ |
D | asyncmsgq.c | 48 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()
|
D | aupdate.c | 39 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/ |
D | deSemaphore.h | 42 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/ |
D | VulkanHelper.h | 81 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);
|