Home
last modified time | relevance | path

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

12345

/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/
Dvk_semaphore.c142 struct vk_semaphore *semaphore; in vk_common_CreateSemaphore() local
182 semaphore = vk_object_zalloc(device, pAllocator, size, in vk_common_CreateSemaphore()
184 if (semaphore == NULL) in vk_common_CreateSemaphore()
187 semaphore->type = semaphore_type; in vk_common_CreateSemaphore()
195 VkResult result = vk_sync_init(device, &semaphore->permanent, in vk_common_CreateSemaphore()
198 vk_object_free(device, pAllocator, semaphore); in vk_common_CreateSemaphore()
206 … result = vk_sync_set_win32_export_params(device, &semaphore->permanent, export_win32->pAttributes, in vk_common_CreateSemaphore()
209 vk_sync_finish(device, &semaphore->permanent); in vk_common_CreateSemaphore()
210 vk_object_free(device, pAllocator, semaphore); in vk_common_CreateSemaphore()
216 *pSemaphore = vk_semaphore_to_handle(semaphore); in vk_common_CreateSemaphore()
[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.c234 VkSemaphore semaphore, in vk_common_AcquireImageANDROID() argument
252 if (semaphore != VK_NULL_HANDLE && fence != VK_NULL_HANDLE) { in vk_common_AcquireImageANDROID()
264 } else if (semaphore != VK_NULL_HANDLE) { in vk_common_AcquireImageANDROID()
274 if (semaphore != VK_NULL_HANDLE) { in vk_common_AcquireImageANDROID()
277 .semaphore = semaphore, in vk_common_AcquireImageANDROID()
362 .semaphore = queue->anb_semaphore, in vk_common_QueueSignalReleaseImageANDROID()
Dvk_queue.c647 VK_FROM_HANDLE(vk_semaphore, semaphore, in vk_queue_submit()
648 info->waits[i].semaphore); in vk_queue_submit()
669 if (semaphore->temporary) { in vk_queue_submit()
670 assert(semaphore->type == VK_SEMAPHORE_TYPE_BINARY); in vk_queue_submit()
671 sync = submit->_wait_temps[i] = semaphore->temporary; in vk_queue_submit()
672 semaphore->temporary = NULL; in vk_queue_submit()
674 if (semaphore->type == VK_SEMAPHORE_TYPE_BINARY) { in vk_queue_submit()
676 assert(semaphore->permanent.type->move); in vk_queue_submit()
680 sync = &semaphore->permanent; in vk_queue_submit()
683 uint64_t wait_value = semaphore->type == VK_SEMAPHORE_TYPE_TIMELINE ? in vk_queue_submit()
[all …]
/hardware/google/gfxstream/guest/vulkan_enc/
Dgfxstream_vk_private.cpp29 static bool isNoopSemaphore(gfxstream_vk_semaphore* semaphore) { in isNoopSemaphore() argument
30 return (semaphore && semaphore->vk.temporary && in isNoopSemaphore()
31 vk_sync_type_is_dummy(semaphore->vk.temporary->type)); in isNoopSemaphore()
62 VK_FROM_HANDLE(gfxstream_vk_semaphore, gfxstream_semaphore, outInfo.semaphore); in transformVkSemaphoreSubmitInfoList()
64 outInfo.semaphore = gfxstream_semaphore->internal_object; in transformVkSemaphoreSubmitInfoList()
/hardware/google/gfxstream/host/gl/OpenGLESDispatch/
Dgles_extensions_dispatch_logging_wrappers.impl204 void glImportSemaphoreFdEXT_dispatchLoggingWrapper(GLuint semaphore, GLenum handleType, GLint fd) {
205 …DISPATCH_DEBUG_LOG("glImportSemaphoreFdEXT(semaphore:%d, handleType:0x%X, fd:%d)", semaphore, hand…
206 GLDispatch::glImportSemaphoreFdEXT_underlying(semaphore, handleType, fd);
209 void glImportSemaphoreWin32HandleEXT_dispatchLoggingWrapper(GLuint semaphore, GLenum handleType, vo…
210 …SPATCH_DEBUG_LOG("glImportSemaphoreWin32HandleEXT(semaphore:%d, handleType:0x%X, handle:%p)", sema…
211 GLDispatch::glImportSemaphoreWin32HandleEXT_underlying(semaphore, handleType, handle);
224 GLboolean glIsSemaphoreEXT_dispatchLoggingWrapper(GLuint semaphore) {
225 DISPATCH_DEBUG_LOG("glIsSemaphoreEXT(semaphore:%d)", semaphore);
226 return GLDispatch::glIsSemaphoreEXT_underlying(semaphore);
229 void glSemaphoreParameterui64vEXT_dispatchLoggingWrapper(GLuint semaphore, GLenum pname, const GLui…
[all …]
Dgles_extensions.entries58 void glImportSemaphoreFdEXT(GLuint semaphore, GLenum handleType, GLint fd);
59 void glImportSemaphoreWin32HandleEXT(GLuint semaphore, GLenum handleType, void* handle);
62 GLboolean glIsSemaphoreEXT(GLuint semaphore);
63 void glSemaphoreParameterui64vEXT(GLuint semaphore, GLenum pname, const GLuint64 *params);
64 void glGetSemaphoreParameterui64vEXT(GLuint semaphore, GLenum pname, GLuint64 *params);
65 void glWaitSemaphoreEXT(GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint n…
66 void glSignalSemaphoreEXT(GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint…
Dgles_extensions_for_gles1.entries59 void glImportSemaphoreFdEXT(GLuint semaphore, GLenum handleType, GLint fd);
60 void glImportSemaphoreWin32HandleEXT(GLuint semaphore, GLenum handleType, void* handle);
63 GLboolean glIsSemaphoreEXT(GLuint semaphore);
64 void glSemaphoreParameterui64vEXT(GLuint semaphore, GLenum pname, const GLuint64 *params);
65 void glGetSemaphoreParameterui64vEXT(GLuint semaphore, GLenum pname, GLuint64 *params);
66 void glWaitSemaphoreEXT(GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint n…
67 void glSignalSemaphoreEXT(GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint…
Dgles_extensions_for_gles2.entries59 void glImportSemaphoreFdEXT(GLuint semaphore, GLenum handleType, GLint fd);
60 void glImportSemaphoreWin32HandleEXT(GLuint semaphore, GLenum handleType, void* handle);
63 GLboolean glIsSemaphoreEXT(GLuint semaphore);
64 void glSemaphoreParameterui64vEXT(GLuint semaphore, GLenum pname, const GLuint64 *params);
65 void glGetSemaphoreParameterui64vEXT(GLuint semaphore, GLenum pname, GLuint64 *params);
66 void glWaitSemaphoreEXT(GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint n…
67 void glSignalSemaphoreEXT(GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint…
Dgles1_stubbed_in_translator_namespace.entries17 void glImportSemaphoreFdEXT(GLuint semaphore, GLenum handleType, GLint fd);
18 void glImportSemaphoreWin32HandleEXT(GLuint semaphore, GLenum handleType, void* handle);
21 GLboolean glIsSemaphoreEXT(GLuint semaphore);
22 void glSemaphoreParameterui64vEXT(GLuint semaphore, GLenum pname, const GLuint64 *params);
23 void glGetSemaphoreParameterui64vEXT(GLuint semaphore, GLenum pname, GLuint64 *params);
24 void glWaitSemaphoreEXT(GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint n…
25 void glSignalSemaphoreEXT(GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint…
/hardware/google/gfxstream/include/OpenGLESDispatch/
Dgles_extensions_functions.h48 …X(void, glImportSemaphoreFdEXT, (GLuint semaphore, GLenum handleType, GLint fd), (semaphore, handl…
49 …X(void, glImportSemaphoreWin32HandleEXT, (GLuint semaphore, GLenum handleType, void* handle), (sem…
52 X(GLboolean, glIsSemaphoreEXT, (GLuint semaphore), (semaphore)) \
53 …X(void, glSemaphoreParameterui64vEXT, (GLuint semaphore, GLenum pname, const GLuint64 * params), (
54 …X(void, glGetSemaphoreParameterui64vEXT, (GLuint semaphore, GLenum pname, GLuint64 * params), (sem…
55semaphore, GLuint numBufferBarriers, const GLuint * buffers, GLuint numTextureBarriers, const GLu…
56semaphore, GLuint numBufferBarriers, const GLuint * buffers, GLuint numTextureBarriers, const GLu…
Dgles_extensions_for_gles2_static_translator_namespaced_header.h48 GL_APICALL void GL_APIENTRY glImportSemaphoreFdEXT(GLuint semaphore, GLenum handleType, GLint fd);
49 GL_APICALL void GL_APIENTRY glImportSemaphoreWin32HandleEXT(GLuint semaphore, GLenum handleType, vo…
52 GL_APICALL GLboolean GL_APIENTRY glIsSemaphoreEXT(GLuint semaphore);
53 GL_APICALL void GL_APIENTRY glSemaphoreParameterui64vEXT(GLuint semaphore, GLenum pname, const GLui…
54 GL_APICALL void GL_APIENTRY glGetSemaphoreParameterui64vEXT(GLuint semaphore, GLenum pname, GLuint6…
55 GL_APICALL void GL_APIENTRY glWaitSemaphoreEXT(GLuint semaphore, GLuint numBufferBarriers, const GL…
56 GL_APICALL void GL_APIENTRY glSignalSemaphoreEXT(GLuint semaphore, GLuint numBufferBarriers, const …
Dgles_extensions_for_gles1_static_translator_namespaced_header.h48 GL_APICALL void GL_APIENTRY glImportSemaphoreFdEXT(GLuint semaphore, GLenum handleType, GLint fd);
49 GL_APICALL void GL_APIENTRY glImportSemaphoreWin32HandleEXT(GLuint semaphore, GLenum handleType, vo…
52 GL_APICALL GLboolean GL_APIENTRY glIsSemaphoreEXT(GLuint semaphore);
53 GL_APICALL void GL_APIENTRY glSemaphoreParameterui64vEXT(GLuint semaphore, GLenum pname, const GLui…
54 GL_APICALL void GL_APIENTRY glGetSemaphoreParameterui64vEXT(GLuint semaphore, GLenum pname, GLuint6…
55 GL_APICALL void GL_APIENTRY glWaitSemaphoreEXT(GLuint semaphore, GLuint numBufferBarriers, const GL…
56 GL_APICALL void GL_APIENTRY glSignalSemaphoreEXT(GLuint semaphore, GLuint numBufferBarriers, const …
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/appendices/
DVK_KHR_timeline_semaphore.adoc31 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_FUCHSIA_external_semaphore.adoc22 This extension enables an application to export semaphore payload to and
23 import semaphore payload from Zircon event handles.
33 the semaphore.
36 Destroying the original semaphore object will not close the Zircon event
37 handle nor remove its reference to the underlying semaphore resource
DVK_KHR_external_semaphore_fd.adoc23 This extension enables an application to export semaphore payload to and
24 import semaphore payload from POSIX file descriptors.
34 the semaphore.
37 Destroying the original semaphore object will not close the file descriptor
38 or remove its reference to the underlying semaphore resource associated with
DVK_KHR_external_semaphore_win32.adoc22 This extension enables an application to export semaphore payload to and
23 import semaphore payload from Windows handles.
36 Destroying the semaphore object will not destroy the handle or the handle's
37 reference to the underlying semaphore resource.
59 semaphore, or they could be specified using auxiliary structures when
60 submitting semaphore signal and wait operations, similar to what is done
/hardware/google/gfxstream/guest/magma/magma_enc/
Dmagma_entry.cpp21 …void magma_connection_release_semaphore(magma_connection_t connection, magma_semaphore_t semaphore
41 void magma_semaphore_signal(magma_semaphore_t semaphore);
42 void magma_semaphore_reset(magma_semaphore_t semaphore);
43 …magma_status_t magma_semaphore_export(magma_semaphore_t semaphore, magma_handle_t* semaphore_handl…
144 void magma_connection_release_semaphore(magma_connection_t connection, magma_semaphore_t semaphore) in magma_connection_release_semaphore() argument
147 ctx->magma_connection_release_semaphore(ctx, connection, semaphore); in magma_connection_release_semaphore()
264 void magma_semaphore_signal(magma_semaphore_t semaphore) in magma_semaphore_signal() argument
267 ctx->magma_semaphore_signal(ctx, semaphore); in magma_semaphore_signal()
270 void magma_semaphore_reset(magma_semaphore_t semaphore) in magma_semaphore_reset() argument
273 ctx->magma_semaphore_reset(ctx, semaphore); in magma_semaphore_reset()
[all …]
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/chapters/
Dsynchronization.adoc1849 to the order in which semaphore and fence signal operations occur when
1871 command is ordered after all semaphore signal operations defined by that
1877 structure are unordered with respect to other semaphore signal operations
1883 The semaphore signal operation defined by executing a
1891 application to ensure that they are ordered such that the semaphore value is
1893 Because the first synchronization scope for a semaphore signal operation
1894 contains all semaphore signal operations which occur earlier in submission
1895 order, all semaphore signal operations contained in any given batch are
1896 guaranteed to happen-after all semaphore signal operations contained in any
1898 However, no ordering guarantee is provided between the semaphore signal
[all …]
/hardware/google/gfxstream/host/magma/
DIntelDrmDecoder.h40 …_connection_release_semaphore(magma_connection_t connection, magma_semaphore_t semaphore) override;
44 void magma_semaphore_signal(magma_semaphore_t semaphore) override;
45 void magma_semaphore_reset(magma_semaphore_t semaphore) override;
/hardware/st/nfc/1.0/hal/
Dhalcore.c164 if (0 != sem_init(&inst->semaphore, 0, 0)) { in HalCreate()
173 sem_destroy(&inst->semaphore); in HalCreate()
181 sem_destroy(&inst->semaphore); in HalCreate()
201 sem_destroy(&inst->semaphore); in HalCreate()
219 sem_destroy(&inst->semaphore); in HalCreate()
230 sem_destroy(&inst->semaphore); in HalCreate()
264 sem_destroy(&inst->semaphore); in HalDestroy()
523 sem_post(&inst->semaphore); in HalEnqueueThreadMessage()
691 HalSemWait(&inst->semaphore, HalCalcSemWaitingTime(inst, &now)); in HalWorkerThread()
/hardware/google/gfxstream/third-party/fuchsia/magma/include/lib/magma/
Dmagma.h179 magma_semaphore_t semaphore);
379 magma_semaphore_t semaphore);
386 magma_semaphore_t semaphore);
394 magma_semaphore_t semaphore,
/hardware/st/nfc/st21nfc/hal/
Dhalcore.cc189 if (0 != sem_init(&inst->semaphore, 0, 0)) { in HalCreate()
198 sem_destroy(&inst->semaphore); in HalCreate()
206 sem_destroy(&inst->semaphore); in HalCreate()
226 sem_destroy(&inst->semaphore); in HalCreate()
243 sem_destroy(&inst->semaphore); in HalCreate()
254 sem_destroy(&inst->semaphore); in HalCreate()
287 sem_destroy(&inst->semaphore); in HalDestroy()
550 sem_post(&inst->semaphore); in HalEnqueueThreadMessage()
711 HalSemWait(&inst->semaphore, HalCalcSemWaitingTime(inst, &now)); in HalWorkerThread()
/hardware/google/gfxstream/host/vulkan/
DVkAndroidNativeBuffer.cpp503 Lock* defaultQueueLock, VkSemaphore semaphore, in setAndroidNativeImageSemaphoreSignaled() argument
521 (uint32_t)(semaphore == VK_NULL_HANDLE ? 0 : 1), in setAndroidNativeImageSemaphoreSignaled()
522 semaphore == VK_NULL_HANDLE ? nullptr : &semaphore, in setAndroidNativeImageSemaphoreSignaled()
588 (uint32_t)(semaphore == VK_NULL_HANDLE ? 0 : 1), in setAndroidNativeImageSemaphoreSignaled()
589 semaphore == VK_NULL_HANDLE ? nullptr : &semaphore, in setAndroidNativeImageSemaphoreSignaled()
606 (uint32_t)(semaphore == VK_NULL_HANDLE ? 0 : 1), in setAndroidNativeImageSemaphoreSignaled()
607 semaphore == VK_NULL_HANDLE ? nullptr : &semaphore, in setAndroidNativeImageSemaphoreSignaled()
/hardware/google/gfxstream/codegen/magma/
Dmagma.in14 …id, magma_connection_release_semaphore, magma_connection_t connection, magma_semaphore_t semaphore)
34 MAGMA(void, magma_semaphore_signal, magma_semaphore_t semaphore)
35 MAGMA(void, magma_semaphore_reset, magma_semaphore_t semaphore)
36 MAGMA(magma_status_t, magma_semaphore_export, magma_semaphore_t semaphore, magma_handle_t* semaphor…

12345