/third_party/mesa3d/src/freedreno/drm/ |
D | freedreno_bo.c | 123 bo->fences = &bo->_inline_fence; in bo_new() 326 struct fd_bo_fence *f = &bo->fences[i]; in cleanup_fences() 337 bo->fences[i] = bo->fences[bo->nr_fences]; in cleanup_fences() 357 if (bo->fences != &bo->_inline_fence) in bo_del() 358 free(bo->fences); in bo_del() 383 struct fd_bo_fence *f = &bo->fences[i]; in bo_flush() 556 struct fd_bo_fence *f = &bo->fences[i]; in fd_bo_add_fence() 571 (bo->fences == &bo->_inline_fence))) { in fd_bo_add_fence() 573 bo->fences = NULL; in fd_bo_add_fence() 574 APPEND(bo, fences, bo->_inline_fence); in fd_bo_add_fence() [all …]
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | FenceSyncTests.cpp | 117 GLuint fences[kFenceCount] = {0}; in TEST_P() local 118 glGenFencesNV(static_cast<GLsizei>(ArraySize(fences)), fences); in TEST_P() 121 for (GLuint fence : fences) in TEST_P() 128 glFinishFenceNV(fences[kFenceCount - 1]); in TEST_P() 130 for (GLuint fence : fences) in TEST_P()
|
/third_party/mesa3d/src/microsoft/vulkan/ |
D | dzn_sync.c | 148 STACK_ARRAY(ID3D12Fence *, fences, wait_count); in dzn_sync_wait() 154 fences[i] = sync->fence; in dzn_sync_wait() 164 fences, in dzn_sync_wait() 169 STACK_ARRAY_FINISH(fences); in dzn_sync_wait() 212 STACK_ARRAY_FINISH(fences); in dzn_sync_wait()
|
/third_party/mesa3d/src/gallium/winsys/amdgpu/drm/ |
D | amdgpu_cs.c | 912 static void cleanup_fence_list(struct amdgpu_fence_list *fences) in cleanup_fence_list() argument 914 for (unsigned i = 0; i < fences->num; i++) in cleanup_fence_list() 915 amdgpu_fence_reference(&fences->list[i], NULL); in cleanup_fence_list() 916 fences->num = 0; in cleanup_fence_list() 1196 static void add_fence_to_list(struct amdgpu_fence_list *fences, in add_fence_to_list() argument 1199 unsigned idx = fences->num++; in add_fence_to_list() 1201 if (idx >= fences->max) { in add_fence_to_list() 1205 fences->max = idx + increment; in add_fence_to_list() 1206 size = fences->max * sizeof(fences->list[0]); in add_fence_to_list() 1207 fences->list = realloc(fences->list, size); in add_fence_to_list() [all …]
|
D | amdgpu_bo.c | 92 if (!amdgpu_fence_wait(bo->fences[idle_fences], 0, false)) in amdgpu_bo_wait() 98 amdgpu_fence_reference(&bo->fences[i], NULL); in amdgpu_bo_wait() 100 memmove(&bo->fences[0], &bo->fences[idle_fences], in amdgpu_bo_wait() 101 (bo->num_fences - idle_fences) * sizeof(*bo->fences)); in amdgpu_bo_wait() 116 amdgpu_fence_reference(&fence, bo->fences[0]); in amdgpu_bo_wait() 129 if (fence_idle && bo->num_fences && bo->fences[0] == fence) { in amdgpu_bo_wait() 130 amdgpu_fence_reference(&bo->fences[0], NULL); in amdgpu_bo_wait() 131 memmove(&bo->fences[0], &bo->fences[1], in amdgpu_bo_wait() 132 (bo->num_fences - 1) * sizeof(*bo->fences)); in amdgpu_bo_wait() 159 amdgpu_fence_reference(&bo->fences[i], NULL); in amdgpu_bo_remove_fences() [all …]
|
/third_party/openGLES/extensions/NV/ |
D | NV_fence.txt | 89 Are the fences sharable between multiple contexts? 149 Can fences be used as a form of performance monitoring? 152 fences, developers can measure the GPU latency for completing 180 be small if there are a small number of fences and large amount 183 If the time between two fences is zero or very near zero, 212 void GenFencesNV(sizei n, uint *fences); 214 void DeleteFencesNV(sizei n, const uint *fences); 283 void GenFencesNV(sizei n, uint *fences); 285 returns n previously unused fence names in fences. These names 292 void DeleteFencesNV(sizei n, const uint *fences); [all …]
|
/third_party/skia/third_party/externals/opengl-registry/extensions/NV/ |
D | NV_fence.txt | 89 Are the fences sharable between multiple contexts? 149 Can fences be used as a form of performance monitoring? 152 fences, developers can measure the GPU latency for completing 180 be small if there are a small number of fences and large amount 183 If the time between two fences is zero or very near zero, 212 void GenFencesNV(sizei n, uint *fences); 214 void DeleteFencesNV(sizei n, const uint *fences); 283 void GenFencesNV(sizei n, uint *fences); 285 returns n previously unused fence names in fences. These names 292 void DeleteFencesNV(sizei n, const uint *fences); [all …]
|
/third_party/libdrm/amdgpu/ |
D | amdgpu_cs.c | 498 static int amdgpu_ioctl_wait_fences(struct amdgpu_cs_fence *fences, in amdgpu_ioctl_wait_fences() argument 506 amdgpu_device_handle dev = fences[0].context->dev; in amdgpu_ioctl_wait_fences() 513 drm_fences[i].ctx_id = fences[i].context->id; in amdgpu_ioctl_wait_fences() 514 drm_fences[i].ip_type = fences[i].ip_type; in amdgpu_ioctl_wait_fences() 515 drm_fences[i].ip_instance = fences[i].ip_instance; in amdgpu_ioctl_wait_fences() 516 drm_fences[i].ring = fences[i].ring; in amdgpu_ioctl_wait_fences() 517 drm_fences[i].seq_no = fences[i].fence; in amdgpu_ioctl_wait_fences() 521 args.in.fences = (uint64_t)(uintptr_t)drm_fences; in amdgpu_ioctl_wait_fences() 538 drm_public int amdgpu_cs_wait_fences(struct amdgpu_cs_fence *fences, in amdgpu_cs_wait_fences() argument 548 if (!fences || !status || !fence_count) in amdgpu_cs_wait_fences() [all …]
|
/third_party/mesa3d/src/util/ |
D | u_queue.c | 674 struct util_queue_fence *fences; in util_queue_finish() local 688 fences = malloc(queue->num_threads * sizeof(*fences)); in util_queue_finish() 692 util_queue_fence_init(&fences[i]); in util_queue_finish() 693 util_queue_add_job(queue, &barrier, &fences[i], in util_queue_finish() 698 util_queue_fence_wait(&fences[i]); in util_queue_finish() 699 util_queue_fence_destroy(&fences[i]); in util_queue_finish() 703 free(fences); in util_queue_finish()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/synchronization/ |
D | vktSynchronizationBasicFenceTests.cpp | 138 std::vector<Move<VkFence>> fences; in basicSignaledCase() local 139 fences.reserve(config.numFences); in basicSignaledCase() 150 fences.push_back(createFence(vkd, device, &fenceCreateInfo)); in basicSignaledCase() 151 if (vkd.getFenceStatus(device, fences.back().get()) != VK_SUCCESS) in basicSignaledCase() 156 …std::transform(begin(fences), end(fences), std::back_inserter(rawFences), [](const Move<VkFence>& … in basicSignaledCase()
|
D | vktSynchronizationSmokeTests.cpp | 621 VkFence fences[2]; member 656 createFences(vkd, device, false, DE_LENGTH_OF_ARRAY(fences), fences); in TestContext() 661 destroyFences(vkd, device, DE_LENGTH_OF_ARRAY(fences), fences); in ~TestContext() 1073 fenceStatus = deviceInterface.getFenceStatus(device, testContext.fences[0]); in testFences() 1079 fenceStatus = deviceInterface.getFenceStatus(device, testContext.fences[1]); in testFences() 1087 VK_CHECK(deviceInterface.queueSubmit(queue, 1, &submitInfo, testContext.fences[0])); in testFences() 1090 waitStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[0], true, 0u); in testFences() 1099 …waitStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[0], true, DEFAULT_TIMEOU… in testFences() 1108 …waitStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[0], true, std::numeric_l… in testFences() 1116 waitStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[1], true, 1); in testFences() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/synchronization/ |
D | vktSynchronizationBasicFenceTests.cpp | 138 std::vector<Move<VkFence>> fences; in basicSignaledCase() local 139 fences.reserve(config.numFences); in basicSignaledCase() 150 fences.push_back(createFence(vkd, device, &fenceCreateInfo)); in basicSignaledCase() 151 if (vkd.getFenceStatus(device, fences.back().get()) != VK_SUCCESS) in basicSignaledCase() 156 …std::transform(begin(fences), end(fences), std::back_inserter(rawFences), [](const Move<VkFence>& … in basicSignaledCase()
|
D | vktSynchronizationSmokeTests.cpp | 621 VkFence fences[2]; member 656 createFences(vkd, device, false, DE_LENGTH_OF_ARRAY(fences), fences); in TestContext() 661 destroyFences(vkd, device, DE_LENGTH_OF_ARRAY(fences), fences); in ~TestContext() 1073 fenceStatus = deviceInterface.getFenceStatus(device, testContext.fences[0]); in testFences() 1079 fenceStatus = deviceInterface.getFenceStatus(device, testContext.fences[1]); in testFences() 1087 VK_CHECK(deviceInterface.queueSubmit(queue, 1, &submitInfo, testContext.fences[0])); in testFences() 1090 waitStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[0], true, 0u); in testFences() 1099 …waitStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[0], true, DEFAULT_TIMEOU… in testFences() 1108 …waitStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[0], true, std::numeric_l… in testFences() 1116 waitStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[1], true, 1); in testFences() [all …]
|
/third_party/mesa3d/src/virtio/vulkan/ |
D | vn_queue.c | 759 const VkFence *fences, in vn_find_first_signaled_fence() argument 763 VkResult result = vn_GetFenceStatus(device, fences[i]); in vn_find_first_signaled_fence() 771 vn_remove_signaled_fences(VkDevice device, VkFence *fences, uint32_t *count) in vn_remove_signaled_fences() argument 775 VkResult result = vn_GetFenceStatus(device, fences[i]); in vn_remove_signaled_fences() 779 fences[cur++] = fences[i]; in vn_remove_signaled_fences() 822 VkFence *fences = local_fences; in vn_WaitForFences() local 824 fences = in vn_WaitForFences() 825 vk_alloc(alloc, sizeof(*fences) * fenceCount, VN_DEFAULT_ALIGN, in vn_WaitForFences() 827 if (!fences) in vn_WaitForFences() 830 memcpy(fences, pFences, sizeof(*fences) * fenceCount); in vn_WaitForFences() [all …]
|
/third_party/openGLES/extensions/APPLE/ |
D | APPLE_fence.txt | 97 Are the fences sharable between multiple contexts? 126 void GenFencesAPPLE(sizei n, uint *fences); 128 void DeleteFencesAPPLE(sizei n, const uint *fences); 182 void GenFencesAPPLE(sizei n, uint *fences); 184 returns n previously unused fence names in fences. These names are marked 190 void DeleteFencesAPPLE(sizei n, const uint *fences); 192 fences contains n names of fences to be deleted. After a fence is deleted, 193 it has no state, and its name is again unused. Unused names in fences are 198 TestFenceAPPLE will return TRUE, for the sake of consistency. Note, fences 202 will not block on fences that have not been set.
|
/third_party/skia/third_party/externals/opengl-registry/extensions/APPLE/ |
D | APPLE_fence.txt | 97 Are the fences sharable between multiple contexts? 126 void GenFencesAPPLE(sizei n, uint *fences); 128 void DeleteFencesAPPLE(sizei n, const uint *fences); 182 void GenFencesAPPLE(sizei n, uint *fences); 184 returns n previously unused fence names in fences. These names are marked 190 void DeleteFencesAPPLE(sizei n, const uint *fences); 192 fences contains n names of fences to be deleted. After a fence is deleted, 193 it has no state, and its name is again unused. Unused names in fences are 198 TestFenceAPPLE will return TRUE, for the sake of consistency. Note, fences 202 will not block on fences that have not been set.
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/wsi/ |
D | vktWsiDisplayControlTests.cpp | 297 std::vector<VkFence>& fences) in initFences() argument 299 for (VkFence& fence : fences) in initFences() 305 std::vector<VkFence>& fences) in deinitFences() argument 307 for (VkFence& fence : fences) in deinitFences() 316 fences.clear(); in deinitFences() 1056 std::vector<VkFence> fences = std::vector<VkFence>(availableDisplays.size(), (VkFence)0); in testDisplayEvent() local 1068 VkFence& fence = fences[i]; in testDisplayEvent() 1076 deinitFences (vkd, device, fences); in testDisplayEvent() 1088 std::vector<VkFence> fences = std::vector<VkFence>(1, (VkFence)0); in testDeviceEvent() local 1097 VkResult result = vkd.registerDeviceEventEXT(device, &deviceEventInfo, DE_NULL, &fences[0]); in testDeviceEvent() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/wsi/ |
D | vktWsiDisplayControlTests.cpp | 297 std::vector<VkFence>& fences) in initFences() argument 299 for (VkFence& fence : fences) in initFences() 305 std::vector<VkFence>& fences) in deinitFences() argument 307 for (VkFence& fence : fences) in deinitFences() 316 fences.clear(); in deinitFences() 1056 std::vector<VkFence> fences = std::vector<VkFence>(availableDisplays.size(), (VkFence)0); in testDisplayEvent() local 1068 VkFence& fence = fences[i]; in testDisplayEvent() 1076 deinitFences (vkd, device, fences); in testDisplayEvent() 1088 std::vector<VkFence> fences = std::vector<VkFence>(1, (VkFence)0); in testDeviceEvent() local 1097 VkResult result = vkd.registerDeviceEventEXT(device, &deviceEventInfo, DE_NULL, &fences[0]); in testDeviceEvent() [all …]
|
D | vktWsiSharedPresentableImageTests.cpp | 231 std::vector<vk::VkFence>& fences) in initFences() argument 233 for (size_t ndx = 0; ndx < fences.size(); ndx++) in initFences() 234 fences[ndx] = createFence(vkd, device).disown(); in initFences() 239 std::vector<vk::VkFence>& fences) in deinitFences() argument 241 for (size_t ndx = 0; ndx < fences.size(); ndx++) in deinitFences() 243 if (fences[ndx] != (vk::VkFence)0) in deinitFences() 244 vkd.destroyFence(device, fences[ndx], DE_NULL); in deinitFences() 246 fences[ndx] = (vk::VkFence)0; in deinitFences() 249 fences.clear(); in deinitFences()
|
/third_party/vk-gl-cts/external/vulkan-docs/src/chapters/VK_EXT_swapchain_maintenance1/ |
D | SwapchainPresentFenceInfo.adoc | 16 * pname:pFences is a list of fences with pname:swapchainCount entries. 43 presentation operation when at least one of the associated fences is 44 signaled, and can: destroy the swapchain when the fences associated with all
|
/third_party/vk-gl-cts/external/vulkan-docs/src/appendices/ |
D | VK_KHR_external_fence.adoc | 23 memory using fences. 24 This extension enables an application to create fences from which non-Vulkan
|
D | VK_KHR_external_fence.txt | 25 memory using fences. 26 This extension enables an application to create fences from which non-Vulkan
|
/third_party/mesa3d/src/gallium/winsys/radeon/drm/ |
D | radeon_drm_cs.c | 552 if (bo->u.slab.fences[src]->num_cs_references) { in radeon_bo_slab_fence() 553 bo->u.slab.fences[dst] = bo->u.slab.fences[src]; in radeon_bo_slab_fence() 556 radeon_ws_bo_reference(&bo->u.slab.fences[src], NULL); in radeon_bo_slab_fence() 564 struct radeon_bo **new_fences = REALLOC(bo->u.slab.fences, in radeon_bo_slab_fence() 572 bo->u.slab.fences = new_fences; in radeon_bo_slab_fence() 577 bo->u.slab.fences[bo->u.slab.num_fences] = NULL; in radeon_bo_slab_fence() 578 radeon_ws_bo_reference(&bo->u.slab.fences[bo->u.slab.num_fences], fence); in radeon_bo_slab_fence()
|
D | radeon_drm_bo.c | 81 if (radeon_real_bo_is_busy(bo->u.slab.fences[num_idle])) { in radeon_bo_is_busy() 85 radeon_ws_bo_reference(&bo->u.slab.fences[num_idle], NULL); in radeon_bo_is_busy() 87 memmove(&bo->u.slab.fences[0], &bo->u.slab.fences[num_idle], in radeon_bo_is_busy() 88 (bo->u.slab.num_fences - num_idle) * sizeof(bo->u.slab.fences[0])); in radeon_bo_is_busy() 112 radeon_ws_bo_reference(&fence, bo->u.slab.fences[0]); in radeon_bo_wait_idle() 119 if (bo->u.slab.num_fences && fence == bo->u.slab.fences[0]) { in radeon_bo_wait_idle() 120 radeon_ws_bo_reference(&bo->u.slab.fences[0], NULL); in radeon_bo_wait_idle() 121 memmove(&bo->u.slab.fences[0], &bo->u.slab.fences[1], in radeon_bo_wait_idle() 122 (bo->u.slab.num_fences - 1) * sizeof(bo->u.slab.fences[0])); in radeon_bo_wait_idle() 835 radeon_ws_bo_reference(&bo->u.slab.fences[j], NULL); in radeon_bo_slab_free() [all …]
|
/third_party/mesa3d/src/vulkan/wsi/ |
D | wsi_common.c | 386 if (chain->fences) { in wsi_swapchain_finish() 388 chain->wsi->DestroyFence(chain->device, chain->fences[i], &chain->alloc); in wsi_swapchain_finish() 390 vk_free(&chain->alloc, chain->fences); in wsi_swapchain_finish() 782 swapchain->fences = vk_zalloc(alloc, in wsi_CreateSwapchainKHR() 783 sizeof (*swapchain->fences) * swapchain->image_count, in wsi_CreateSwapchainKHR() 784 sizeof (*swapchain->fences), in wsi_CreateSwapchainKHR() 786 if (!swapchain->fences) { in wsi_CreateSwapchainKHR() 1021 if (swapchain->fences[image_index] == VK_NULL_HANDLE) { in wsi_common_queue_present() 1029 &swapchain->fences[image_index]); in wsi_common_queue_present() 1047 wsi->WaitForFences(device, 1, &swapchain->fences[image_index], in wsi_common_queue_present() [all …]
|