Lines Matching refs:m_device
41 pool_create_info.queueFamilyIndex = m_device->graphics_queue_node_index_; in TEST_F()
44 vkCreateCommandPool(m_device->device(), &pool_create_info, nullptr, &command_pool_one); in TEST_F()
46 vkCreateCommandPool(m_device->device(), &pool_create_info, nullptr, &command_pool_two); in TEST_F()
54 vkAllocateCommandBuffers(m_device->device(), &command_buffer_allocate_info, &cb); in TEST_F()
56 vkFreeCommandBuffers(m_device->device(), command_pool_two, 1, &cb); in TEST_F()
60 vkDestroyCommandPool(m_device->device(), command_pool_one, NULL); in TEST_F()
61 vkDestroyCommandPool(m_device->device(), command_pool_two, NULL); in TEST_F()
88 VkResult err = vkCreateRenderPass(m_device->device(), &rpci, nullptr, &rp); in TEST_F()
91 VkImageObj image(m_device); in TEST_F()
95 VkImageObj image2(m_device); in TEST_F()
100 err = vkCreateFramebuffer(m_device->device(), &fbci, nullptr, &fb); in TEST_F()
119 …VkCommandPoolObj pool(m_device, m_device->graphics_queue_node_index_, VK_COMMAND_POOL_CREATE_RESET… in TEST_F()
120 VkCommandBufferObj secondary(m_device, &pool, VK_COMMAND_BUFFER_LEVEL_SECONDARY); in TEST_F()
156 vkDestroyFramebuffer(m_device->device(), fb, nullptr); in TEST_F()
157 vkDestroyRenderPass(m_device->device(), rp, nullptr); in TEST_F()
265 if (!m_device->phy().features().depthBounds) { in TEST_F()
394 err = vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE); in TEST_F()
396 vkQueueWaitIdle(m_device->m_queue); in TEST_F()
400 err = vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE); in TEST_F()
401 vkQueueWaitIdle(m_device->m_queue); in TEST_F()
426 const uint32_t too_big = m_device->props.limits.maxPushConstantsSize + 0x4; in TEST_F()
446 vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL, &pipeline_layout); in TEST_F()
457 vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL, &pipeline_layout); in TEST_F()
514 vkCreatePipelineLayout(m_device->device(), &pipeline_layout_ci, NULL, &pipeline_layout); in TEST_F()
525 const VkPipelineLayoutObj pipeline_layout_obj(m_device, {}, pc_range2); in TEST_F()
583 VkCommandBufferObj commandBuffer(m_device, m_commandPool); in TEST_F()
593 VkCommandBufferObj cb(m_device, m_commandPool, VK_COMMAND_BUFFER_LEVEL_SECONDARY); in TEST_F()
616 …VkCommandPoolObj pool(m_device, m_device->graphics_queue_node_index_, VK_COMMAND_POOL_CREATE_RESET… in TEST_F()
617 VkCommandBufferObj secondary(m_device, &pool, VK_COMMAND_BUFFER_LEVEL_SECONDARY); in TEST_F()
640 …VkCommandPoolObj pool(m_device, m_device->graphics_queue_node_index_, VK_COMMAND_POOL_CREATE_RESET… in TEST_F()
641 VkCommandBufferObj secondary(m_device, &pool, VK_COMMAND_BUFFER_LEVEL_SECONDARY); in TEST_F()
662 vkCreateEvent(m_device->device(), &eci, nullptr, &event); in TEST_F()
664 VkCommandBufferObj secondary(m_device, m_commandPool, VK_COMMAND_BUFFER_LEVEL_SECONDARY); in TEST_F()
674 vkDestroyEvent(m_device->device(), event, nullptr); in TEST_F()
692 VkCommandBufferObj commandBuffer(m_device, m_commandPool); in TEST_F()
779 VkCommandBufferObj cb(m_device, m_commandPool); in TEST_F()
804 const VkPipelineLayoutObj pipeline_layout(m_device); in TEST_F()
815 VkConstantBufferObj vbo(m_device, static_cast<int>(sizeof(VboEntry) * vbo_entry_count), in TEST_F()
853 VkShaderObj vs(m_device, vsSource, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
854 VkShaderObj fs(m_device, bindStateFragShaderText, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
856 VkPipelineObj pipe1(m_device); in TEST_F()
868 VkPipelineObj pipe2(m_device); in TEST_F()
909 VkCommandBufferObj secondary(m_device, m_commandPool, VK_COMMAND_BUFFER_LEVEL_SECONDARY); in TEST_F()
933 VkCommandBufferObj secondary(m_device, m_commandPool, VK_COMMAND_BUFFER_LEVEL_SECONDARY); in TEST_F()
960 VkCommandBufferObj secondary(m_device, m_commandPool, VK_COMMAND_BUFFER_LEVEL_SECONDARY); in TEST_F()
992 vkAllocateCommandBuffers(m_device->device(), &alloc_info, cmd_bufs); in TEST_F()
1010 vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE); in TEST_F()
1012 vkQueueWaitIdle(m_device->m_queue); in TEST_F()
1021 vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE); in TEST_F()
1023 vkQueueWaitIdle(m_device->m_queue); in TEST_F()
1043 VkShaderObj vs(m_device, bindStateVertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
1044 VkShaderObj fs(m_device, fsSource, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
1046 VkPipelineObj pipe(m_device); in TEST_F()
1051 VkTextureObj texture(m_device, nullptr); in TEST_F()
1052 VkSamplerObj sampler(m_device); in TEST_F()
1054 VkDescriptorSetObj descriptorSet(m_device); in TEST_F()
1099 VkShaderObj vs(m_device, bindStateVertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
1100 VkShaderObj fs(m_device, fsSource, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
1102 VkPipelineObj pipe(m_device); in TEST_F()
1107 VkTextureObj texture(m_device, nullptr); // THIS LINE CAUSES CRASH ON MALI in TEST_F()
1108 VkSamplerObj sampler(m_device); in TEST_F()
1110 VkDescriptorSetObj descriptorSet(m_device); in TEST_F()
1154 VkShaderObj vs(m_device, bindStateVertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
1155 VkShaderObj fs(m_device, fsSource, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
1157 VkPipelineObj pipe(m_device); in TEST_F()
1162 …VkTextureObj texture(m_device, nullptr); // UNORM texture by default, incompatible with isampler2D in TEST_F()
1163 VkSamplerObj sampler(m_device); in TEST_F()
1165 VkDescriptorSetObj descriptorSet(m_device); in TEST_F()
1198 VkImageObj src_image_obj(m_device); in TEST_F()
1199 VkImageObj dst_image_obj(m_device); in TEST_F()
1286 VkImageObj image(m_device); in TEST_F()
1290 VkImageObj odd_image(m_device); in TEST_F()
1298 buffer_1024.init_as_src_and_dst(*m_device, 1024, reqs); in TEST_F()
1299 buffer_64.init_as_src_and_dst(*m_device, 64, reqs); in TEST_F()
1300 buffer_16.init_as_src_and_dst(*m_device, 16, reqs); in TEST_F()
1301 buffer_8.init_as_src_and_dst(*m_device, 8, reqs); in TEST_F()
1438 auto index = m_device->graphics_queue_node_index_; in TEST_F()
1439 auto queue_family_properties = m_device->phy().queue_properties(); in TEST_F()
1447 VkImageObj image_64k(m_device); // 128^2 texels, 64k in TEST_F()
1448 VkImageObj image_16k(m_device); // 64^2 texels, 16k in TEST_F()
1449 VkImageObj image_16k_depth(m_device); // 64^2 texels, depth, 16k in TEST_F()
1450 … VkImageObj ds_image_4D_1S(m_device); // 256^2 texels, 512kb (256k depth, 64k stencil, 192k pack) in TEST_F()
1451 VkImageObj ds_image_3D_1S(m_device); // 256^2 texels, 256kb (192k depth, 64k stencil) in TEST_F()
1452 VkImageObj ds_image_2D(m_device); // 256^2 texels, 128k (128k depth) in TEST_F()
1453 VkImageObj ds_image_1S(m_device); // 256^2 texels, 64k (64k stencil) in TEST_F()
1467 …vkGetPhysicalDeviceFormatProperties(m_device->phy().handle(), VK_FORMAT_D32_SFLOAT_S8_UINT, &props… in TEST_F()
1471 …vkGetPhysicalDeviceFormatProperties(m_device->phy().handle(), VK_FORMAT_D24_UNORM_S8_UINT, &props); in TEST_F()
1475 vkGetPhysicalDeviceFormatProperties(m_device->phy().handle(), VK_FORMAT_D16_UNORM, &props); in TEST_F()
1479 vkGetPhysicalDeviceFormatProperties(m_device->phy().handle(), VK_FORMAT_S8_UINT, &props); in TEST_F()
1517 buffer_256k.init_as_src_and_dst(*m_device, 262144, reqs); // 256k in TEST_F()
1518 buffer_128k.init_as_src_and_dst(*m_device, 131072, reqs); // 128k in TEST_F()
1519 buffer_64k.init_as_src_and_dst(*m_device, 65536, reqs); // 64k in TEST_F()
1520 buffer_16k.init_as_src_and_dst(*m_device, 16384, reqs); // 16k in TEST_F()
1790 … VkImageObj image_16k_4x4comp(m_device); // 128^2 texels as 32^2 compressed (4x4) blocks, 16k in TEST_F()
1791 VkImageObj image_NPOT_4x4comp(m_device); // 130^2 texels as 33^2 compressed (4x4) blocks in TEST_F()
1899 VkImageObj image(m_device); in TEST_F()
1904 buffer.init_as_src(*m_device, 128 * 128 * 8, reqs); in TEST_F()
1915 VkImageObj image2(m_device); in TEST_F()
1920 buffer2.init_as_src(*m_device, 128 * 128 * 2, reqs2); in TEST_F()
1991 VkImageObj intImage1(m_device); in TEST_F()
1994 VkImageObj intImage2(m_device); in TEST_F()
2043 VkImageObj image_1D(m_device); in TEST_F()
2050 VkImageObj image_2D(m_device); in TEST_F()
2057 VkImageObj image_3D(m_device); in TEST_F()
2065 VkImageObj image_2D_array(m_device); in TEST_F()
2203 vkGetPhysicalDeviceFormatProperties(m_device->phy().handle(), image_format, &format_props); in TEST_F()
2227 VkImageObj image_1D(m_device); in TEST_F()
2234 VkImageObj image_2D(m_device); in TEST_F()
2241 VkImageObj image_3D(m_device); in TEST_F()
2249 VkImageObj image_2D_array(m_device); in TEST_F()
2325 …if (VK_SUCCESS != vkGetPhysicalDeviceImageFormatProperties(m_device->phy().handle(), ci.format, ci… in TEST_F()
2332 VkImageObj image_1(m_device); in TEST_F()
2337 VkImageObj image_2(m_device); in TEST_F()
2487 VkImageObj image_422(m_device); in TEST_F()
2493 VkImageObj image_ucmp(m_device); in TEST_F()
2605 VkImageObj mp3_image(m_device); in TEST_F()
2610 VkImageObj mp2_image(m_device); in TEST_F()
2615 VkImageObj sp_image(m_device); in TEST_F()
2703 VkImageObj src_image(m_device); in TEST_F()
2711 VkImageObj dst_image(m_device); in TEST_F()
2787 VkImageObj dst_image(m_device); in TEST_F()
2795 VkImageObj src_image(m_device); in TEST_F()
2881 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &srcImage); in TEST_F()
2888 …vkGetPhysicalDeviceFormatProperties(m_device->phy().handle(), image_create_info.format, &propertie… in TEST_F()
2890 vkDestroyImage(m_device->device(), srcImage, NULL); in TEST_F()
2895 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &dstImage); in TEST_F()
2905 vkGetImageMemoryRequirements(m_device->device(), srcImage, &memReqs); in TEST_F()
2907 pass = m_device->phy().set_memory_type(memReqs.memoryTypeBits, &memAlloc, 0); in TEST_F()
2909 err = vkAllocateMemory(m_device->device(), &memAlloc, NULL, &srcMem); in TEST_F()
2912 vkGetImageMemoryRequirements(m_device->device(), dstImage, &memReqs); in TEST_F()
2914 pass = m_device->phy().set_memory_type(memReqs.memoryTypeBits, &memAlloc, 0); in TEST_F()
2916 err = vkAllocateMemory(m_device->device(), &memAlloc, NULL, &destMem); in TEST_F()
2919 err = vkBindImageMemory(m_device->device(), srcImage, srcMem, 0); in TEST_F()
2921 err = vkBindImageMemory(m_device->device(), dstImage, destMem, 0); in TEST_F()
2948 vkDestroyImage(m_device->device(), dstImage, NULL); in TEST_F()
2949 vkFreeMemory(m_device->device(), destMem, NULL); in TEST_F()
2977 vkDestroyImage(m_device->device(), srcImage, NULL); in TEST_F()
2978 vkFreeMemory(m_device->device(), srcMem, NULL); in TEST_F()
2982 VkImageObj mpImage(m_device); in TEST_F()
2993 vkDestroyImage(m_device->device(), srcImage, NULL); in TEST_F()
2994 vkFreeMemory(m_device->device(), srcMem, NULL); in TEST_F()
3006 … vkGetPhysicalDeviceFormatProperties(m_device->phy().handle(), VK_FORMAT_D32_SFLOAT, &properties); in TEST_F()
3012 VkImageObj srcImage(m_device); in TEST_F()
3015 VkImageObj dstImage(m_device); in TEST_F()
3083 VkImageObj image1(m_device); in TEST_F()
3088 VkImageObj image2(m_device); in TEST_F()
3093 VkImageObj image4(m_device); in TEST_F()
3148 … vkGetPhysicalDeviceFormatProperties(m_device->phy().handle(), VK_FORMAT_D32_SFLOAT, &properties); in TEST_F()
3153 VkImageObj color_image(m_device), ds_image(m_device), depth_image(m_device); in TEST_F()
3283 VkImageObj srcImage(m_device); in TEST_F()
3287 VkImageObj dstImage(m_device); in TEST_F()
3343 VkImageObj srcImage(m_device); in TEST_F()
3347 VkImageObj dstImage(m_device); in TEST_F()
3387 VkImageObj srcImage(m_device); in TEST_F()
3388 VkImageObj dstImage(m_device); in TEST_F()
3452 VkImageObj srcImage(m_device); in TEST_F()
3453 VkImageObj dstImage(m_device); in TEST_F()
3513 VkImageObj srcImage(m_device); in TEST_F()
3514 VkImageObj dstImage(m_device); in TEST_F()
3589 VkImageObj srcImage(m_device); in TEST_F()
3590 VkImageObj dstImage(m_device); in TEST_F()
3709 color_image_no_transfer.init(*m_device, image_create_info); in TEST_F()
3713 color_image.init(*m_device, image_create_info); in TEST_F()
3728 ds_image.init(*m_device, ds_image_create_info); in TEST_F()
3762 uint32_t queueFamilyIndex = m_device->QueueFamilyWithoutCapabilities(VK_QUEUE_GRAPHICS_BIT); in TEST_F()
3768 VkCommandPoolObj command_pool(m_device, queueFamilyIndex); in TEST_F()
3771 VkCommandBufferObj command_buffer(m_device, &command_pool); in TEST_F()
3785 VkCommandBufferObj secondary(m_device, m_commandPool, VK_COMMAND_BUFFER_LEVEL_SECONDARY); in TEST_F()
3819 VkImageObj image(m_device); in TEST_F()
3833 VkCommandBufferObj secondary(m_device, m_commandPool, VK_COMMAND_BUFFER_LEVEL_SECONDARY); in TEST_F()
3907 …const auto one_past_max_w = NearestGreater(static_cast<float>(m_device->props.limits.maxViewportDi… in TEST_F()
3908 …const auto one_past_max_h = NearestGreater(static_cast<float>(m_device->props.limits.maxViewportDi… in TEST_F()
3910 const auto min_bound = m_device->props.limits.viewportBoundsRange[0]; in TEST_F()
3911 const auto max_bound = m_device->props.limits.viewportBoundsRange[1]; in TEST_F()
3965 NegHeightViewportTests(m_device, m_commandBuffer, m_errorMonitor); in TEST_F()
3973 if (!m_device->phy().features().multiViewport) { in TEST_F()
3978 const auto max_viewports = m_device->props.limits.maxViewports; in TEST_F()
4027 …VkCommandBufferObj sec_cmdbuff_inside_rp(m_device, m_commandPool, VK_COMMAND_BUFFER_LEVEL_SECONDAR… in TEST_F()
4028 …VkCommandBufferObj sec_cmdbuff_outside_rp(m_device, m_commandPool, VK_COMMAND_BUFFER_LEVEL_SECONDA… in TEST_F()
4084 …ASSERT_VK_SUCCESS(vkAllocateCommandBuffers(m_device->device(), &command_buffer_allocate_info, &sec… in TEST_F()
4147 const VkDescriptorSetLayoutObj ds_layout(m_device, {binding}); in TEST_F()
4149 …const VkDescriptorSetLayoutObj push_ds_layout(m_device, {binding}, VK_DESCRIPTOR_SET_LAYOUT_CREATE… in TEST_F()
4153 const VkPipelineLayoutObj pipeline_layout(m_device, {&push_ds_layout, &ds_layout}); in TEST_F()
4158 VkConstantBufferObj buffer_obj(m_device, sizeof(buffer_data), &buffer_data); in TEST_F()
4170 …(PFN_vkCmdPushDescriptorSetKHR)vkGetDeviceProcAddr(m_device->device(), "vkCmdPushDescriptorSetKHR"… in TEST_F()
4175 …const uint32_t no_gfx_qfi = m_device->QueueFamilyMatching(VK_QUEUE_COMPUTE_BIT, VK_QUEUE_GRAPHICS_… in TEST_F()
4177 …m_device->QueueFamilyMatching(VK_QUEUE_TRANSFER_BIT, (VK_QUEUE_COMPUTE_BIT | VK_QUEUE_GRAPHICS_BIT… in TEST_F()
4183 VkCommandPoolObj command_pool(m_device, err_qfi); in TEST_F()
4185 VkCommandBufferObj command_buffer(m_device, &command_pool); in TEST_F()
4205 VkCommandPoolObj tran_command_pool(m_device, transfer_only_qfi); in TEST_F()
4207 VkCommandBufferObj tran_command_buffer(m_device, &tran_command_pool); in TEST_F()
4309 if (!m_device->phy().features().multiViewport) { in TEST_F()
4314 const auto max_scissors = m_device->props.limits.maxViewports; in TEST_F()
4389 draw_buffer.init(*m_device, buffer_create_info); in TEST_F()
4417 …(PFN_vkCmdDrawIndirectCountKHR)vkGetDeviceProcAddr(m_device->device(), "vkCmdDrawIndirectCountKHR"… in TEST_F()
4446 vkCreateBuffer(m_device->device(), &buffer_create_info, nullptr, &draw_buffer); in TEST_F()
4452 count_buffer.init(*m_device, count_buffer_create_info); in TEST_F()
4460 vkGetBufferMemoryRequirements(m_device->device(), draw_buffer, &memory_requirements); in TEST_F()
4462 …m_device->phy().set_memory_type(memory_requirements.memoryTypeBits, &memory_allocate_info, VK_MEMO… in TEST_F()
4464 vkAllocateMemory(m_device->device(), &memory_allocate_info, NULL, &draw_buffer_memory); in TEST_F()
4465 vkBindBufferMemory(m_device->device(), draw_buffer, draw_buffer_memory, 0); in TEST_F()
4468 vkCreateBuffer(m_device->device(), &count_buffer_create_info, nullptr, &count_buffer_unbound); in TEST_F()
4501 vkDestroyBuffer(m_device->device(), draw_buffer, 0); in TEST_F()
4502 vkDestroyBuffer(m_device->device(), count_buffer_unbound, 0); in TEST_F()
4504 vkFreeMemory(m_device->device(), draw_buffer_memory, 0); in TEST_F()
4521 …(PFN_vkCmdDrawIndexedIndirectCountKHR)vkGetDeviceProcAddr(m_device->device(), "vkCmdDrawIndexedInd… in TEST_F()
4550 draw_buffer.init(*m_device, buffer_create_info); in TEST_F()
4556 count_buffer.init(*m_device, count_buffer_create_info); in TEST_F()
4562 index_buffer.init(*m_device, index_buffer_create_info); in TEST_F()
4574 vkCreateBuffer(m_device->device(), &count_buffer_create_info, nullptr, &draw_buffer_unbound); in TEST_F()
4583 vkCreateBuffer(m_device->device(), &count_buffer_create_info, nullptr, &count_buffer_unbound); in TEST_F()
4618 vkDestroyBuffer(m_device->device(), draw_buffer_unbound, 0); in TEST_F()
4619 vkDestroyBuffer(m_device->device(), count_buffer_unbound, 0); in TEST_F()
4657 if (m_device->phy().properties().limits.maxViewports) { in TEST_F()
4729 …(PFN_vkCmdSetExclusiveScissorNV)vkGetDeviceProcAddr(m_device->device(), "vkCmdSetExclusiveScissorN… in TEST_F()
4862 VkShaderObj vs(m_device, vertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
4863 VkShaderObj ms(m_device, meshShaderText, VK_SHADER_STAGE_MESH_BIT_NV, this); in TEST_F()
4864 VkShaderObj fs(m_device, bindStateFragShaderText, VK_SHADER_STAGE_FRAGMENT_BIT, this); in TEST_F()
4898 VkResult result = vkCreateBuffer(m_device->device(), &buffer_create_info, nullptr, &buffer); in TEST_F()
4910 vkDestroyBuffer(m_device->device(), buffer, 0); in TEST_F()
4921 vkCreateEvent(m_device->device(), &event_create_info, nullptr, &event); in TEST_F()
4970 …ASSERT_VK_SUCCESS(vkCreateSemaphore(m_device->device(), &semaphore_create_info, nullptr, &semaphor… in TEST_F()
4979 vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE); in TEST_F()
4991 vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE); in TEST_F()
4994 vkQueueWaitIdle(m_device->m_queue); in TEST_F()
4996 VkShaderObj vs(m_device, bindStateVertShaderText, VK_SHADER_STAGE_VERTEX_BIT, this); in TEST_F()
5014 vkDestroyEvent(m_device->device(), event, nullptr); in TEST_F()
5015 vkDestroySemaphore(m_device->device(), semaphore, nullptr); in TEST_F()