/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/ |
D | vk_sync.c | 82 struct vk_sync *sync, in vk_sync_init() argument 94 assert(type->size >= sizeof(*sync)); in vk_sync_init() 95 memset(sync, 0, type->size); in vk_sync_init() 96 sync->type = type; in vk_sync_init() 97 sync->flags = flags; in vk_sync_init() 99 return type->init(device, sync, initial_value); in vk_sync_init() 104 struct vk_sync *sync) in vk_sync_finish() argument 106 sync->type->finish(device, sync); in vk_sync_finish() 116 struct vk_sync *sync; in vk_sync_create() local 118 sync = vk_alloc(&device->alloc, type->size, 8, in vk_sync_create() [all …]
|
D | vk_sync.h | 169 struct vk_sync *sync, 177 struct vk_sync *sync); 184 struct vk_sync *sync, 189 struct vk_sync *sync, 194 struct vk_sync *sync); 221 struct vk_sync *sync, 246 struct vk_sync *sync, 251 struct vk_sync *sync, 263 struct vk_sync *sync, 273 struct vk_sync *sync, [all …]
|
D | vk_sync_binary.c | 29 to_vk_sync_binary(struct vk_sync *sync) in to_vk_sync_binary() argument 31 assert(sync->type->init == vk_sync_binary_init); in to_vk_sync_binary() 33 return container_of(sync, struct vk_sync_binary, sync); in to_vk_sync_binary() 38 struct vk_sync *sync, in vk_sync_binary_init() argument 41 struct vk_sync_binary *binary = to_vk_sync_binary(sync); in vk_sync_binary_init() 44 container_of(binary->sync.type, struct vk_sync_binary_type, sync); in vk_sync_binary_init() 46 assert(!(sync->flags & VK_SYNC_IS_TIMELINE)); in vk_sync_binary_init() 47 assert(!(sync->flags & VK_SYNC_IS_SHAREABLE)); in vk_sync_binary_init() 57 struct vk_sync *sync) in vk_sync_binary_finish() argument 59 struct vk_sync_binary *binary = to_vk_sync_binary(sync); in vk_sync_binary_finish() [all …]
|
D | vk_drm_syncobj.c | 38 to_drm_syncobj(struct vk_sync *sync) in to_drm_syncobj() argument 40 assert(vk_sync_type_is_drm_syncobj(sync->type)); in to_drm_syncobj() 41 return container_of(sync, struct vk_drm_syncobj, base); in to_drm_syncobj() 46 struct vk_sync *sync, in vk_drm_syncobj_init() argument 49 struct vk_drm_syncobj *sobj = to_drm_syncobj(sync); in vk_drm_syncobj_init() 52 if (!(sync->flags & VK_SYNC_IS_TIMELINE) && initial_value) in vk_drm_syncobj_init() 62 if ((sync->flags & VK_SYNC_IS_TIMELINE) && initial_value) { in vk_drm_syncobj_init() 66 vk_drm_syncobj_finish(device, sync); in vk_drm_syncobj_init() 77 struct vk_sync *sync) in vk_drm_syncobj_finish() argument 79 struct vk_drm_syncobj *sobj = to_drm_syncobj(sync); in vk_drm_syncobj_finish() [all …]
|
D | vk_sync_binary.h | 33 struct vk_sync_type sync; member 49 struct vk_sync sync; member 57 struct vk_sync *sync, 67 vk_sync_as_binary(struct vk_sync *sync) in vk_sync_as_binary() argument 69 if (!vk_sync_type_is_vk_sync_binary(sync->type)) in vk_sync_as_binary() 72 return container_of(sync, struct vk_sync_binary, sync); in vk_sync_as_binary()
|
D | vk_sync_timeline.h | 37 struct vk_sync_type sync; member 56 struct vk_sync sync; member 79 struct vk_sync sync; member 92 struct vk_sync *sync, 121 vk_sync_as_timeline(struct vk_sync *sync) in vk_sync_as_timeline() argument 123 if (!vk_sync_type_is_vk_sync_timeline(sync->type)) in vk_sync_as_timeline() 126 return container_of(sync, struct vk_sync_timeline, sync); in vk_sync_as_timeline()
|
D | vk_sync_timeline.c | 36 to_vk_sync_timeline(struct vk_sync *sync) in to_vk_sync_timeline() argument 38 assert(sync->type->init == vk_sync_timeline_init); in to_vk_sync_timeline() 40 return container_of(sync, struct vk_sync_timeline, sync); in to_vk_sync_timeline() 58 struct vk_sync *sync, in vk_sync_timeline_init() argument 61 struct vk_sync_timeline *timeline = to_vk_sync_timeline(sync); in vk_sync_timeline_init() 65 container_of(timeline->sync.type, struct vk_sync_timeline_type, sync); in vk_sync_timeline_init() 88 struct vk_sync *sync) in vk_sync_timeline_finish() argument 90 struct vk_sync_timeline *timeline = to_vk_sync_timeline(sync); in vk_sync_timeline_finish() 95 vk_sync_finish(device, &point->sync); in vk_sync_timeline_finish() 101 vk_sync_finish(device, &point->sync); in vk_sync_timeline_finish() [all …]
|
D | vk_drm_syncobj.h | 40 struct vk_sync *sync); 49 vk_sync_as_drm_syncobj(struct vk_sync *sync) in vk_sync_as_drm_syncobj() argument 51 if (!vk_sync_type_is_drm_syncobj(sync->type)) in vk_sync_as_drm_syncobj() 54 return container_of(sync, struct vk_drm_syncobj, base); in vk_sync_as_drm_syncobj()
|
D | vk_semaphore.c | 322 struct vk_sync *sync = vk_semaphore_get_active_sync(semaphore); in vk_common_GetSemaphoreCounterValue() local 323 return vk_sync_get_value(device, sync, pValue); in vk_common_GetSemaphoreCounterValue() 351 .sync = vk_semaphore_get_active_sync(semaphore), in vk_common_WaitSemaphores() 379 struct vk_sync *sync = vk_semaphore_get_active_sync(semaphore); in vk_common_SignalSemaphore() local 406 result = vk_sync_signal(device, sync, pSignalInfo->value); in vk_common_SignalSemaphore() 436 struct vk_sync *temporary = NULL, *sync; in vk_common_ImportSemaphoreWin32HandleKHR() local 461 sync = temporary; in vk_common_ImportSemaphoreWin32HandleKHR() 463 sync = &semaphore->permanent; in vk_common_ImportSemaphoreWin32HandleKHR() 466 vk_sync_semaphore_handle_types(sync->type, semaphore->type)); in vk_common_ImportSemaphoreWin32HandleKHR() 472 result = vk_sync_import_win32_handle(device, sync, handle, name); in vk_common_ImportSemaphoreWin32HandleKHR() [all …]
|
D | vk_queue.c | 302 if ((submit->waits[i].sync->flags & VK_SYNC_IS_TIMELINE) && in vk_queue_submit_final() 307 if (vk_sync_type_is_dummy(submit->waits[i].sync->type)) { in vk_queue_submit_final() 313 submit->waits[i].sync = NULL; in vk_queue_submit_final() 322 vk_sync_as_timeline(submit->waits[i].sync); in vk_queue_submit_final() 339 submit->waits[i].sync = &submit->_wait_points[i]->sync; in vk_queue_submit_final() 344 vk_sync_as_binary(submit->waits[i].sync); in vk_queue_submit_final() 346 submit->waits[i].sync = &binary->timeline; in vk_queue_submit_final() 350 assert((submit->waits[i].sync->flags & VK_SYNC_IS_TIMELINE) || in vk_queue_submit_final() 367 assert((submit->signals[i].sync->flags & VK_SYNC_IS_TIMELINE) || in vk_queue_submit_final() 371 vk_sync_as_binary(submit->signals[i].sync); in vk_queue_submit_final() [all …]
|
D | vk_fence.c | 273 .sync = vk_fence_get_active_sync(fence), in vk_common_WaitForFences() 363 struct vk_sync *temporary = NULL, *sync; in vk_common_ImportFenceFdKHR() local 373 sync = temporary; in vk_common_ImportFenceFdKHR() 375 sync = &fence->permanent; in vk_common_ImportFenceFdKHR() 377 assert(handle_type & vk_sync_fence_handle_types(sync->type)); in vk_common_ImportFenceFdKHR() 382 result = vk_sync_import_opaque_fd(device, sync, fd); in vk_common_ImportFenceFdKHR() 386 result = vk_sync_import_sync_file(device, sync, fd); in vk_common_ImportFenceFdKHR() 429 struct vk_sync *sync = vk_fence_get_active_sync(fence); in vk_common_GetFenceFdKHR() local 434 result = vk_sync_export_opaque_fd(device, sync, pFd); in vk_common_GetFenceFdKHR() 445 result = vk_sync_wait(device, sync, 0, in vk_common_GetFenceFdKHR() [all …]
|
/hardware/qcom/sm7250/media/mm-video-v4l2/vidc/common/inc/ |
D | vidc_common.h | 105 void do_sync_ioctl(int fd, struct dma_buf_sync* sync); 108 struct dma_buf_sync sync = {0}; in sync_start_write() local 109 sync.flags = DMA_BUF_SYNC_START | DMA_BUF_SYNC_WRITE; in sync_start_write() 110 do_sync_ioctl(fd, &sync); in sync_start_write() 114 struct dma_buf_sync sync = {0}; in sync_end_write() local 115 sync.flags = DMA_BUF_SYNC_END | DMA_BUF_SYNC_WRITE; in sync_end_write() 116 do_sync_ioctl(fd, &sync); in sync_end_write() 120 struct dma_buf_sync sync = {0}; in sync_start_read() local 121 sync.flags = DMA_BUF_SYNC_START | DMA_BUF_SYNC_READ; in sync_start_read() 122 do_sync_ioctl(fd, &sync); in sync_start_read() [all …]
|
/hardware/google/gfxstream/host/tests/ |
D | SampleApplication.cpp | 176 : colorBuffer(cb), sync(s) { } in Item() 178 EmulatedEglFenceSync* sync = nullptr; member in gfxstream::ColorBufferQueue::Item 324 uint64_t sync; in getFenceSync() local 325 mFb->createEmulatedEglFenceSync(EGL_SYNC_FENCE_KHR, false, &sync); in getFenceSync() 326 return EmulatedEglFenceSync::getFromHandle(sync); in getFenceSync() 346 if (appItem.sync) { appItem.sync->wait(EGL_FOREVER_KHR); } in drawWorkerWithCompose() 361 if (appItem.sync) { appItem.sync->decRef(); } in drawWorkerWithCompose() 436 if (hwcItem.sync) { hwcItem.sync->wait(EGL_FOREVER_KHR); } in drawWorker() 450 if (appItem.sync) { appItem.sync->wait(EGL_FOREVER_KHR); } in drawWorker() 454 if (appItem.sync) { appItem.sync->decRef(); } in drawWorker() [all …]
|
/hardware/qcom/sm7250/display/composer/ |
D | gl_common.cpp | 122 EGLSyncKHR sync = eglCreateSyncKHR(eglGetCurrentDisplay(), EGL_SYNC_NATIVE_FENCE_ANDROID, in WaitOnInputFence() local 125 if (sync == EGL_NO_SYNC_KHR) { in WaitOnInputFence() 131 EGL(eglWaitSyncKHR(eglGetCurrentDisplay(), sync, 0)); in WaitOnInputFence() 132 EGL(eglDestroySyncKHR(eglGetCurrentDisplay(), sync)); in WaitOnInputFence() 139 EGLSyncKHR sync = eglCreateSyncKHR(eglGetCurrentDisplay(), EGL_SYNC_NATIVE_FENCE_ANDROID, NULL); in CreateOutputFence() local 144 if (sync == EGL_NO_SYNC_KHR) { in CreateOutputFence() 150 int fd = eglDupNativeFenceFDANDROID(eglGetCurrentDisplay(), sync); in CreateOutputFence() 157 EGL(eglDestroySyncKHR(eglGetCurrentDisplay(), sync)); in CreateOutputFence()
|
/hardware/google/gfxstream/guest/platform/rutabaga/ |
D | RutabagaVirtGpuSyncHelper.cpp | 44 RutabagaVirtGpuSyncHelper* sync = new RutabagaVirtGpuSyncHelper(); in createPlatformSyncHelper() local 45 if (!sync->Init()) { in createPlatformSyncHelper() 49 return sync; in createPlatformSyncHelper()
|
/hardware/google/gfxstream/guest/mesa/include/GL/ |
D | mesa_glinterop.h | 354 GLsync *sync); 363 GLsync *sync); 372 GLsync *sync); 392 GLsync *sync); 395 GLsync *sync); 398 GLsync *sync);
|
/hardware/google/gfxstream/host/gl/ |
D | EmulatedEglFenceSync.cpp | 98 auto sync = s_egl.eglCreateSyncKHR(display, EGL_SYNC_FENCE_KHR, nullptr); in create() local 99 if (sync == EGL_NO_SYNC_KHR) { in create() 109 sync, in create() 115 EGLSyncKHR sync, in EmulatedEglFenceSync() argument 120 mSync(sync) { in EmulatedEglFenceSync()
|
/hardware/qcom/sm7250/display/gralloc/ |
D | gr_ion_alloc.cpp | 130 struct dma_buf_sync sync; in CleanBuffer() local 135 sync.flags = DMA_BUF_SYNC_END | DMA_BUF_SYNC_RW; in CleanBuffer() 138 sync.flags = DMA_BUF_SYNC_START | DMA_BUF_SYNC_RW; in CleanBuffer() 141 sync.flags = DMA_BUF_SYNC_END | DMA_BUF_SYNC_READ; in CleanBuffer() 148 if (ioctl(dma_buf_fd, INT(DMA_BUF_IOCTL_SYNC), &sync)) { in CleanBuffer()
|
/hardware/qcom/display/msm8909w_3100/libcopybit/ |
D | copybit.cpp | 51 struct mdp_buf_sync sync; member 65 struct mdp_buf_sync sync; member 420 if (ctx->list.sync.acq_fen_fd_cnt < (MDP_MAX_FENCE_FD - 1)) { in set_sync_copybit() 421 ctx->acqFence[ctx->list.sync.acq_fen_fd_cnt++] = acquireFenceFd; in set_sync_copybit() 433 list->sync.acq_fen_fd_cnt = 0; in set_sync_copybit() 434 ctx->acqFence[list->sync.acq_fen_fd_cnt++] = acquireFenceFd; in set_sync_copybit() 555 list->sync.acq_fen_fd_cnt = 0; in stretch_copybit() 563 list->sync.acq_fen_fd_cnt = 0; in stretch_copybit() 612 list1.sync.acq_fen_fd = ctx->acqFence; in clear_copybit() 613 list1.sync.rel_fen_fd = &my_tmp_get_fence; in clear_copybit() [all …]
|
/hardware/qcom/display/msm8994/libcopybit/ |
D | copybit.cpp | 51 struct mdp_buf_sync sync; member 65 struct mdp_buf_sync sync; member 403 if (ctx->list.sync.acq_fen_fd_cnt < (MDP_MAX_FENCE_FD - 1)) { in set_sync_copybit() 404 ctx->acqFence[ctx->list.sync.acq_fen_fd_cnt++] = acquireFenceFd; in set_sync_copybit() 416 list->sync.acq_fen_fd_cnt = 0; in set_sync_copybit() 417 ctx->acqFence[list->sync.acq_fen_fd_cnt++] = acquireFenceFd; in set_sync_copybit() 533 list->sync.acq_fen_fd_cnt = 0; in stretch_copybit() 541 list->sync.acq_fen_fd_cnt = 0; in stretch_copybit() 590 list1.sync.acq_fen_fd = ctx->acqFence; in clear_copybit() 591 list1.sync.rel_fen_fd = &my_tmp_get_fence; in clear_copybit() [all …]
|
/hardware/qcom/display/msm8909/libcopybit/ |
D | copybit.cpp | 51 struct mdp_buf_sync sync; member 65 struct mdp_buf_sync sync; member 420 if (ctx->list.sync.acq_fen_fd_cnt < (MDP_MAX_FENCE_FD - 1)) { in set_sync_copybit() 421 ctx->acqFence[ctx->list.sync.acq_fen_fd_cnt++] = acquireFenceFd; in set_sync_copybit() 433 list->sync.acq_fen_fd_cnt = 0; in set_sync_copybit() 434 ctx->acqFence[list->sync.acq_fen_fd_cnt++] = acquireFenceFd; in set_sync_copybit() 555 list->sync.acq_fen_fd_cnt = 0; in stretch_copybit() 563 list->sync.acq_fen_fd_cnt = 0; in stretch_copybit() 612 list1.sync.acq_fen_fd = ctx->acqFence; in clear_copybit() 613 list1.sync.rel_fen_fd = &my_tmp_get_fence; in clear_copybit() [all …]
|
/hardware/qcom/sm8150/display/libcopybit/ |
D | copybit.cpp | 51 struct mdp_buf_sync sync; member 65 struct mdp_buf_sync sync; member 420 if (ctx->list.sync.acq_fen_fd_cnt < (MDP_MAX_FENCE_FD - 1)) { in set_sync_copybit() 421 ctx->acqFence[ctx->list.sync.acq_fen_fd_cnt++] = acquireFenceFd; in set_sync_copybit() 433 list->sync.acq_fen_fd_cnt = 0; in set_sync_copybit() 434 ctx->acqFence[list->sync.acq_fen_fd_cnt++] = acquireFenceFd; in set_sync_copybit() 547 list->sync.acq_fen_fd_cnt = 0; in stretch_copybit() 555 list->sync.acq_fen_fd_cnt = 0; in stretch_copybit() 604 list1.sync.acq_fen_fd = ctx->acqFence; in clear_copybit() 605 list1.sync.rel_fen_fd = &my_tmp_get_fence; in clear_copybit() [all …]
|
/hardware/qcom/display/msm8996/libcopybit/ |
D | copybit.cpp | 51 struct mdp_buf_sync sync; member 65 struct mdp_buf_sync sync; member 418 if (ctx->list.sync.acq_fen_fd_cnt < (MDP_MAX_FENCE_FD - 1)) { in set_sync_copybit() 419 ctx->acqFence[ctx->list.sync.acq_fen_fd_cnt++] = acquireFenceFd; in set_sync_copybit() 431 list->sync.acq_fen_fd_cnt = 0; in set_sync_copybit() 432 ctx->acqFence[list->sync.acq_fen_fd_cnt++] = acquireFenceFd; in set_sync_copybit() 553 list->sync.acq_fen_fd_cnt = 0; in stretch_copybit() 561 list->sync.acq_fen_fd_cnt = 0; in stretch_copybit() 610 list1.sync.acq_fen_fd = ctx->acqFence; in clear_copybit() 611 list1.sync.rel_fen_fd = &my_tmp_get_fence; in clear_copybit() [all …]
|
/hardware/qcom/display/msm8226/libcopybit/ |
D | copybit.cpp | 50 struct mdp_buf_sync sync; member 64 struct mdp_buf_sync sync; member 400 if (ctx->list.sync.acq_fen_fd_cnt < (MDP_MAX_FENCE_FD - 1)) { in set_sync_copybit() 401 ctx->acqFence[ctx->list.sync.acq_fen_fd_cnt++] = acquireFenceFd; in set_sync_copybit() 413 list->sync.acq_fen_fd_cnt = 0; in set_sync_copybit() 414 ctx->acqFence[list->sync.acq_fen_fd_cnt++] = acquireFenceFd; in set_sync_copybit() 520 list->sync.acq_fen_fd_cnt = 0; in stretch_copybit() 528 list->sync.acq_fen_fd_cnt = 0; in stretch_copybit() 578 list1.sync.acq_fen_fd = ctx->acqFence; in clear_copybit() 579 list1.sync.rel_fen_fd = &my_tmp_get_fence; in clear_copybit() [all …]
|
/hardware/qcom/display/msm8084/libcopybit/ |
D | copybit.cpp | 50 struct mdp_buf_sync sync; member 64 struct mdp_buf_sync sync; member 400 if (ctx->list.sync.acq_fen_fd_cnt < (MDP_MAX_FENCE_FD - 1)) { in set_sync_copybit() 401 ctx->acqFence[ctx->list.sync.acq_fen_fd_cnt++] = acquireFenceFd; in set_sync_copybit() 413 list->sync.acq_fen_fd_cnt = 0; in set_sync_copybit() 414 ctx->acqFence[list->sync.acq_fen_fd_cnt++] = acquireFenceFd; in set_sync_copybit() 520 list->sync.acq_fen_fd_cnt = 0; in stretch_copybit() 528 list->sync.acq_fen_fd_cnt = 0; in stretch_copybit() 578 list1.sync.acq_fen_fd = ctx->acqFence; in clear_copybit() 579 list1.sync.rel_fen_fd = &my_tmp_get_fence; in clear_copybit() [all …]
|