• Home
  • Raw
  • Download

Lines Matching refs:m_device

51 …(PFN_vkGetBufferMemoryRequirements2)vkGetDeviceProcAddr(m_device->device(), "vkGetBufferMemoryRequ…  in TEST_F()
84 VkResult err = vkCreateRenderPass(m_device->device(), &rpci, nullptr, &rp); in TEST_F()
87 VkImageObj image(m_device); in TEST_F()
93 err = vkCreateFramebuffer(m_device->device(), &fbci, nullptr, &fb); in TEST_F()
112 …VkCommandPoolObj pool(m_device, m_device->graphics_queue_node_index_, VK_COMMAND_POOL_CREATE_RESET… in TEST_F()
113 VkCommandBufferObj secondary(m_device, &pool, VK_COMMAND_BUFFER_LEVEL_SECONDARY); in TEST_F()
148 vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE); in TEST_F()
149 vkQueueWaitIdle(m_device->m_queue); in TEST_F()
151 vkDestroyFramebuffer(m_device->device(), fb, nullptr); in TEST_F()
152 vkDestroyRenderPass(m_device->device(), rp, nullptr); in TEST_F()
174 vkCreateRenderPass(m_device->device(), &rpci, nullptr, &rp); in TEST_F()
176 vkDestroyRenderPass(m_device->device(), rp, nullptr); in TEST_F()
206 VkResult err = vkCreateRenderPass(m_device->device(), &rpci, nullptr, &rp); in TEST_F()
210 VkImageObj image(m_device); in TEST_F()
226 err = vkCreateImageView(m_device->device(), &ivci, nullptr, &view); in TEST_F()
231 err = vkCreateFramebuffer(m_device->device(), &fci, nullptr, &fb); in TEST_F()
248 vkDestroyFramebuffer(m_device->device(), fb, nullptr); in TEST_F()
249 vkDestroyRenderPass(m_device->device(), rp, nullptr); in TEST_F()
250 vkDestroyImageView(m_device->device(), view, nullptr); in TEST_F()
294 vkCreateRenderPass(m_device->device(), &rpci, NULL, &rp); in TEST_F()
297 vkDestroyRenderPass(m_device->device(), rp, NULL); in TEST_F()
334 err = vkCreateRenderPass(m_device->device(), &rpci, nullptr, &rp); in TEST_F()
338 VkImageObj image(m_device); in TEST_F()
346 err = vkCreateFramebuffer(m_device->device(), &fci, nullptr, &fb); in TEST_F()
365 vkDestroyFramebuffer(m_device->device(), fb, nullptr); in TEST_F()
366 vkDestroyRenderPass(m_device->device(), rp, nullptr); in TEST_F()
385 VkResult err = vkCreateRenderPass(m_device->device(), &rpci, nullptr, &rp); in TEST_F()
391 err = vkCreateFramebuffer(m_device->device(), &fci, nullptr, &fb); in TEST_F()
403 vkDestroyFramebuffer(m_device->device(), fb, nullptr); in TEST_F()
404 vkDestroyRenderPass(m_device->device(), rp, nullptr); in TEST_F()
426 m_depthStencil->Init(m_device, 100, 100, depth_stencil_fmt, in TEST_F()
494 fence.init(*m_device, VkFenceObj::create_info()); in TEST_F()
503 VkImageObj destImage(m_device); in TEST_F()
507 VkCommandBufferObj cmdbuf(m_device, m_commandPool); in TEST_F()
552 vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE); in TEST_F()
555 vkQueueWaitIdle(m_device->m_queue); in TEST_F()
556 vkDestroyRenderPass(m_device->device(), rp, nullptr); in TEST_F()
557 vkDestroyFramebuffer(m_device->device(), fb, nullptr); in TEST_F()
620 VkResult err = vkCreateRenderPass(m_device->device(), &rpci, nullptr, &rp); in TEST_F()
623 VkImageObj image(m_device); in TEST_F()
639 err = vkCreateImageView(m_device->device(), &ivci, nullptr, &view); in TEST_F()
644 err = vkCreateFramebuffer(m_device->device(), &fci, nullptr, &fb); in TEST_F()
656 vkDestroyImageView(m_device->device(), view, NULL); in TEST_F()
657 vkDestroyRenderPass(m_device->device(), rp, NULL); in TEST_F()
658 vkDestroyFramebuffer(m_device->device(), fb, NULL); in TEST_F()
712 VkShaderObj vs(m_device, bindStateVertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
713 VkShaderObj fs(m_device, bindStateFragShaderText, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
715 VkPipelineObj pipe(m_device); in TEST_F()
726 const VkPipelineLayoutObj pl(m_device); in TEST_F()
735 vkDestroyRenderPass(m_device->device(), rp, nullptr); in TEST_F()
744 vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE); in TEST_F()
746 vkQueueWaitIdle(m_device->m_queue); in TEST_F()
764 buffer.init(*m_device, bci, mem_props); in TEST_F()
775 VkResult res = vkCreateQueryPool(m_device->handle(), &query_pool_info, NULL, &query_pool); in TEST_F()
801 vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE); in TEST_F()
803 vkQueueWaitIdle(m_device->m_queue); in TEST_F()
805 …res = vkGetQueryPoolResults(m_device->handle(), query_pool, 0, 2, sizeof(samples_passed), samples_… in TEST_F()
809 vkDestroyQueryPool(m_device->handle(), query_pool, NULL); in TEST_F()
881 uint32_t no_gfx = m_device->QueueFamilyWithoutCapabilities(VK_QUEUE_GRAPHICS_BIT); in TEST_F()
886 VkQueueObj *no_gfx_queue = m_device->queue_family_queues(no_gfx)[0].get(); in TEST_F()
888 VkCommandPoolObj no_gfx_pool(m_device, no_gfx, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT); in TEST_F()
889 …VkCommandBufferObj no_gfx_cb(m_device, &no_gfx_pool, VK_COMMAND_BUFFER_LEVEL_PRIMARY, no_gfx_queue… in TEST_F()
892 VkImageObj image(m_device); in TEST_F()
898 image_barrier.srcQueueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
906 image_barrier.dstQueueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
923 uint32_t no_gfx = m_device->QueueFamilyWithoutCapabilities(VK_QUEUE_GRAPHICS_BIT); in TEST_F()
928 VkQueueObj *no_gfx_queue = m_device->queue_family_queues(no_gfx)[0].get(); in TEST_F()
930 VkCommandPoolObj no_gfx_pool(m_device, no_gfx, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT); in TEST_F()
931 …VkCommandBufferObj no_gfx_cb(m_device, &no_gfx_pool, VK_COMMAND_BUFFER_LEVEL_PRIMARY, no_gfx_queue… in TEST_F()
936 … VkConstantBufferObj buffer(m_device, buffer_size, data, VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT); in TEST_F()
941 buffer_barrier.srcQueueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
942 buffer_barrier.dstQueueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
953 buffer_barrier.dstQueueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
968 VkImageObj image(m_device); in TEST_F()
987 VkCommandBufferObj cmdbuf(m_device, m_commandPool); in TEST_F()
1006 OneOffDescriptorSet src_descriptor_set(m_device, { in TEST_F()
1011 OneOffDescriptorSet dst_descriptor_set(m_device, { in TEST_F()
1029 vkUpdateDescriptorSets(m_device->device(), 0, NULL, copy_size, copy_ds_update); in TEST_F()
1042 VkCommandBufferObj secondary(m_device, m_commandPool, VK_COMMAND_BUFFER_LEVEL_SECONDARY); in TEST_F()
1085 if (!m_device->phy().features().tessellationShader) { in TEST_F()
1092 VkShaderObj vs(m_device, bindStateVertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
1093 … VkShaderObj tcs(m_device, bindStateTscShaderText, VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT, this); in TEST_F()
1094 …VkShaderObj tes(m_device, bindStateTeshaderText, VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT, this… in TEST_F()
1095 VkShaderObj fs(m_device, bindStateFragShaderText, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
1156 VkShaderObj vs(m_device, spv_source, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
1236 …VkResult err = vkCreateShaderModule(m_device->handle(), &module_create_info, NULL, &shader_module); in TEST_F()
1239 vkDestroyShaderModule(m_device->handle(), shader_module, NULL); in TEST_F()
1306 VkShaderObj vs(m_device, spv_source, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
1423 if (m_device->props.limits.maxPerStageDescriptorStorageBuffers < dslb_size) { in TEST_F()
1432 …pipe.cs_.reset(new VkShaderObj(m_device, bindStateMinimalShaderText, VK_SHADER_STAGE_COMPUTE_BIT, … in TEST_F()
1454 if (!m_device->phy().features().multiViewport) { in TEST_F()
1468 VkShaderObj vs(m_device, vsSource, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
1493 if (!m_device->phy().features().multiViewport) { in TEST_F()
1507 VkShaderObj vs(m_device, vsSource, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
1532 VkShaderObj vs(m_device, bindStateVertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
1533 VkShaderObj fs(m_device, fsSource, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
1535 VkPipelineObj pipe(m_device); in TEST_F()
1543 VkDescriptorSetObj descriptorSet(m_device); in TEST_F()
1584 VkShaderObj vs(m_device, bindStateVertPointSizeShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
1585 VkShaderObj ps(m_device, bindStateFragShaderText, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
1604 …if ((!m_device->phy().features().geometryShader) || (!m_device->phy().features().shaderTessellatio… in TEST_F()
1612 VkShaderObj vs(m_device, bindStateVertPointSizeShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
1613 VkShaderObj gs(m_device, bindStateGeomPointSizeShaderText, VK_SHADER_STAGE_GEOMETRY_BIT, this); in TEST_F()
1614 VkShaderObj ps(m_device, bindStateFragShaderText, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
1701 VkShaderObj vs(m_device, LoosePointSizeWrite, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
1702 VkShaderObj ps(m_device, bindStateFragShaderText, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
1730 VkImageObj uncomp_10x10t_image(m_device); // Size = 10 * 10 * 64 = 6400 in TEST_F()
1731 VkImageObj comp_10x10b_40x40t_image(m_device); // Size = 40 * 40 * 4 = 6400 in TEST_F()
1795 err = vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool_one); in TEST_F()
1807 const VkDescriptorSetLayoutObj ds_layout(m_device, {dsl_binding}); in TEST_F()
1814 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info, &descriptorSet); in TEST_F()
1817 err = vkFreeDescriptorSets(m_device->device(), ds_pool_one, 1, &descriptorSet); in TEST_F()
1819 vkDestroyDescriptorPool(m_device->device(), ds_pool_one, NULL); in TEST_F()
1830 cmd_pool_info.queueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
1835 … VkResult res = vkCreateCommandPool(m_device->handle(), &cmd_pool_info, NULL, &secondary_cmd_pool); in TEST_F()
1842 res = vkAllocateCommandBuffers(m_device->handle(), &cmdalloc, &secondary_cmds); in TEST_F()
1869 vkDestroyCommandPool(m_device->handle(), secondary_cmd_pool, NULL); in TEST_F()
1871 res = vkResetCommandPool(m_device->handle(), m_commandPool->handle(), 0); in TEST_F()
1888 …ASSERT_VK_SUCCESS(vkAllocateCommandBuffers(m_device->device(), &command_buffer_allocate_info, &sec… in TEST_F()
1938 …ASSERT_VK_SUCCESS(vkAllocateCommandBuffers(m_device->device(), &command_buffer_allocate_info, &sec… in TEST_F()
1941 …ASSERT_VK_SUCCESS(vkAllocateCommandBuffers(m_device->device(), &command_buffer_allocate_info, &pri… in TEST_F()
1951 VkImageObj image(m_device); in TEST_F()
2000 err = vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE); in TEST_F()
2003 err = vkDeviceWaitIdle(m_device->device()); in TEST_F()
2005 vkFreeCommandBuffers(m_device->device(), m_commandPool->handle(), 1, &secondary_command_buffer); in TEST_F()
2006 vkFreeCommandBuffers(m_device->device(), m_commandPool->handle(), 1, &primary_command_buffer); in TEST_F()
2034 VkImageObj image(m_device); in TEST_F()
2039 OneOffDescriptorSet descriptor_set(m_device, { in TEST_F()
2065 vkUpdateDescriptorSets(m_device->device(), 1, &descriptor_write, 0, NULL); in TEST_F()
2083 buffer.init(*m_device, buffer_create_info); in TEST_F()
2085 OneOffDescriptorSet descriptor_set(m_device, { in TEST_F()
2112 vkUpdateDescriptorSets(m_device->device(), 1, &descriptor_write, 0, NULL); in TEST_F()
2130 buffer.init(*m_device, buffer_create_info); in TEST_F()
2138 VkResult err = vkCreateBufferView(m_device->device(), &buff_view_ci, NULL, &buffer_view); in TEST_F()
2140 OneOffDescriptorSet descriptor_set(m_device, in TEST_F()
2163 vkUpdateDescriptorSets(m_device->device(), 1, &descriptor_write, 0, NULL); in TEST_F()
2167 vkDestroyBufferView(m_device->device(), buffer_view, NULL); in TEST_F()
2177 OneOffDescriptorSet descriptor_set(m_device, { in TEST_F()
2183 VkResult err = vkCreateSampler(m_device->device(), &sampler_ci, NULL, &sampler); in TEST_F()
2186 const VkPipelineLayoutObj pipeline_layout(m_device, {&descriptor_set.layout_}); in TEST_F()
2196 vkDestroySampler(m_device->device(), sampler, NULL); in TEST_F()
2211 OneOffDescriptorSet ds(m_device, { in TEST_F()
2224 err = vkCreateBuffer(m_device->device(), &buff_ci, NULL, &buffer); in TEST_F()
2234 vkGetBufferMemoryRequirements(m_device->device(), buffer, &mem_reqs); in TEST_F()
2235 bool pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &mem_alloc, 0); in TEST_F()
2238 vkDestroyBuffer(m_device->device(), buffer, NULL); in TEST_F()
2247 err = vkAllocateMemory(m_device->device(), &mem_alloc, NULL, &mem); in TEST_F()
2249 err = vkBindBufferMemory(m_device->device(), buffer, mem, 0); in TEST_F()
2267 vkUpdateDescriptorSets(m_device->device(), 1, &descriptor_write, 0, NULL); in TEST_F()
2271 vkFreeMemory(m_device->device(), mem, NULL); in TEST_F()
2272 vkDestroyBuffer(m_device->device(), buffer, NULL); in TEST_F()
2312 const VkDescriptorSetLayoutObj ds_layout(m_device, {dsl_binding}); in TEST_F()
2314 …const VkDescriptorSetLayoutObj push_ds_layout(m_device, {dsl_binding}, VK_DESCRIPTOR_SET_LAYOUT_CR… in TEST_F()
2320 helper.pipeline_layout_ = VkPipelineLayoutObj(m_device, {&push_ds_layout, &ds_layout}); in TEST_F()
2324 …VkConstantBufferObj vbo(m_device, sizeof(vbo_data), (const void *)&vbo_data, VK_BUFFER_USAGE_UNIFO… in TEST_F()
2342 …(PFN_vkCmdPushDescriptorSetKHR)vkGetDeviceProcAddr(m_device->device(), "vkCmdPushDescriptorSetKHR"… in TEST_F()
2392 …OneOffDescriptorSet descriptor_set(m_device, {dsl_binding}, 0, nullptr, VK_DESCRIPTOR_POOL_CREATE_… in TEST_F()
2396 …const VkDescriptorSetLayoutObj push_ds_layout(m_device, {dsl_binding}, VK_DESCRIPTOR_SET_LAYOUT_CR… in TEST_F()
2408 VkShaderObj vs(m_device, bindStateVertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
2409 VkShaderObj fs(m_device, fsSource, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
2415 … pipe.pipeline_layout_ = VkPipelineLayoutObj(m_device, {&push_ds_layout, &descriptor_set.layout_}); in TEST_F()
2419 …VkConstantBufferObj buffer(m_device, sizeof(bo_data), (const void *)&bo_data, VK_BUFFER_USAGE_UNIF… in TEST_F()
2426 …(PFN_vkCmdPushDescriptorSetKHR)vkGetDeviceProcAddr(m_device->device(), "vkCmdPushDescriptorSetKHR"… in TEST_F()
2482 m_device, sizeof(buffer_data), &buffer_data, in TEST_F()
2489 …(PFN_vkCmdPushDescriptorSetKHR)vkGetDeviceProcAddr(m_device->device(), "vkCmdPushDescriptorSetKHR"… in TEST_F()
2496 const VkDescriptorSetLayoutObj ds_layout(m_device, {ds_binding_0, ds_binding_1}); in TEST_F()
2501 const VkDescriptorSetLayoutObj push_ds_layout(m_device, {push_ds_binding_0}, in TEST_F()
2508 VkPipelineObj pipe0(m_device); in TEST_F()
2509 VkPipelineObj pipe1(m_device); in TEST_F()
2512 …const VkPipelineLayoutObj pipeline_layout(m_device, {&ds_layout, &ds_layout, &push_ds_layout, &ds_… in TEST_F()
2524 VkShaderObj vs(m_device, bindStateVertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
2525 VkShaderObj fs(m_device, fsSource, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
2549 …const VkPipelineLayoutObj pipeline_layout(m_device, {&ds_layout, &ds_layout, &ds_layout, &push_ds_… in TEST_F()
2564 VkShaderObj vs(m_device, bindStateVertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
2565 VkShaderObj fs(m_device, fsSource, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
2614 err = vkCreateBuffer(m_device->device(), &buf_info, NULL, &buffer); in TEST_F()
2617 vkGetBufferMemoryRequirements(m_device->device(), buffer, &mem_reqs); in TEST_F()
2627 …pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &alloc_info, VK_MEMORY_PROPERTY_HO… in TEST_F()
2630 vkDestroyBuffer(m_device->device(), buffer, NULL); in TEST_F()
2634 err = vkAllocateMemory(m_device->device(), &alloc_info, NULL, &mem); in TEST_F()
2638 err = vkMapMemory(m_device->device(), mem, 0, mem_reqs.size, 0, (void **)&pData); in TEST_F()
2643 vkUnmapMemory(m_device->device(), mem); in TEST_F()
2645 err = vkBindBufferMemory(m_device->device(), buffer, mem, 0); in TEST_F()
2651 vkDestroyBuffer(m_device->device(), buffer, NULL); in TEST_F()
2652 vkDeviceWaitIdle(m_device->device()); in TEST_F()
2661 vkFreeMemory(m_device->device(), mem, NULL); in TEST_F()
2686 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
2689 vkGetImageMemoryRequirements(m_device->device(), image, &mem_reqs); in TEST_F()
2698 …pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &mem_alloc, VK_MEMORY_PROPERTY_HOS… in TEST_F()
2701 vkFreeMemory(m_device->device(), mem, NULL); in TEST_F()
2702 vkDestroyImage(m_device->device(), image, NULL); in TEST_F()
2707 err = vkBindImageMemory(m_device->device(), image, mem, 0); in TEST_F()
2712 vkFreeMemory(m_device->device(), mem, NULL); in TEST_F()
2713 vkDestroyImage(m_device->device(), image, NULL); in TEST_F()
2725 vkDestroyBuffer(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2726 vkDestroyBufferView(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2727 vkDestroyCommandPool(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2728 vkDestroyDescriptorPool(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2729 vkDestroyDescriptorSetLayout(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2731 vkDestroyEvent(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2732 vkDestroyFence(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2733 vkDestroyFramebuffer(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2734 vkDestroyImage(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2735 vkDestroyImageView(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2737 vkDestroyPipeline(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2738 vkDestroyPipelineCache(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2739 vkDestroyPipelineLayout(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2740 vkDestroyQueryPool(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2741 vkDestroyRenderPass(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2742 vkDestroySampler(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2743 vkDestroySemaphore(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2744 vkDestroyShaderModule(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2749 pool_create_info.queueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
2751 vkCreateCommandPool(m_device->device(), &pool_create_info, nullptr, &command_pool); in TEST_F()
2758 … vkAllocateCommandBuffers(m_device->device(), &command_buffer_allocate_info, &command_buffers[1]); in TEST_F()
2759 vkFreeCommandBuffers(m_device->device(), command_pool, 3, command_buffers); in TEST_F()
2760 vkDestroyCommandPool(m_device->device(), command_pool, NULL); in TEST_F()
2775 err = vkCreateDescriptorPool(m_device->device(), &ds_pool_ci, NULL, &ds_pool); in TEST_F()
2785 const VkDescriptorSetLayoutObj ds_layout(m_device, {dsl_binding}); in TEST_F()
2793 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info, &descriptor_sets[1]); in TEST_F()
2795 vkFreeDescriptorSets(m_device->device(), ds_pool, 3, descriptor_sets); in TEST_F()
2796 vkDestroyDescriptorPool(m_device->device(), ds_pool, NULL); in TEST_F()
2798 vkFreeMemory(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
2816 vkAllocateCommandBuffers(m_device->device(), &alloc_info, cmd_bufs); in TEST_F()
2817 VkImageObj image(m_device); in TEST_F()
2870 vkCreateSemaphore(m_device->device(), &semaphore_create_info, nullptr, &semaphore1); in TEST_F()
2871 vkCreateSemaphore(m_device->device(), &semaphore_create_info, nullptr, &semaphore2); in TEST_F()
2901 vkQueueSubmit(m_device->m_queue, 3, submit_info, VK_NULL_HANDLE); in TEST_F()
2902 vkQueueWaitIdle(m_device->m_queue); in TEST_F()
2904 vkDestroySemaphore(m_device->device(), semaphore1, NULL); in TEST_F()
2905 vkDestroySemaphore(m_device->device(), semaphore2, NULL); in TEST_F()
2918 OneOffDescriptorSet descriptor_set(m_device, in TEST_F()
2936 dynamic_uniform_buffer_1.init(*m_device, buffCI); in TEST_F()
2938 dynamic_uniform_buffer_2.init(*m_device, buffCI); in TEST_F()
2962 vkUpdateDescriptorSets(m_device->device(), 1, &descriptor_write, 0, NULL); in TEST_F()
2977 VkShaderObj vs(m_device, bindStateVertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
2978 VkShaderObj fs(m_device, fsSource, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
2984 pipe.pipeline_layout_ = VkPipelineLayoutObj(m_device, {&descriptor_set.layout_}); in TEST_F()
3011 const VkDeviceSize atom_size = m_device->props.limits.nonCoherentAtomSize; in TEST_F()
3021 …bool pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &alloc_info, VK_MEMORY_PROPER… in TEST_F()
3024 pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &alloc_info, in TEST_F()
3028 pass = m_device->phy().set_memory_type( in TEST_F()
3039 err = vkAllocateMemory(m_device->device(), &alloc_info, NULL, &mem); in TEST_F()
3044 err = vkMapMemory(m_device->device(), mem, 0, VK_WHOLE_SIZE, 0, (void **)&pData); in TEST_F()
3051 err = vkFlushMappedMemoryRanges(m_device->device(), 1, &mmr); in TEST_F()
3053 err = vkInvalidateMappedMemoryRanges(m_device->device(), 1, &mmr); in TEST_F()
3056 vkUnmapMemory(m_device->device(), mem); in TEST_F()
3060 err = vkMapMemory(m_device->device(), mem, 5 * atom_size, VK_WHOLE_SIZE, 0, (void **)&pData); in TEST_F()
3066 err = vkFlushMappedMemoryRanges(m_device->device(), 1, &mmr); in TEST_F()
3068 err = vkInvalidateMappedMemoryRanges(m_device->device(), 1, &mmr); in TEST_F()
3071 vkUnmapMemory(m_device->device(), mem); in TEST_F()
3076 err = vkMapMemory(m_device->device(), mem, 3 * atom_size, 9 * atom_size, 0, (void **)&pData); in TEST_F()
3082 err = vkFlushMappedMemoryRanges(m_device->device(), 1, &mmr); in TEST_F()
3084 err = vkInvalidateMappedMemoryRanges(m_device->device(), 1, &mmr); in TEST_F()
3087 vkUnmapMemory(m_device->device(), mem); in TEST_F()
3091 err = vkMapMemory(m_device->device(), mem, 0, VK_WHOLE_SIZE, 0, (void **)&pData); in TEST_F()
3097 err = vkFlushMappedMemoryRanges(m_device->device(), 1, &mmr); in TEST_F()
3101 err = vkFlushMappedMemoryRanges(m_device->device(), 1, &mmr); in TEST_F()
3104 vkUnmapMemory(m_device->device(), mem); in TEST_F()
3106 vkFreeMemory(m_device->device(), mem, NULL); in TEST_F()
3118 testFence.init(*m_device, fenceInfo); in TEST_F()
3120 VkResult result = vkResetFences(m_device->device(), 1, fences); in TEST_F()
3141 err = vkCreateFence(m_device->device(), &fci, nullptr, &fence); in TEST_F()
3146 err = vkCreateSemaphore(m_device->device(), &sci, nullptr, &s1); in TEST_F()
3148 err = vkCreateSemaphore(m_device->device(), &sci, nullptr, &s2); in TEST_F()
3153 err = vkQueueSubmit(m_device->m_queue, 1, &si, fence); in TEST_F()
3158 err = vkQueueSubmit(m_device->m_queue, 1, &si, VK_NULL_HANDLE); in TEST_F()
3162 err = vkWaitForFences(m_device->device(), 1, &fence, VK_TRUE, UINT64_MAX); in TEST_F()
3167 vkDestroySemaphore(m_device->device(), s1, nullptr); in TEST_F()
3172 vkDeviceWaitIdle(m_device->device()); in TEST_F()
3173 vkDestroySemaphore(m_device->device(), s2, nullptr); in TEST_F()
3174 vkDestroyFence(m_device->device(), fence, nullptr); in TEST_F()
3186 err = vkCreateFence(m_device->device(), &fci1, nullptr, &f1); in TEST_F()
3192 err = vkCreateFence(m_device->device(), &fci2, nullptr, &f2); in TEST_F()
3197 err = vkQueueSubmit(m_device->m_queue, 1, &si, f2); in TEST_F()
3201 vkWaitForFences(m_device->device(), 2, fences, VK_TRUE, UINT64_MAX); in TEST_F()
3204 vkDestroyFence(m_device->device(), f1, nullptr); in TEST_F()
3205 vkDestroyFence(m_device->device(), f2, nullptr); in TEST_F()
3232 VkImageObj image(m_device); in TEST_F()
3246 VkImageObj image(m_device); in TEST_F()
3260 vkCreateImageView(m_device->device(), &ivci, NULL, &imageView); in TEST_F()
3262 vkDestroyImageView(m_device->device(), imageView, NULL); in TEST_F()
3271 auto index = m_device->graphics_queue_node_index_; in TEST_F()
3272 if (!(m_device->queue_props[index].queueFlags & VK_QUEUE_SPARSE_BINDING_BIT)) { in TEST_F()
3276 if (!m_device->phy().features().sparseBinding) { in TEST_F()
3298 VkResult err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
3309 vkGetImageMemoryRequirements(m_device->device(), image, &memory_reqs); in TEST_F()
3315 vkDestroyImage(m_device->device(), image, nullptr); in TEST_F()
3318 err = vkCreateImage(m_device->device(), &image_create_info, nullptr, &image); in TEST_F()
3320 vkGetImageMemoryRequirements(m_device->device(), image, &memory_reqs); in TEST_F()
3325 pass = m_device->phy().set_memory_type(memory_reqs.memoryTypeBits, &memory_info, 0); in TEST_F()
3327 err = vkAllocateMemory(m_device->device(), &memory_info, NULL, &memory_one); in TEST_F()
3329 err = vkAllocateMemory(m_device->device(), &memory_info, NULL, &memory_two); in TEST_F()
3354 vkQueueBindSparse(m_device->m_queue, 1, &bindSparseInfo, fence); in TEST_F()
3355 vkQueueWaitIdle(m_device->m_queue); in TEST_F()
3356 vkDestroyImage(m_device->device(), image, NULL); in TEST_F()
3357 vkFreeMemory(m_device->device(), memory_one, NULL); in TEST_F()
3358 vkFreeMemory(m_device->device(), memory_two, NULL); in TEST_F()
3367 auto index = m_device->graphics_queue_node_index_; in TEST_F()
3368 if (!(m_device->queue_props[index].queueFlags & VK_QUEUE_SPARSE_BINDING_BIT)) { in TEST_F()
3372 if (!m_device->phy().features().sparseResidencyImage2D) { in TEST_F()
3395 VkResult err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
3400 vkGetImageMemoryRequirements(m_device->device(), image, &memory_reqs); in TEST_F()
3404 vkGetImageSparseMemoryRequirements(m_device->device(), image, &sparse_reqs_count, nullptr); in TEST_F()
3406 …vkGetImageSparseMemoryRequirements(m_device->device(), image, &sparse_reqs_count, sparse_reqs.data… in TEST_F()
3424 m_device->phy().set_memory_type(memory_reqs.memoryTypeBits, &metadata_memory_info, 0); in TEST_F()
3425 err = vkAllocateMemory(m_device->device(), &metadata_memory_info, NULL, &metadata_memory); in TEST_F()
3446 vkQueueBindSparse(m_device->m_queue, 1, &bind_info, VK_NULL_HANDLE); in TEST_F()
3450 vkQueueWaitIdle(m_device->m_queue); in TEST_F()
3451 vkFreeMemory(m_device->device(), metadata_memory, NULL); in TEST_F()
3454 vkDestroyImage(m_device->device(), image, NULL); in TEST_F()
3484 VkResult err = vkCreateRenderPass(m_device->device(), &rpci, nullptr, &rp); in TEST_F()
3488 VkImageObj image(m_device); in TEST_F()
3496 err = vkCreateFramebuffer(m_device->device(), &fci, nullptr, &fb); in TEST_F()
3504 pool_create_info.queueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
3506 vkCreateCommandPool(m_device->device(), &pool_create_info, nullptr, &command_pool); in TEST_F()
3514 vkAllocateCommandBuffers(m_device->device(), &command_buffer_allocate_info, &command_buffer); in TEST_F()
3526 vkDestroyCommandPool(m_device->device(), command_pool, NULL); in TEST_F()
3527 vkDestroyFramebuffer(m_device->device(), fb, nullptr); in TEST_F()
3528 vkDestroyRenderPass(m_device->device(), rp, nullptr); in TEST_F()
3573 err = vkCreateRenderPass(m_device->device(), &rpci, nullptr, &rp); in TEST_F()
3576 VkImageObj image(m_device); in TEST_F()
3587 err = vkCreateFramebuffer(m_device->device(), &fci, nullptr, &fb); in TEST_F()
3615 vkDestroyFramebuffer(m_device->device(), fb, nullptr); in TEST_F()
3616 vkDestroyRenderPass(m_device->device(), rp, nullptr); in TEST_F()
3649 VkImageObj img_color(m_device); in TEST_F()
3653 VkImageObj img_ds1(m_device); in TEST_F()
3657 VkImageObj img_ds2(m_device); in TEST_F()
3661 VkImageObj img_xfer_src(m_device); in TEST_F()
3665 VkImageObj img_xfer_dst(m_device); in TEST_F()
3669 VkImageObj img_sampled(m_device); in TEST_F()
3673 VkImageObj img_input(m_device); in TEST_F()
3730 vkCreateEvent(m_device->device(), &event_create_info, nullptr, &event); in TEST_F()
3735 pool_create_info.queueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
3737 vkCreateCommandPool(m_device->device(), &pool_create_info, nullptr, &command_pool); in TEST_F()
3745 vkAllocateCommandBuffers(m_device->device(), &command_buffer_allocate_info, &command_buffer); in TEST_F()
3748 vkGetDeviceQueue(m_device->device(), m_device->graphics_queue_node_index_, 0, &queue); in TEST_F()
3769 { vkSetEvent(m_device->device(), event); } in TEST_F()
3773 vkDestroyEvent(m_device->device(), event, nullptr); in TEST_F()
3774 vkFreeCommandBuffers(m_device->device(), command_pool, 1, &command_buffer); in TEST_F()
3775 vkDestroyCommandPool(m_device->device(), command_pool, NULL); in TEST_F()
3784 if ((m_device->queue_props.empty()) || (m_device->queue_props[0].queueCount < 2)) { in TEST_F()
3796 vkCreateQueryPool(m_device->device(), &query_pool_create_info, nullptr, &query_pool); in TEST_F()
3798 …VkCommandPoolObj command_pool(m_device, m_device->graphics_queue_node_index_, VK_COMMAND_POOL_CREA… in TEST_F()
3799 VkCommandBufferObj primary_buffer(m_device, &command_pool); in TEST_F()
3800 VkCommandBufferObj secondary_buffer(m_device, &command_pool, VK_COMMAND_BUFFER_LEVEL_SECONDARY); in TEST_F()
3803 vkGetDeviceQueue(m_device->device(), m_device->graphics_queue_node_index_, 1, &queue); in TEST_F()
3814 buffer.init(*m_device, buff_create_info); in TEST_F()
3843 vkDestroyQueryPool(m_device->device(), query_pool, nullptr); in TEST_F()
3852 if ((m_device->queue_props.empty()) || (m_device->queue_props[0].queueCount < 2)) { in TEST_F()
3864 vkCreateQueryPool(m_device->device(), &query_pool_create_info, nullptr, &query_pool); in TEST_F()
3869 pool_create_info.queueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
3871 vkCreateCommandPool(m_device->device(), &pool_create_info, nullptr, &command_pool); in TEST_F()
3879 vkAllocateCommandBuffers(m_device->device(), &command_buffer_allocate_info, command_buffer); in TEST_F()
3882 vkGetDeviceQueue(m_device->device(), m_device->graphics_queue_node_index_, 1, &queue); in TEST_F()
3893 buffer.init(*m_device, buff_create_info); in TEST_F()
3923 vkDestroyQueryPool(m_device->device(), query_pool, nullptr); in TEST_F()
3924 vkFreeCommandBuffers(m_device->device(), command_pool, 2, command_buffer); in TEST_F()
3925 vkDestroyCommandPool(m_device->device(), command_pool, NULL); in TEST_F()
3939 vkGetDeviceQueue(m_device->device(), m_device->graphics_queue_node_index_, 0, &queue); in TEST_F()
3949 cmd_pool_ci.queueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
3951 VkResult err = vkCreateCommandPool(m_device->device(), &cmd_pool_ci, nullptr, &cmd_pool); in TEST_F()
3966 err = vkAllocateCommandBuffers(m_device->device(), &cmd_buf_info, &cmd_buffers[i]); in TEST_F()
3968 err = vkCreateFence(m_device->device(), &fence_ci, nullptr, &fences[i]); in TEST_F()
3990 err = vkWaitForFences(m_device->device(), 1, &fences[obj], VK_TRUE, UINT64_MAX); in TEST_F()
3992 err = vkResetFences(m_device->device(), 1, &fences[obj]); in TEST_F()
3997 vkDestroyCommandPool(m_device->device(), cmd_pool, NULL); in TEST_F()
3999 vkDestroyFence(m_device->device(), fences[i], nullptr); in TEST_F()
4008 if ((m_device->queue_props.empty()) || (m_device->queue_props[0].queueCount < 2)) { in TEST_F()
4018 vkCreateSemaphore(m_device->device(), &semaphore_create_info, nullptr, &semaphore); in TEST_F()
4023 pool_create_info.queueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
4025 vkCreateCommandPool(m_device->device(), &pool_create_info, nullptr, &command_pool); in TEST_F()
4033 vkAllocateCommandBuffers(m_device->device(), &command_buffer_allocate_info, command_buffer); in TEST_F()
4036 vkGetDeviceQueue(m_device->device(), m_device->graphics_queue_node_index_, 1, &queue); in TEST_F()
4089 vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE); in TEST_F()
4092 vkQueueWaitIdle(m_device->m_queue); in TEST_F()
4094 vkDestroySemaphore(m_device->device(), semaphore, nullptr); in TEST_F()
4095 vkFreeCommandBuffers(m_device->device(), command_pool, 2, &command_buffer[0]); in TEST_F()
4096 vkDestroyCommandPool(m_device->device(), command_pool, NULL); in TEST_F()
4108 if ((m_device->queue_props.empty()) || (m_device->queue_props[0].queueCount < 2)) { in TEST_F()
4118 vkCreateFence(m_device->device(), &fence_create_info, nullptr, &fence); in TEST_F()
4123 vkCreateSemaphore(m_device->device(), &semaphore_create_info, nullptr, &semaphore); in TEST_F()
4128 pool_create_info.queueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
4130 vkCreateCommandPool(m_device->device(), &pool_create_info, nullptr, &command_pool); in TEST_F()
4138 vkAllocateCommandBuffers(m_device->device(), &command_buffer_allocate_info, command_buffer); in TEST_F()
4141 vkGetDeviceQueue(m_device->device(), m_device->graphics_queue_node_index_, 1, &queue); in TEST_F()
4194 vkQueueSubmit(m_device->m_queue, 1, &submit_info, fence); in TEST_F()
4197 vkQueueWaitIdle(m_device->m_queue); in TEST_F()
4199 vkDestroyFence(m_device->device(), fence, nullptr); in TEST_F()
4200 vkDestroySemaphore(m_device->device(), semaphore, nullptr); in TEST_F()
4201 vkFreeCommandBuffers(m_device->device(), command_pool, 2, &command_buffer[0]); in TEST_F()
4202 vkDestroyCommandPool(m_device->device(), command_pool, NULL); in TEST_F()
4214 if ((m_device->queue_props.empty()) || (m_device->queue_props[0].queueCount < 2)) { in TEST_F()
4224 vkCreateFence(m_device->device(), &fence_create_info, nullptr, &fence); in TEST_F()
4229 vkCreateSemaphore(m_device->device(), &semaphore_create_info, nullptr, &semaphore); in TEST_F()
4234 pool_create_info.queueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
4236 vkCreateCommandPool(m_device->device(), &pool_create_info, nullptr, &command_pool); in TEST_F()
4244 vkAllocateCommandBuffers(m_device->device(), &command_buffer_allocate_info, command_buffer); in TEST_F()
4247 vkGetDeviceQueue(m_device->device(), m_device->graphics_queue_node_index_, 1, &queue); in TEST_F()
4300 vkQueueSubmit(m_device->m_queue, 1, &submit_info, fence); in TEST_F()
4303 vkWaitForFences(m_device->device(), 1, &fence, VK_TRUE, UINT64_MAX); in TEST_F()
4304 vkWaitForFences(m_device->device(), 1, &fence, VK_TRUE, UINT64_MAX); in TEST_F()
4306 vkDestroyFence(m_device->device(), fence, nullptr); in TEST_F()
4307 vkDestroySemaphore(m_device->device(), semaphore, nullptr); in TEST_F()
4308 vkFreeCommandBuffers(m_device->device(), command_pool, 2, &command_buffer[0]); in TEST_F()
4309 vkDestroyCommandPool(m_device->device(), command_pool, NULL); in TEST_F()
4316 if ((m_device->queue_props.empty()) || (m_device->queue_props[0].queueCount < 2)) { in TEST_F()
4325 VkQueue q0 = m_device->m_queue; in TEST_F()
4327 vkGetDeviceQueue(m_device->device(), m_device->graphics_queue_node_index_, 1, &q1); in TEST_F()
4334 err = vkCreateCommandPool(m_device->device(), &cpci, nullptr, &pool); in TEST_F()
4339 err = vkAllocateCommandBuffers(m_device->device(), &cbai, &cb); in TEST_F()
4350 err = vkCreateSemaphore(m_device->device(), &sci, nullptr, &s); in TEST_F()
4371 vkFreeCommandBuffers(m_device->device(), pool, 1, &cb); in TEST_F()
4376 vkDeviceWaitIdle(m_device->device()); in TEST_F()
4377 vkDestroyCommandPool(m_device->device(), pool, nullptr); in TEST_F()
4378 vkDestroySemaphore(m_device->device(), s, nullptr); in TEST_F()
4388 if ((m_device->queue_props.empty()) || (m_device->queue_props[0].queueCount < 2)) { in TEST_F()
4398 vkCreateFence(m_device->device(), &fence_create_info, nullptr, &fence); in TEST_F()
4403 vkCreateSemaphore(m_device->device(), &semaphore_create_info, nullptr, &semaphore); in TEST_F()
4408 pool_create_info.queueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
4410 vkCreateCommandPool(m_device->device(), &pool_create_info, nullptr, &command_pool); in TEST_F()
4418 vkAllocateCommandBuffers(m_device->device(), &command_buffer_allocate_info, command_buffer); in TEST_F()
4421 vkGetDeviceQueue(m_device->device(), m_device->graphics_queue_node_index_, 1, &queue); in TEST_F()
4474 vkQueueSubmit(m_device->m_queue, 1, &submit_info, fence); in TEST_F()
4477 vkWaitForFences(m_device->device(), 1, &fence, VK_TRUE, UINT64_MAX); in TEST_F()
4479 vkDestroyFence(m_device->device(), fence, nullptr); in TEST_F()
4480 vkDestroySemaphore(m_device->device(), semaphore, nullptr); in TEST_F()
4481 vkFreeCommandBuffers(m_device->device(), command_pool, 2, &command_buffer[0]); in TEST_F()
4482 vkDestroyCommandPool(m_device->device(), command_pool, NULL); in TEST_F()
4499 vkCreateFence(m_device->device(), &fence_create_info, nullptr, &fence); in TEST_F()
4504 vkCreateSemaphore(m_device->device(), &semaphore_create_info, nullptr, &semaphore); in TEST_F()
4509 pool_create_info.queueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
4511 vkCreateCommandPool(m_device->device(), &pool_create_info, nullptr, &command_pool); in TEST_F()
4519 vkAllocateCommandBuffers(m_device->device(), &command_buffer_allocate_info, command_buffer); in TEST_F()
4561 vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE); in TEST_F()
4572 vkQueueSubmit(m_device->m_queue, 1, &submit_info, fence); in TEST_F()
4575 vkWaitForFences(m_device->device(), 1, &fence, VK_TRUE, UINT64_MAX); in TEST_F()
4577 vkDestroyFence(m_device->device(), fence, nullptr); in TEST_F()
4578 vkDestroySemaphore(m_device->device(), semaphore, nullptr); in TEST_F()
4579 vkFreeCommandBuffers(m_device->device(), command_pool, 2, &command_buffer[0]); in TEST_F()
4580 vkDestroyCommandPool(m_device->device(), command_pool, NULL); in TEST_F()
4597 vkCreateFence(m_device->device(), &fence_create_info, nullptr, &fence); in TEST_F()
4602 pool_create_info.queueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
4604 vkCreateCommandPool(m_device->device(), &pool_create_info, nullptr, &command_pool); in TEST_F()
4612 vkAllocateCommandBuffers(m_device->device(), &command_buffer_allocate_info, command_buffer); in TEST_F()
4654 vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE); in TEST_F()
4665 vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE); in TEST_F()
4668 vkQueueSubmit(m_device->m_queue, 0, NULL, fence); in TEST_F()
4670 VkResult err = vkWaitForFences(m_device->device(), 1, &fence, VK_TRUE, UINT64_MAX); in TEST_F()
4673 vkDestroyFence(m_device->device(), fence, nullptr); in TEST_F()
4674 vkFreeCommandBuffers(m_device->device(), command_pool, 2, &command_buffer[0]); in TEST_F()
4675 vkDestroyCommandPool(m_device->device(), command_pool, NULL); in TEST_F()
4692 vkCreateFence(m_device->device(), &fence_create_info, nullptr, &fence); in TEST_F()
4697 pool_create_info.queueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
4699 vkCreateCommandPool(m_device->device(), &pool_create_info, nullptr, &command_pool); in TEST_F()
4707 vkAllocateCommandBuffers(m_device->device(), &command_buffer_allocate_info, command_buffer); in TEST_F()
4749 vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE); in TEST_F()
4760 vkQueueSubmit(m_device->m_queue, 1, &submit_info, fence); in TEST_F()
4763 vkWaitForFences(m_device->device(), 1, &fence, VK_TRUE, UINT64_MAX); in TEST_F()
4765 vkDestroyFence(m_device->device(), fence, nullptr); in TEST_F()
4766 vkFreeCommandBuffers(m_device->device(), command_pool, 2, &command_buffer[0]); in TEST_F()
4767 vkDestroyCommandPool(m_device->device(), command_pool, NULL); in TEST_F()
4783 vkCreateFence(m_device->device(), &fence_create_info, nullptr, &fence); in TEST_F()
4788 vkCreateSemaphore(m_device->device(), &semaphore_create_info, nullptr, &semaphore); in TEST_F()
4793 pool_create_info.queueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
4795 vkCreateCommandPool(m_device->device(), &pool_create_info, nullptr, &command_pool); in TEST_F()
4803 vkAllocateCommandBuffers(m_device->device(), &command_buffer_allocate_info, command_buffer); in TEST_F()
4861 vkQueueSubmit(m_device->m_queue, 2, &submit_info[0], fence); in TEST_F()
4864 vkWaitForFences(m_device->device(), 1, &fence, VK_TRUE, UINT64_MAX); in TEST_F()
4866 vkDestroyFence(m_device->device(), fence, nullptr); in TEST_F()
4867 vkFreeCommandBuffers(m_device->device(), command_pool, 2, &command_buffer[0]); in TEST_F()
4868 vkDestroyCommandPool(m_device->device(), command_pool, NULL); in TEST_F()
4869 vkDestroySemaphore(m_device->device(), semaphore, nullptr); in TEST_F()
4900 VkShaderObj vs(m_device, vsSource, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
4901 VkShaderObj fs(m_device, bindStateFragShaderText, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
4941 VkShaderObj vs(m_device, vsSource, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
4942 VkShaderObj fs(m_device, bindStateFragShaderText, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
5002 VkShaderObj vs(m_device, vsSource, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
5003 VkShaderObj fs(m_device, fsSource, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
5005 VkPipelineObj pipe(m_device); in TEST_F()
5007 VkDescriptorSetObj descriptorSet(m_device); in TEST_F()
5042 vkCreateRenderPass(m_device->device(), &rpci, NULL, &renderpass); in TEST_F()
5055 vkDestroyRenderPass(m_device->device(), renderpass, nullptr); in TEST_F()
5105 VkShaderObj vs(m_device, vsSource, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
5106 VkShaderObj fs(m_device, fsSource, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
5124 if (!m_device->phy().features().tessellationShader) { in TEST_F()
5147 VkShaderObj vs(m_device, bindStateMinimalShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
5148 VkShaderObj tcs(m_device, tcsSource, VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT, this); in TEST_F()
5149 VkShaderObj tes(m_device, tesSource, VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT, this); in TEST_F()
5150 VkShaderObj fs(m_device, bindStateFragShaderText, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
5176 if (!m_device->phy().features().geometryShader) { in TEST_F()
5191 VkShaderObj vs(m_device, bindStateVertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
5192 VkShaderObj gs(m_device, gsSource, VK_SHADER_STAGE_GEOMETRY_BIT, this); in TEST_F()
5193 VkShaderObj fs(m_device, bindStateFragShaderText, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
5218 if (!m_device->phy().features().shaderFloat64) { in TEST_F()
5261 VkShaderObj vs(m_device, vsSource, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
5262 VkShaderObj fs(m_device, bindStateFragShaderText, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
5291 VkShaderObj vs(m_device, bindStateVertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
5292 VkShaderObj fs(m_device, fsSource, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
5294 VkPipelineObj pipe(m_device); in TEST_F()
5301 const VkDescriptorSetLayoutObj dsl(m_device, {dslb}); in TEST_F()
5302 const VkPipelineLayoutObj pl(m_device, {&dsl}); in TEST_F()
5324 VkResult err = vkCreateRenderPass(m_device->device(), &rpci, nullptr, &rp); in TEST_F()
5332 vkDestroyRenderPass(m_device->device(), rp, nullptr); in TEST_F()
5355 pipe.cs_.reset(new VkShaderObj(m_device, csSource, VK_SHADER_STAGE_COMPUTE_BIT, this)); in TEST_F()
5389 pipe.cs_.reset(new VkShaderObj(m_device, csSource, VK_SHADER_STAGE_COMPUTE_BIT, this)); in TEST_F()
5424 pipe.cs_.reset(new VkShaderObj(m_device, csSource, VK_SHADER_STAGE_COMPUTE_BIT, this)); in TEST_F()
5459 pipe.cs_.reset(new VkShaderObj(m_device, csSource, VK_SHADER_STAGE_COMPUTE_BIT, this)); in TEST_F()
5516 const VkResult err = vkCreateDescriptorSetLayout(m_device->device(), &dslci, nullptr, &dsl); in TEST_F()
5518 vkDestroyDescriptorSetLayout(m_device->device(), dsl, nullptr); in TEST_F()
5539 … const VkResult err = vkCreateDescriptorSetLayout(m_device->device(), &dslci, nullptr, &dsl); in TEST_F()
5541 vkDestroyDescriptorSetLayout(m_device->device(), dsl, nullptr); in TEST_F()
5586 if (m_device->props.apiVersion < VK_API_VERSION_1_1) { in TEST_F()
5590 auto c_queue = m_device->GetDefaultComputeQueue(); in TEST_F()
5605 buffer0.init(*m_device, bci, mem_props); in TEST_F()
5615 OneOffDescriptorSet descriptor_set(m_device, in TEST_F()
5622 const VkPipelineLayoutObj pipeline_layout(m_device, {&descriptor_set.layout_}); in TEST_F()
5650 vkUpdateDescriptorSets(m_device->device(), 2, descriptor_writes, 0, NULL); in TEST_F()
5662 auto shader_module = new VkShaderObj(m_device, csSource, VK_SHADER_STAGE_COMPUTE_BIT, this); in TEST_F()
5698 vkQueueWaitIdle(m_device->m_queue); in TEST_F()
5700 vkDestroyPipeline(m_device->handle(), c_pipeline, NULL); in TEST_F()
5701 vkDestroyShaderModule(m_device->handle(), shader_module->handle(), NULL); in TEST_F()
5722 VkCommandBufferObj cmd_buf(m_device, m_commandPool); in TEST_F()
5762 VkResult err = vkCreateBuffer(m_device->device(), &buffer_create_info, NULL, &buffer); in TEST_F()
5766 vkGetBufferMemoryRequirements(m_device->device(), buffer, &memory_reqs); in TEST_F()
5780 pass = m_device->phy().set_memory_type(memory_reqs.memoryTypeBits, &memory_info, 0); in TEST_F()
5784 err = vkAllocateMemory(m_device->device(), &memory_info, NULL, &buffer_memory); in TEST_F()
5787 err = vkBindBufferMemory(m_device->device(), buffer, buffer_memory, 0); in TEST_F()
5790 vkDestroyBuffer(m_device->device(), buffer, NULL); in TEST_F()
5791 vkFreeMemory(m_device->device(), buffer_memory, NULL); in TEST_F()
5803 auto features = m_device->phy().features(); in TEST_F()
5851 err = vkCreateSemaphore(m_device->device(), &sci, nullptr, &semaphore); in TEST_F()
5865 err = vkQueueSubmit(m_device->m_queue, 1, &si, VK_NULL_HANDLE); in TEST_F()
5871 err = vkCreateFence(m_device->device(), &fci, nullptr, &fence); in TEST_F()
5874 err = vkQueueSubmit(m_device->m_queue, 1, &si, fence); in TEST_F()
5877 vkWaitForFences(m_device->device(), 1, &fence, VK_TRUE, UINT64_MAX); in TEST_F()
5879 for (auto semaphore : semaphores) vkDestroySemaphore(m_device->device(), semaphore, nullptr); in TEST_F()
5881 vkDestroyFence(m_device->device(), fence, nullptr); in TEST_F()
5937 err = vkCreateSemaphore(m_device->device(), &sci, nullptr, &export_semaphore); in TEST_F()
5943 err = vkCreateSemaphore(m_device->device(), &sci, nullptr, &import_semaphore); in TEST_F()
5952 …(PFN_vkGetSemaphoreWin32HandleKHR)vkGetDeviceProcAddr(m_device->device(), "vkGetSemaphoreWin32Hand… in TEST_F()
5953 err = vkGetSemaphoreWin32HandleKHR(m_device->device(), &ghi, &handle); in TEST_F()
5960 …(PFN_vkImportSemaphoreWin32HandleKHR)vkGetDeviceProcAddr(m_device->device(), "vkImportSemaphoreWin… in TEST_F()
5961 err = vkImportSemaphoreWin32HandleKHR(m_device->device(), &ihi); in TEST_F()
5967 …auto vkGetSemaphoreFdKHR = (PFN_vkGetSemaphoreFdKHR)vkGetDeviceProcAddr(m_device->device(), "vkGet… in TEST_F()
5968 err = vkGetSemaphoreFdKHR(m_device->device(), &ghi, &fd); in TEST_F()
5974 …auto vkImportSemaphoreFdKHR = (PFN_vkImportSemaphoreFdKHR)vkGetDeviceProcAddr(m_device->device(), … in TEST_F()
5975 err = vkImportSemaphoreFdKHR(m_device->device(), &ihi); in TEST_F()
5987 err = vkQueueSubmit(m_device->m_queue, 4, si, VK_NULL_HANDLE); in TEST_F()
5990 if (m_device->phy().features().sparseBinding) { in TEST_F()
5998 err = vkQueueBindSparse(m_device->m_queue, 4, bi, VK_NULL_HANDLE); in TEST_F()
6003 err = vkQueueWaitIdle(m_device->m_queue); in TEST_F()
6005 vkDestroySemaphore(m_device->device(), export_semaphore, nullptr); in TEST_F()
6006 vkDestroySemaphore(m_device->device(), import_semaphore, nullptr); in TEST_F()
6060 err = vkCreateFence(m_device->device(), &fci, nullptr, &export_fence); in TEST_F()
6068 err = vkCreateFence(m_device->device(), &fci, nullptr, &import_fence); in TEST_F()
6078 … (PFN_vkGetFenceWin32HandleKHR)vkGetDeviceProcAddr(m_device->device(), "vkGetFenceWin32HandleKHR"); in TEST_F()
6079 err = vkGetFenceWin32HandleKHR(m_device->device(), &ghi, &handle); in TEST_F()
6088 …(PFN_vkImportFenceWin32HandleKHR)vkGetDeviceProcAddr(m_device->device(), "vkImportFenceWin32Handle… in TEST_F()
6089 err = vkImportFenceWin32HandleKHR(m_device->device(), &ifi); in TEST_F()
6097 …auto vkGetFenceFdKHR = (PFN_vkGetFenceFdKHR)vkGetDeviceProcAddr(m_device->device(), "vkGetFenceFdK… in TEST_F()
6098 err = vkGetFenceFdKHR(m_device->device(), &gfi, &fd); in TEST_F()
6105 …auto vkImportFenceFdKHR = (PFN_vkImportFenceFdKHR)vkGetDeviceProcAddr(m_device->device(), "vkImpor… in TEST_F()
6106 err = vkImportFenceFdKHR(m_device->device(), &ifi); in TEST_F()
6112 vkQueueSubmit(m_device->m_queue, 0, nullptr, export_fence); in TEST_F()
6113 vkWaitForFences(m_device->device(), 1, &import_fence, VK_TRUE, 1000000000); in TEST_F()
6114 vkResetFences(m_device->device(), 1, &import_fence); in TEST_F()
6115 vkQueueSubmit(m_device->m_queue, 0, nullptr, export_fence); in TEST_F()
6116 vkWaitForFences(m_device->device(), 1, &import_fence, VK_TRUE, 1000000000); in TEST_F()
6117 vkResetFences(m_device->device(), 1, &import_fence); in TEST_F()
6120 vkQueueSubmit(m_device->m_queue, 0, nullptr, import_fence); in TEST_F()
6121 vkWaitForFences(m_device->device(), 1, &export_fence, VK_TRUE, 1000000000); in TEST_F()
6122 vkResetFences(m_device->device(), 1, &export_fence); in TEST_F()
6123 vkQueueSubmit(m_device->m_queue, 0, nullptr, import_fence); in TEST_F()
6124 vkWaitForFences(m_device->device(), 1, &export_fence, VK_TRUE, 1000000000); in TEST_F()
6125 vkResetFences(m_device->device(), 1, &export_fence); in TEST_F()
6128 err = vkQueueWaitIdle(m_device->m_queue); in TEST_F()
6130 vkDestroyFence(m_device->device(), export_fence, nullptr); in TEST_F()
6131 vkDestroyFence(m_device->device(), import_fence, nullptr); in TEST_F()
6144 data.device = m_device->device(); in TEST_F()
6152 vkDestroyFence(m_device->device(), VK_NULL_HANDLE, NULL); in TEST_F()
6167 VkImageObj image(m_device); in TEST_F()
6207 VkImageObj image(m_device); in TEST_F()
6244 …m_depthStencil->Init(m_device, static_cast<int32_t>(m_width), static_cast<int32_t>(m_height), m_de… in TEST_F()
6253 VkShaderObj vs(m_device, bindStateVertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
6301 …VkResult err = vkCreatePipelineLayout(m_device->device(), &pipeline_layout_create_info, nullptr, &… in TEST_F()
6335 …vkCreateGraphicsPipelines(m_device->handle(), VK_NULL_HANDLE, 1, &graphics_pipeline_create_info, n… in TEST_F()
6339 vkDestroyPipeline(m_device->handle(), pipeline, nullptr); in TEST_F()
6390 …VkResult err = vkCreateRenderPass(m_device->handle(), &render_pass_create_info, nullptr, &render_p… in TEST_F()
6416 …vkCreateGraphicsPipelines(m_device->handle(), VK_NULL_HANDLE, 1, &graphics_pipeline_create_info, n… in TEST_F()
6420 vkDestroyPipeline(m_device->handle(), pipeline, nullptr); in TEST_F()
6421 vkDestroyRenderPass(m_device->handle(), render_pass, nullptr); in TEST_F()
6488 …vkCreateGraphicsPipelines(m_device->handle(), VK_NULL_HANDLE, 1, &graphics_pipeline_create_info, n… in TEST_F()
6492 vkDestroyPipeline(m_device->handle(), pipeline, nullptr); in TEST_F()
6495 vkDestroyPipelineLayout(m_device->handle(), pipeline_layout, nullptr); in TEST_F()
6572 buffer_export.init_no_mem(*m_device, buffer_info); in TEST_F()
6574 buffer_import.init_no_mem(*m_device, buffer_info); in TEST_F()
6577 …auto alloc_info = vk_testing::DeviceMemory::get_resource_alloc_info(*m_device, buffer_export.memor… in TEST_F()
6592 memory_export.init(*m_device, alloc_info); in TEST_F()
6604 ASSERT_VK_SUCCESS(vkGetMemoryWin32HandleKHR(m_device->device(), &mghi, &handle)); in TEST_F()
6614 ASSERT_VK_SUCCESS(vkGetMemoryFdKHR(m_device->device(), &mgfi, &fd)); in TEST_F()
6620 …alloc_info = vk_testing::DeviceMemory::get_resource_alloc_info(*m_device, buffer_import.memory_req… in TEST_F()
6623 memory_import.init(*m_device, alloc_info); in TEST_F()
6631 buffer_input.init_as_src_and_dst(*m_device, buffer_size, mem_prop); in TEST_F()
6638 buffer_output.init_as_src_and_dst(*m_device, buffer_size, mem_prop); in TEST_F()
6764 buffer.init_no_mem(*m_device, in TEST_F()
6769 vkGetDeviceProcAddr(m_device->device(), "vkGetBufferMemoryRequirements2KHR")); in TEST_F()
6774 vkGetBufferMemoryRequirements2KHR(m_device->device(), &buffer_info, &buffer_reqs); in TEST_F()
6778 …buffer_memory.init(*m_device, vk_testing::DeviceMemory::get_resource_alloc_info(*m_device, buffer_… in TEST_F()
6779 vkBindBufferMemory(m_device->device(), buffer.handle(), buffer_memory.handle(), 0); in TEST_F()
6790 image.init_no_mem(*m_device, image_ci); in TEST_F()
6794 vkGetDeviceProcAddr(m_device->device(), "vkGetImageMemoryRequirements2KHR")); in TEST_F()
6799 vkGetImageMemoryRequirements2KHR(m_device->device(), &image_info, &image_reqs); in TEST_F()
6803 …image_memory.init(*m_device, vk_testing::DeviceMemory::get_resource_alloc_info(*m_device, image_re… in TEST_F()
6804 vkBindImageMemory(m_device->device(), image.handle(), image_memory.handle(), 0); in TEST_F()
6848 buffer.init_no_mem(*m_device, VkBufferObj::create_info(1024, VK_BUFFER_USAGE_TRANSFER_DST_BIT)); in TEST_F()
6852 …buffer_memory.init(*m_device, vk_testing::DeviceMemory::get_resource_alloc_info(*m_device, buffer.… in TEST_F()
6856 …reinterpret_cast<PFN_vkBindBufferMemory2KHR>(vkGetDeviceProcAddr(m_device->device(), "vkBindBuffer… in TEST_F()
6860 vkBindBufferMemory2KHR(m_device->device(), 1, &buffer_bind_info); in TEST_F()
6871 image.init_no_mem(*m_device, image_ci); in TEST_F()
6875 …image_memory.init(*m_device, vk_testing::DeviceMemory::get_resource_alloc_info(*m_device, image.me… in TEST_F()
6879 …reinterpret_cast<PFN_vkBindImageMemory2KHR>(vkGetDeviceProcAddr(m_device->device(), "vkBindImageMe… in TEST_F()
6883 vkBindImageMemory2KHR(m_device->device(), 1, &image_bind_info); in TEST_F()
6919 VkShaderObj vs(m_device, bindStateVertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
6920 VkShaderObj fs(m_device, bindStateFragShaderText, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
6942 if (!m_device->phy().features().tessellationShader) { in TEST_F()
6947 VkShaderObj vs(m_device, bindStateVertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
6948 … VkShaderObj tcs(m_device, bindStateTscShaderText, VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT, this); in TEST_F()
6949 …VkShaderObj tes(m_device, bindStateTeshaderText, VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT, this… in TEST_F()
6950 VkShaderObj fs(m_device, bindStateFragShaderText, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
7021 VkImageObj image(m_device); in TEST_F()
7042 buffers[i].init_as_src(*m_device, (VkDeviceSize)16 * 16 * 1, reqs); in TEST_F()
7087 …vkBindImageMemory2Function = (PFN_vkBindImageMemory2KHR)vkGetDeviceProcAddr(m_device->handle(), "v… in TEST_F()
7089 …(PFN_vkGetImageMemoryRequirements2KHR)vkGetDeviceProcAddr(m_device->handle(), "vkGetImageMemoryReq… in TEST_F()
7091 m_device->handle(), "vkGetPhysicalDeviceMemoryProperties2KHR"); in TEST_F()
7246 buffer.init_as_src(*m_device, (VkDeviceSize)128 * 128 * 3, reqs); in TEST_F()
7247 VkImageObj mpimage(m_device); in TEST_F()
7280 vkCreateImageView(m_device->device(), &ivci, nullptr, &view); in TEST_F()
7282 OneOffDescriptorSet descriptor_set(m_device, in TEST_F()
7291 err = vkCreateSampler(m_device->device(), &sampler_ci, NULL, &sampler); in TEST_F()
7294 const VkPipelineLayoutObj pipeline_layout(m_device, {&descriptor_set.layout_}); in TEST_F()
7298 VkShaderObj vs(m_device, bindStateVertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
7299 VkShaderObj fs(m_device, bindStateFragSamplerShaderText, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
7300 VkPipelineObj pipe(m_device); in TEST_F()
7341 vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE); in TEST_F()
7344 vkQueueWaitIdle(m_device->m_queue); in TEST_F()
7345 vkDestroyImageView(m_device->device(), view, NULL); in TEST_F()
7346 vkDestroySampler(m_device->device(), sampler, nullptr); in TEST_F()
7424 VkShaderObj tcs(m_device, tcs_src, VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT, this); in TEST_F()
7425 VkShaderObj fs(m_device, bindStateFragShaderText, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
7446 const VkPipelineLayoutObj pl(m_device); in TEST_F()
7448 VkPipelineObj pipe(m_device); in TEST_F()
7474 VkShaderObj vs(m_device, vs_src.str().c_str(), VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
7496 …new VkShaderObj(m_device, tes_src.str().c_str(), VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT, this… in TEST_F()
7518 …std::unique_ptr<VkShaderObj>(new VkShaderObj(m_device, geom_src.str().c_str(), VK_SHADER_STAGE_GEO… in TEST_F()
7557 …auto fpvkResetQueryPoolEXT = (PFN_vkResetQueryPoolEXT)vkGetDeviceProcAddr(m_device->device(), "vkR… in TEST_F()
7566 vkCreateQueryPool(m_device->device(), &query_pool_create_info, nullptr, &query_pool); in TEST_F()
7567 fpvkResetQueryPoolEXT(m_device->device(), query_pool, 0, 1); in TEST_F()
7568 vkDestroyQueryPool(m_device->device(), query_pool, nullptr); in TEST_F()
7632 …auto fpDestroySurface = (PFN_vkCreateValidationCacheEXT)vkGetDeviceProcAddr(m_device->device(), "v… in TEST_F()
7691 VkImageObj srcImage(m_device); in TEST_F()
7712 vkBindImageMemory2(m_device->device(), 1, &bind_info); in TEST_F()
7734 vkDestroyImage(m_device->device(), image_from_swapchain, NULL); in TEST_F()
7803 VkImageObj src_Image(m_device); in TEST_F()
7832 vkBindImageMemory2(m_device->device(), 1, &bind_info); in TEST_F()
7882 vkDestroyImage(m_device->device(), peer_image, NULL); in TEST_F()
7920 PositiveTestRenderPassCreate(m_errorMonitor, m_device->device(), &rpci, rp2_supported); in TEST_F()
7926 PositiveTestRenderPassCreate(m_errorMonitor, m_device->device(), &rpci, rp2_supported); in TEST_F()
7932 PositiveTestRenderPassCreate(m_errorMonitor, m_device->device(), &rpci, rp2_supported); in TEST_F()
8008 vkCreateRenderPass(m_device->device(), &rpci, nullptr, &rp); in TEST_F()
8010 const VkPipelineLayoutObj pl(m_device); in TEST_F()
8018 VkPipelineObj pipe(m_device); in TEST_F()
8022 VkShaderObj vs(m_device, vs_src, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
8025 VkShaderObj fs(m_device, fs_src, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
8032 vkDestroyRenderPass(m_device->device(), rp, nullptr); in TEST_F()
8058 vkCreateRenderPass(m_device->device(), &rpi, nullptr, &rp); in TEST_F()
8075 vkDestroyRenderPass(m_device->device(), rp, nullptr); in TEST_F()
8111 VkShaderObj fs(m_device, fsSource, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
8122 VkImageObj image(m_device); in TEST_F()
8128 vkCreateSampler(m_device->device(), &sampler_ci, nullptr, &sampler); in TEST_F()
8139 buffer.init(*m_device, buffer_create_info); in TEST_F()
8156 vkDestroySampler(m_device->device(), sampler, NULL); in TEST_F()
8164 if ((!m_device->phy().features().geometryShader)) { in TEST_F()
8171 VkShaderObj gs(m_device, bindStateGeomShaderText, VK_SHADER_STAGE_GEOMETRY_BIT, this); in TEST_F()
8217 VkResult err = vkCreateRenderPass(m_device->device(), &rpci, nullptr, &rp); in TEST_F()
8221 VkImageObj image(m_device); in TEST_F()
8236 err = vkCreateImageView(m_device->device(), &ivci, nullptr, &view); in TEST_F()
8242 err = vkCreateFramebuffer(m_device->device(), &fci, nullptr, &fb); in TEST_F()
8252 vkDestroyFramebuffer(m_device->device(), fb, nullptr); in TEST_F()
8253 vkDestroyRenderPass(m_device->device(), rp, nullptr); in TEST_F()
8254 vkDestroyImageView(m_device->device(), view, nullptr); in TEST_F()
8331 const VkPipelineLayoutObj pl(m_device); in TEST_F()
8333 VkPipelineObj pipe(m_device); in TEST_F()
8336 VkShaderObj vs(m_device, vs_src, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
8339 VkShaderObj gs(m_device, gs_src, VK_SHADER_STAGE_GEOMETRY_BIT, this); in TEST_F()
8342 VkShaderObj fs(m_device, fs_src, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()