Lines Matching refs:vkDevice

347 	const VkDevice							vkDevice				= context.getDevice();
351 createCommandPool(vk, vkDevice, 0u, queueFamilyIndex);
359 const VkDevice vkDevice = context.getDevice();
372 createCommandPool(vk, vkDevice, &cmdPoolParams, allocationCallbacks);
380 const VkDevice vkDevice = context.getDevice();
392 createCommandPool(vk, vkDevice, &cmdPoolParams, DE_NULL);
399 const VkDevice vkDevice = context.getDevice();
411 createCommandPool(vk, vkDevice, &cmdPoolParams, DE_NULL);
419 const VkDevice vkDevice = context.getDevice();
431 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams, DE_NULL));
433 VK_CHECK(vk.resetCommandPool(vkDevice, *cmdPool, VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT));
441 const VkDevice vkDevice = context.getDevice();
453 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams, DE_NULL));
455 VK_CHECK(vk.resetCommandPool(vkDevice, *cmdPool, 0u));
486 const VkDevice vkDevice = context.getDevice();
498 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams, DE_NULL));
509 allocateCommandBuffer(vk, vkDevice, &cmdBufParams),
510 allocateCommandBuffer(vk, vkDevice, &cmdBufParams)
519 if (!executeCommandBuffer(vkDevice, vk, queue, *(commandBuffers[0])) && canFinishEarlier)
521 if (!executeCommandBuffer(vkDevice, vk, queue, *(commandBuffers[1]), true) && canFinishEarlier)
524 VK_CHECK(vk.resetCommandPool(vkDevice, *cmdPool, VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT));
526 if (!executeCommandBuffer(vkDevice, vk, queue, *(commandBuffers[0])) && canFinishEarlier)
528 if (!executeCommandBuffer(vkDevice, vk, queue, *(commandBuffers[1])) && canFinishEarlier)
532 const Unique<VkCommandBuffer> afterResetCommandBuffers(allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
533 if (!executeCommandBuffer(vkDevice, vk, queue, *afterResetCommandBuffers) && canFinishEarlier)
544 const VkDevice vkDevice = context.getDevice();
555 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
566 const Unique<VkCommandBuffer> cmdBuf (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
574 const VkDevice vkDevice = context.getDevice();
585 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
612 allocateCommandBuffers(vk, vkDevice, &cmdBufParams, cmdBuffers);
622 const VkDevice vkDevice = context.getDevice();
633 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
644 const Unique<VkCommandBuffer> cmdBuf (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
652 const VkDevice vkDevice = context.getDevice();
663 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
690 allocateCommandBuffers(vk, vkDevice, &cmdBufParams, cmdBuffers);
700 const VkDevice vkDevice = context.getDevice();
712 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
723 const Unique<VkCommandBuffer> primCmdBuf (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
726 const Unique<VkEvent> event (createEvent(vk, vkDevice));
729 VK_CHECK(vk.resetEvent(vkDevice, *event));
742 submitCommandsAndWait(vk, vkDevice, queue, primCmdBuf.get());
745 VkResult result = vk.getEventStatus(vkDevice,*event);
754 const VkDevice vkDevice = context.getDevice();
772 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
783 const Unique<VkCommandBuffer> primCmdBuf (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
787 events.push_back(VkEventSp(new vk::Unique<VkEvent>(createEvent(vk, vkDevice))));
800 submitCommandsAndWait(vk, vkDevice, queue, primCmdBuf.get());
808 if (vk.getEventStatus(vkDevice, events[ndx]->get()) != VK_EVENT_SET)
823 const VkDevice vkDevice = context.getDevice();
840 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
851 const Unique<VkCommandBuffer> cmdBuf (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
853 const Unique<VkEvent> event (createEvent(vk, vkDevice));
863 submitCommandsAndWait(vk, vkDevice, queue, cmdBuf.get());
866 if (vk.getEventStatus(vkDevice, *event) != VK_EVENT_SET)
870 vk.resetEvent(vkDevice, *event);
871 if(vk.getEventStatus(vkDevice, *event) != VK_EVENT_RESET)
881 submitCommandsAndWait(vk, vkDevice, queue, cmdBuf.get());
884 if(vk.getEventStatus(vkDevice, *event) == VK_EVENT_RESET)
903 const VkDevice vkDevice = context.getDevice();
906 const Unique<VkFence> fence (createFence(vk, vkDevice));
922 VK_CHECK(vk.waitForFences(vkDevice, 1u, &fence.get(), 0u, INFINITE_TIMEOUT));
926 if (vk.getEventStatus(vkDevice, **events[eventNdx]) != VK_EVENT_SET)
928 vk.resetEvent(vkDevice, **events[eventNdx]);
935 const VkDevice vkDevice,
949 VK_CHECK(vk.allocateCommandBuffers(vkDevice, &cmdBufParams, pCommandBuffers));
987 const VkDevice vkDevice = context.getDevice();
991 createCommadBuffers(vk, vkDevice, 1u, pool, VK_COMMAND_BUFFER_LEVEL_PRIMARY, &cmdBuffer[0]);
997 vk.freeCommandBuffers(vkDevice, pool, 1u, &cmdBuffer[0]);
1006 const VkDevice vkDevice = context.getDevice();
1021 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
1025 events.push_back(makeSharedPtr(createEvent(vk, vkDevice)));
1029 createCommadBuffers(vk, vkDevice, cmdBufferCount, *cmdPool, cmdBufferLevel, &cmdBuffers[0]);
1039 createCommadBuffers(vk, vkDevice, static_cast<deUint32>(cmdBuffersPeak.size()), *cmdPool, cmdBufferLevel, &cmdBuffersPeak[0]);
1055 vk.freeCommandBuffers(vkDevice, *cmdPool, static_cast<deUint32>(cmdBuffersPeak.size()), &cmdBuffersPeak[0]);
1058 vk.trimCommandPool(vkDevice, *cmdPool, (VkCommandPoolTrimFlags)0);
1076 vk.freeCommandBuffers(vkDevice, *cmdPool, 1u, &cmdBuffers[bufferNdx]);
1077 createCommadBuffers(vk, vkDevice, 1u, *cmdPool, cmdBufferLevel, &cmdBuffers[bufferNdx]);
1090 const VkDevice vkDevice = context.getDevice();
1101 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
1112 const Unique<VkCommandBuffer> primCmdBuf (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
1115 const Unique<VkEvent> event (createEvent(vk, vkDevice));
1130 const VkDevice vkDevice = context.getDevice();
1142 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
1153 const Unique<VkCommandBuffer> primCmdBuf (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
1156 const Unique<VkEvent> event (createEvent(vk, vkDevice));
1159 VK_CHECK(vk.resetEvent(vkDevice, *event));
1186 submitCommandsAndWait(vk, vkDevice, queue, primCmdBuf.get());
1193 const VkDevice vkDevice = context.getDevice();
1204 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
1215 const Unique<VkCommandBuffer> secCmdBuf (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
1237 const Unique<VkEvent> event (createEvent(vk, vkDevice));
1252 const VkDevice vkDevice = context.getDevice();
1264 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
1265 const Unique<VkCommandPool> secCmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
1275 const Unique<VkCommandBuffer> primCmdBuf (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
1285 const Unique<VkCommandBuffer> secCmdBuf (allocateCommandBuffer(vk, vkDevice, &secCmdBufParams));
1307 const Unique<VkEvent> event (createEvent(vk, vkDevice));
1310 VK_CHECK(vk.resetEvent(vkDevice, *event));
1346 submitCommandsAndWait(vk, vkDevice, queue, primCmdBuf.get());
1353 const VkDevice vkDevice = context.getDevice();
1365 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
1376 const Unique<VkCommandBuffer> primCmdBuf (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
1379 const Unique<VkEvent> event (createEvent(vk, vkDevice));
1382 VK_CHECK(vk.resetEvent(vkDevice, *event));
1395 submitCommandsAndWait(vk, vkDevice, queue, primCmdBuf.get());
1398 VkResult result = vk.getEventStatus(vkDevice,*event);
1403 VK_CHECK(vk.resetEvent(vkDevice, *event));
1405 submitCommandsAndWait(vk, vkDevice, queue, primCmdBuf.get());
1408 result = vk.getEventStatus(vkDevice,*event);
1417 const VkDevice vkDevice = context.getDevice();
1435 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
1436 const Unique<VkCommandPool> secCmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
1448 const Unique<VkCommandBuffer> primCmdBuf1 (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
1449 const Unique<VkCommandBuffer> primCmdBuf2 (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
1460 const Unique<VkCommandBuffer> secCmdBuf (allocateCommandBuffer(vk, vkDevice, &secCmdBufParams));
1482 const Unique<VkEvent> event (createEvent(vk, vkDevice));
1485 VK_CHECK(vk.resetEvent(vkDevice, *event));
1508 submitCommandsAndWait(vk, vkDevice, queue, primCmdBuf1.get());
1511 VkResult result = vk.getEventStatus(vkDevice,*event);
1519 VK_CHECK(vk.resetEvent(vkDevice, *event));
1530 submitCommandsAndWait(vk, vkDevice, queue, primCmdBuf2.get());
1533 result = vk.getEventStatus(vkDevice,*event);
1542 const VkDevice vkDevice = context.getDevice();
1559 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
1570 const Unique<VkCommandBuffer> primCmdBuf (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
1573 const Unique<VkEvent> event (createEvent(vk, vkDevice));
1576 VK_CHECK(vk.resetEvent(vkDevice, *event));
1589 submitCommandsAndWait(vk, vkDevice, queue, primCmdBuf.get());
1592 VkResult result = vk.getEventStatus(vkDevice,*event);
1607 submitCommandsAndWait(vk, vkDevice, queue, primCmdBuf.get());
1610 result = vk.getEventStatus(vkDevice,*event);
1619 const VkDevice vkDevice = context.getDevice();
1637 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
1638 const Unique<VkCommandPool> secCmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
1650 const Unique<VkCommandBuffer> primCmdBuf1 (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
1651 const Unique<VkCommandBuffer> primCmdBuf2 (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
1662 const Unique<VkCommandBuffer> secCmdBuf (allocateCommandBuffer(vk, vkDevice, &secCmdBufParams));
1684 const Unique<VkEvent> event (createEvent(vk, vkDevice));
1687 VK_CHECK(vk.resetEvent(vkDevice, *event));
1710 submitCommandsAndWait(vk, vkDevice, queue, primCmdBuf1.get());
1713 VkResult result = vk.getEventStatus(vkDevice,*event);
1721 VK_CHECK(vk.resetEvent(vkDevice, *event));
1744 submitCommandsAndWait(vk, vkDevice, queue, primCmdBuf2.get());
1747 result = vk.getEventStatus(vkDevice,*event);
1811 const VkDevice vkDevice = context.getDevice();
1816 const ComputeInstanceResultBuffer result(vk, vkDevice, allocator, 0.0f);
1825 const Unique<VkCommandPool> cmdPool(createCommandPool(vk, vkDevice, &cmdPoolParams));
1836 const Unique<VkCommandBuffer> primCmdBuf(allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
1847 const Unique<VkCommandBuffer> secCmdBuf(allocateCommandBuffer(vk, vkDevice, &secCmdBufParams));
1890 Unique<VkPipelineLayout> pipelineLayout(createPipelineLayout(vk, vkDevice, &layoutCreateInfo));
1892 const Unique<VkShaderModule> computeModule(createShaderModule(vk, vkDevice, context.getBinaryCollection().get("compute_increment"), (VkShaderModuleCreateFlags)0u));
1929 const Unique<VkPipeline> pipeline(createComputePipeline(vk, vkDevice, (VkPipelineCache)0u, &pipelineCreateInfo));
1954 submitCommandsAndWait(vk, vkDevice, queue, primCmdBuf.get());
2152 const VkDevice vkDevice = context.getDevice();
2157 const ComputeInstanceResultBuffer result(vk, vkDevice, allocator, 0.0f);
2166 const Unique<VkCommandPool> cmdPool(createCommandPool(vk, vkDevice, &cmdPoolParams));
2179 const Unique<VkCommandBuffer> primCmdBufOne(allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
2180 const Unique<VkCommandBuffer> primCmdBufTwo(allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
2194 const Unique<VkCommandBuffer> secCmdBuf(allocateCommandBuffer(vk, vkDevice, &secCmdBufParams));
2245 Unique<VkPipelineLayout> pipelineLayout(createPipelineLayout(vk, vkDevice, &layoutCreateInfo));
2247 const Unique<VkShaderModule> computeModule(createShaderModule(vk, vkDevice, context.getBinaryCollection().get("compute_increment"), (VkShaderModuleCreateFlags)0u));
2271 const Unique<VkPipeline> pipeline(createComputePipeline(vk, vkDevice, (VkPipelineCache)0u, &pipelineCreateInfo));
2298 const Unique<VkFence> fence(createFence(vk, vkDevice));
2317 VK_CHECK(vk.waitForFences(vkDevice, 1, &fence.get(), 0u, INFINITE_TIMEOUT));
2330 const VkDevice vkDevice = context.getDevice();
2344 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
2355 const Unique<VkCommandBuffer> primCmdBuf (allocateCommandBuffer(vk, vkDevice, &primCmdBufParams));
2366 const Unique<VkCommandBuffer> secCmdBuf (allocateCommandBuffer(vk, vkDevice, &secCmdBufParams));
2404 Unique<VkQueryPool> queryPool (createQueryPool(vk, vkDevice, &queryPoolCreateInfo));
2425 const VkDevice vkDevice = context.getDevice();
2439 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
2450 const Unique<VkCommandBuffer> primCmdBuf (allocateCommandBuffer(vk, vkDevice, &primCmdBufParams));
2461 const Unique<VkCommandBuffer> secCmdBuf (allocateCommandBuffer(vk, vkDevice, &secCmdBufParams));
2499 Unique<VkQueryPool> queryPool (createQueryPool(vk, vkDevice, &queryPoolCreateInfo));
2520 const VkDevice vkDevice = context.getDevice();
2534 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
2545 const Unique<VkCommandBuffer> primCmdBuf (allocateCommandBuffer(vk, vkDevice, &primCmdBufParams));
2556 const Unique<VkCommandBuffer> secCmdBuf (allocateCommandBuffer(vk, vkDevice, &secCmdBufParams));
2594 Unique<VkQueryPool> queryPool (createQueryPool(vk, vkDevice, &queryPoolCreateInfo));
2616 const VkDevice vkDevice = context.getDevice();
2630 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
2642 allocateCommandBuffers(vk, vkDevice, &cmdBufParams, cmdBuffers);
2655 events.push_back(VkEventSp(new vk::Unique<VkEvent>(createEvent(vk, vkDevice))));
2672 const Unique<VkFence> fence (createFence(vk, vkDevice));
2690 VK_CHECK(vk.waitForFences(vkDevice, 1u, &fence.get(), VK_TRUE, INFINITE_TIMEOUT));
2697 if (vk.getEventStatus(vkDevice, events[ndx]->get()) != VK_EVENT_SET)
2712 const VkDevice vkDevice = context.getDevice();
2726 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
2738 allocateCommandBuffers(vk, vkDevice, &cmdBufParams, cmdBuffers);
2750 events.push_back(VkEventSp(new vk::Unique<VkEvent>(createEvent(vk, vkDevice))));
2763 const Unique<VkFence> fenceZero (createFence(vk, vkDevice));
2764 const Unique<VkFence> fenceOne (createFence(vk, vkDevice));
2807 VK_CHECK(vk.waitForFences(vkDevice, (deUint32)DE_LENGTH_OF_ARRAY(fences), fences, VK_TRUE, INFINITE_TIMEOUT));
2812 if (vk.getEventStatus(vkDevice, events[0]->get()) == VK_EVENT_SET)
2822 const VkDevice vkDevice = context.getDevice();
2834 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
2847 const Unique<VkCommandBuffer> primCmdBuf1 (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
2848 const Unique<VkCommandBuffer> primCmdBuf2 (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
2859 const Unique<VkEvent> event1 (createEvent(vk, vkDevice));
2860 const Unique<VkEvent> event2 (createEvent(vk, vkDevice));
2863 VK_CHECK(vk.resetEvent(vkDevice, *event1));
2864 VK_CHECK(vk.resetEvent(vkDevice, *event2));
2889 const Unique<VkFence> fence (createFence(vk, vkDevice));
2892 const Unique <VkSemaphore> semaphore (createSemaphore(vk, vkDevice));
2912 VK_CHECK(vk.waitForFences(vkDevice, 1, &fence.get(), 0u, INFINITE_TIMEOUT));
2915 VkResult result = vk.getEventStatus(vkDevice,*event1);
2936 VK_CHECK(vk.resetFences(vkDevice, 1u, &fence.get()));
2942 VK_CHECK(vk.waitForFences(vkDevice, 1, &fence.get(), 0u, INFINITE_TIMEOUT));
2946 result = vk.getEventStatus(vkDevice,*event1);
2960 const VkDevice vkDevice = context.getDevice();
2972 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
2985 const Unique<VkCommandBuffer> primCmdBuf (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
2996 const Unique<VkEvent> event (createEvent(vk, vkDevice));
2999 VK_CHECK(vk.resetEvent(vkDevice, *event));
3013 const Unique<VkFence> fence (createFence(vk, vkDevice));
3022 semaphoreArray[idx] = createSemaphore(vk, vkDevice);
3044 VK_CHECK(vk.waitForFences(vkDevice, 1, &fence.get(), 0u, INFINITE_TIMEOUT));
3047 VkResult result = vk.getEventStatus(vkDevice,*event);
3052 VK_CHECK(vk.resetEvent(vkDevice, *event));
3055 VK_CHECK(vk.resetFences(vkDevice, 1u, &fence.get()));
3082 VK_CHECK(vk.waitForFences(vkDevice, 1, &fence.get(), 0u, 1000 * 1000 * 1000));
3086 VkResult result = vk.getEventStatus(vkDevice,*event);
3091 VK_CHECK(vk.resetFences(vkDevice, 1u, &fence.get()));
3094 VK_CHECK(vk.resetEvent(vkDevice, *event));
3102 const VkDevice vkDevice = context.getDevice();
3116 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
3128 allocateCommandBuffers(vk, vkDevice, &cmdBufParams, cmdBuffers);
3140 events.push_back(VkEventSp(new vk::Unique<VkEvent>(createEvent(vk, vkDevice))));
3153 const Unique<VkFence> fence (createFence(vk, vkDevice));
3190 VK_CHECK(vk.waitForFences(vkDevice, 1u, &fence.get(), VK_TRUE, INFINITE_TIMEOUT));
3196 if (vk.getEventStatus(vkDevice, events[0]->get()) != VK_EVENT_SET || vk.getEventStatus(vkDevice, events[1]->get()) != VK_EVENT_SET)
3211 const VkDevice vkDevice = context.getDevice();
3224 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
3236 allocateCommandBuffers(vk, vkDevice, &cmdBufParams, cmdBuffers);
3248 events.push_back(VkEventSp(new vk::Unique<VkEvent>(createEvent(vk, vkDevice))));
3291 const Unique<VkFence> fence (createFence(vk, vkDevice));
3300 VK_CHECK(vk.waitForFences(vkDevice, 1u, &fence.get(), VK_TRUE, INFINITE_TIMEOUT));
3308 const VkDevice vkDevice = context.getDevice();
3320 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
3331 const Unique<VkCommandBuffer> primCmdBuf (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
3342 const Unique<VkCommandBuffer> secCmdBuf (allocateCommandBuffer(vk, vkDevice, &secCmdBufParams));
3372 const Unique<VkEvent> event (createEvent(vk, vkDevice));
3375 VK_CHECK(vk.resetEvent(vkDevice, *event));
3396 submitCommandsAndWait(vk, vkDevice, queue, primCmdBuf.get());
3399 VkResult result = vk.getEventStatus(vkDevice, *event);
3409 const VkDevice vkDevice = context.getDevice();
3421 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams));
3432 const Unique<VkCommandBuffer> primCmdBufOne (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
3433 const Unique<VkCommandBuffer> primCmdBufTwo (allocateCommandBuffer(vk, vkDevice, &cmdBufParams));
3445 allocateCommandBuffers(vk, vkDevice, &secCmdBufParams, cmdBuffers);
3475 const Unique<VkEvent> eventOne (createEvent(vk, vkDevice));
3478 VK_CHECK(vk.resetEvent(vkDevice, *eventOne));
3512 const Unique<VkFence> fenceOne (createFence(vk, vkDevice));
3513 const Unique<VkFence> fenceTwo (createFence(vk, vkDevice));
3517 const auto semaphore = createSemaphoreType(vk, vkDevice, VK_SEMAPHORE_TYPE_TIMELINE);
3568 VK_CHECK(vk.signalSemaphore(vkDevice, &signalInfo));
3571 VK_CHECK(vk.waitForFences(vkDevice, 1, &fenceOne.get(), 0u, INFINITE_TIMEOUT));
3574 VK_CHECK(vk.waitForFences(vkDevice, 1, &fenceTwo.get(), 0u, INFINITE_TIMEOUT));
3576 TCU_CHECK(vk.getEventStatus(vkDevice, *eventOne) == vk::VK_EVENT_SET);
3831 const VkDevice vkDevice = context.getDevice();
3841 const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex));
3842 const Unique<VkCommandBuffer> cmdBuffer (allocateCommandBuffer(vk, vkDevice, *cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY));
3843 const Unique<VkEvent> globalEvent (createEvent(vk, vkDevice));
3845 VK_CHECK(vk.resetEvent(vkDevice, *globalEvent));
3878 Move <VkRenderPass> renderPass = createRenderPass(vk, vkDevice, &renderPassCreateInfo);
3885 Move <VkFramebuffer> framebuffer = createFramebuffer(vk, vkDevice, &framebufferCreateInfo);
3906 const Unique<VkEvent> localEvent(createEvent(vk, vkDevice));
3907 VK_CHECK(vk.resetEvent(vkDevice, *localEvent));
3918 VK_CHECK(vk.resetEvent(vkDevice, *globalEvent));
3927 submitCommandsAndWait(vk, vkDevice, queue, *cmdBuffer);
3930 VkResult result = vk.getEventStatus(vkDevice, *globalEvent);