• Home
  • Raw
  • Download

Lines Matching +full:- +full:qf

2  * Copyright (c) 2015-2019 The Khronos Group Inc.
3 * Copyright (c) 2015-2019 Valve Corporation
4 * Copyright (c) 2015-2019 LunarG, Inc.
5 * Copyright (c) 2015-2019 Google, Inc.
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Author: Chia-I Wu <olvaffe@gmail.com>
77 … // (It's not clear that this is any more definitive than using the original version - but no harm) in ImageFormatAndFeaturesSupported()
106 if (msgFlags & errMonitor->GetMessageFlags()) { in myDbgFunc()
107 return errMonitor->CheckForDesiredMsg(pMsg); in myDbgFunc()
113 // Find address of extension call and make the call -- assumes needed extensions are enabled. in GetPushDescriptorProperties()
150 data->callback(pCallbackData, data); in DebugUtilsCallback()
159 vkCmdSetEvent(data->commandBuffer, data->event, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT); in AddToCommandBuffer()
160 if (data->bailout) { in AddToCommandBuffer()
172 vkDestroyFence(data->device, VK_NULL_HANDLE, NULL); in ReleaseNullFence()
173 if (data->bailout) { in ReleaseNullFence()
186 error_monitor->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT, rp1_vuid); in TestRenderPassCreate()
189 error_monitor->VerifyFound(); in TestRenderPassCreate()
198 error_monitor->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT, rp2_vuid); in TestRenderPassCreate()
201 error_monitor->VerifyFound(); in TestRenderPassCreate()
210 error_monitor->ExpectSuccess(); in PositiveTestRenderPassCreate()
213 error_monitor->VerifyNotFound(); in PositiveTestRenderPassCreate()
221 error_monitor->ExpectSuccess(); in PositiveTestRenderPassCreate()
224 error_monitor->VerifyNotFound(); in PositiveTestRenderPassCreate()
235 error_monitor->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT, rp2_vuid); in TestRenderPass2KHRCreate()
238 error_monitor->VerifyFound(); in TestRenderPass2KHRCreate()
248 error_monitor->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT, rp1_vuid); in TestRenderPassBegin()
250 error_monitor->VerifyFound(); in TestRenderPassBegin()
258 error_monitor->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT, rp2_vuid); in TestRenderPassBegin()
260 error_monitor->VerifyFound(); in TestRenderPassBegin()
268 monitor->ExpectSuccess(); in ValidOwnershipTransferOp()
269 cb->begin(); in ValidOwnershipTransferOp()
272 …cb->PipelineBarrier(src_stages, dst_stages, 0, 0, nullptr, num_buf_barrier, buf_barrier, num_img_b… in ValidOwnershipTransferOp()
273 cb->end(); in ValidOwnershipTransferOp()
274 cb->QueueCommandBuffer(); // Implicitly waits in ValidOwnershipTransferOp()
275 monitor->VerifyNotFound(); in ValidOwnershipTransferOp()
288 …rn vkGetPhysicalDeviceImageFormatProperties(dev, ci->format, ci->imageType, ci->tiling, ci->usage,… in GPDIFPHelper()
402 const auto &limits = m_device->props.limits; in NegHeightViewportTests()
404 m_commandBuffer->begin(); in NegHeightViewportTests()
413 …const auto one_before_min_h = NearestSmaller(-static_cast<float>(limits.maxViewportDimensions[1])); in NegHeightViewportTests()
421 …se> test_cases = {{{0.0, 0.0, 64.0, one_before_min_h, 0.0, 1.0}, {"VUID-VkViewport-height-01773"}}, in NegHeightViewportTests()
422 … {{0.0, 0.0, 64.0, one_past_max_h, 0.0, 1.0}, {"VUID-VkViewport-height-01773"}}, in NegHeightViewportTests()
423 … {{0.0, 0.0, 64.0, NAN, 0.0, 1.0}, {"VUID-VkViewport-height-01773"}}, in NegHeightViewportTests()
424 … {{0.0, one_before_min_bound, 64.0, 1.0, 0.0, 1.0}, {"VUID-VkViewport-y-01775"}}, in NegHeightViewportTests()
425 … {{0.0, one_past_max_bound, 64.0, -1.0, 0.0, 1.0}, {"VUID-VkViewport-y-01776"}}, in NegHeightViewportTests()
426 … {{0.0, min_bound, 64.0, -1.0, 0.0, 1.0}, {"VUID-VkViewport-y-01777"}}, in NegHeightViewportTests()
427 … {{0.0, max_bound, 64.0, 1.0, 0.0, 1.0}, {"VUID-VkViewport-y-01233"}}}; in NegHeightViewportTests()
431 if (vuid == "VUID-Undefined") in NegHeightViewportTests()
432 m_errorMonitor->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT, in NegHeightViewportTests()
435 m_errorMonitor->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT, vuid); in NegHeightViewportTests()
437 vkCmdSetViewport(m_commandBuffer->handle(), 0, 1, &test_case.vp); in NegHeightViewportTests()
438 m_errorMonitor->VerifyFound(); in NegHeightViewportTests()
446 …test.Monitor()->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPORT_WARNING_BIT_E… in CreateSamplerTest()
448 test.Monitor()->ExpectSuccess(); in CreateSamplerTest()
452 test.Monitor()->VerifyFound(); in CreateSamplerTest()
454 test.Monitor()->VerifyNotFound(); in CreateSamplerTest()
465 test.Monitor()->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT, code); in CreateBufferTest()
467 test.Monitor()->ExpectSuccess(); in CreateBufferTest()
471 test.Monitor()->VerifyFound(); in CreateBufferTest()
473 test.Monitor()->VerifyNotFound(); in CreateBufferTest()
484 test.Monitor()->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT, code); in CreateImageTest()
486 test.Monitor()->ExpectSuccess(); in CreateImageTest()
490 test.Monitor()->VerifyFound(); in CreateImageTest()
492 test.Monitor()->VerifyNotFound(); in CreateImageTest()
504 …[&](const std::string &s) { test.Monitor()->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT, s)… in CreateBufferViewTest()
506 test.Monitor()->ExpectSuccess(); in CreateBufferViewTest()
510 test.Monitor()->VerifyFound(); in CreateBufferViewTest()
512 test.Monitor()->VerifyNotFound(); in CreateBufferViewTest()
523 test.Monitor()->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT, code); in CreateImageViewTest()
525 test.Monitor()->ExpectSuccess(); in CreateImageViewTest()
529 test.Monitor()->VerifyFound(); in CreateImageViewTest()
531 test.Monitor()->VerifyNotFound(); in CreateImageViewTest()
580 …if (renderFramework->DeviceExtensionSupported(renderFramework->gpu(), nullptr, VK_KHR_CREATE_RENDE… in CheckCreateRenderPass2Support()
593 …bool descriptor_indexing = renderFramework->InstanceExtensionSupported(VK_KHR_GET_PHYSICAL_DEVICE_… in CheckDescriptorIndexingSupportAndInitFramework()
597 renderFramework->InitFramework(myDbgFunc, userData, features); in CheckDescriptorIndexingSupportAndInitFramework()
598 …iptor_indexing = descriptor_indexing && renderFramework->DeviceExtensionSupported(renderFramework- in CheckDescriptorIndexingSupportAndInitFramework()
600 descriptor_indexing = descriptor_indexing && renderFramework->DeviceExtensionSupported( in CheckDescriptorIndexingSupportAndInitFramework()
601 … renderFramework->gpu(), nullptr, VK_EXT_DESCRIPTOR_INDEXING_EXTENSION_NAME); in CheckDescriptorIndexingSupportAndInitFramework()
661 … // An empty desired_msg string "" indicates a positive test - not expecting an error. in CheckForDesiredMsg()
774 ASSERT_TRUE(m_device && m_device->initialized()); // VKTriangleTest assumes Init() has finished in VKTriangleTest()
893 …m_depthStencil->Init(m_device, static_cast<uint32_t>(m_width), static_cast<uint32_t>(m_height), m_… in VKTriangleTest()
895 depth_attachment = m_depthStencil->BindInfo(); in VKTriangleTest()
899 m_commandBuffer->begin(); in VKTriangleTest()
903 m_commandBuffer->BeginRenderPass(m_renderPassBeginInfo); in VKTriangleTest()
908 m_commandBuffer->DrawIndexed(3, 1, 0, 0, 0); in VKTriangleTest()
911 m_commandBuffer->BindIndexBuffer(&index_buffer, 0, VK_INDEX_TYPE_UINT16); in VKTriangleTest()
912 m_commandBuffer->DrawIndexed(513, 1, 0, 0, 0); in VKTriangleTest()
915 m_commandBuffer->BindIndexBuffer(&index_buffer, 0, VK_INDEX_TYPE_UINT16); in VKTriangleTest()
916 m_commandBuffer->DrawIndexed(512, 1, 1, 0, 0); in VKTriangleTest()
919 m_commandBuffer->BindIndexBuffer(&index_buffer, 512, VK_INDEX_TYPE_UINT16); in VKTriangleTest()
920 m_commandBuffer->DrawIndexed(257, 1, 0, 0, 0); in VKTriangleTest()
923 m_commandBuffer->BindIndexBuffer(&index_buffer, 512, VK_INDEX_TYPE_UINT16); in VKTriangleTest()
924 m_commandBuffer->DrawIndexed(256, 1, 1, 0, 0); in VKTriangleTest()
926 m_commandBuffer->Draw(3, 1, 0, 0); in VKTriangleTest()
935 vkCmdClearAttachments(m_commandBuffer->handle(), 1, &color_attachment, 1, &clear_rect); in VKTriangleTest()
939 m_commandBuffer->EndRenderPass(); in VKTriangleTest()
940 m_commandBuffer->end(); in VKTriangleTest()
941 m_commandBuffer->QueueCommandBuffer(true); in VKTriangleTest()
947 …commandBuffer->ClearAllBuffers(m_renderTargets, m_clear_color, m_depthStencil, m_depth_clear_color… in GenericDrawPreparation()
949 commandBuffer->PrepareAttachments(m_renderTargets, m_depthStencil); in GenericDrawPreparation()
982 … vkCmdBindPipeline(commandBuffer->handle(), VK_PIPELINE_BIND_POINT_GRAPHICS, pipelineobj.handle()); in GenericDrawPreparation()
983 commandBuffer->BindDescriptorSet(descriptorSet); in GenericDrawPreparation()
1024 this->app_info.sType = VK_STRUCTURE_TYPE_APPLICATION_INFO; in VkLayerTest()
1025 this->app_info.pNext = NULL; in VkLayerTest()
1026 this->app_info.pApplicationName = "layer_tests"; in VkLayerTest()
1027 this->app_info.applicationVersion = 1; in VkLayerTest()
1028 this->app_info.pEngineName = "unittest"; in VkLayerTest()
1029 this->app_info.engineVersion = 1; in VkLayerTest()
1030 this->app_info.apiVersion = VK_API_VERSION_1_0; in VkLayerTest()
1156 vkCreateBuffer(aVulkanDevice->device(), &buffer_create_info, nullptr, &vulkanBuffer); in GetTestConditionValid()
1159 vkGetBufferMemoryRequirements(aVulkanDevice->device(), vulkanBuffer, &memory_reqs); in GetTestConditionValid()
1160 vkDestroyBuffer(aVulkanDevice->device(), vulkanBuffer, nullptr); in GetTestConditionValid()
1163 offset_limit = aVulkanDevice->props.limits.minTexelBufferOffsetAlignment; in GetTestConditionValid()
1165 offset_limit = aVulkanDevice->props.limits.minUniformBufferOffsetAlignment; in GetTestConditionValid()
1167 offset_limit = aVulkanDevice->props.limits.minStorageBufferOffsetAlignment; in GetTestConditionValid()
1177 VulkanDevice(aVulkanDevice->device()) { in VkBufferTest()
1181 memory_allocate_info.allocationSize = 1; // fake size -- shouldn't matter for the test in VkBufferTest()
1182 memory_allocate_info.memoryTypeIndex = 0; // fake type -- shouldn't matter for the test in VkBufferTest()
1204 …bool pass = aVulkanDevice->phy().set_memory_type(memory_requirements.memoryTypeBits, &memory_alloc… in VkBufferTest()
1301 pipelineHelper->vi_ci_.pVertexBindingDescriptions = VertexInputBindingDescription; in AddVertexInputToPipeHelpr()
1302 pipelineHelper->vi_ci_.vertexBindingDescriptionCount = BindingCount; in AddVertexInputToPipeHelpr()
1303 pipelineHelper->vi_ci_.pVertexAttributeDescriptions = VertexInputAttributeDescription; in AddVertexInputToPipeHelpr()
1304 pipelineHelper->vi_ci_.vertexAttributeDescriptionCount = AttributeCount; in AddVertexInputToPipeHelpr()
1339 err = vkCreateDescriptorPool(device_->handle(), &dspci, nullptr, &pool_);
1344 err = vkAllocateDescriptorSets(device_->handle(), &alloc_info, &set_);
1348 // No need to destroy set-- it's going away with the pool. in ~OneOffDescriptorSet()
1349 vkDestroyDescriptorPool(device_->handle(), pool_, nullptr); in ~OneOffDescriptorSet()
1361 size_t index = buffer_infos.size() - 1; in WriteDescriptorBufferInfo()
1399 size_t index = image_infos.size() - 1; in WriteDescriptorImageInfo()
1416 …vkUpdateDescriptorSets(device_->handle(), descriptor_writes.size(), descriptor_writes.data(), 0, N… in UpdateDescriptorSets()
1474 shader_stages_ = {vs_->GetStageCreateInfo(), fs_->GetStageCreateInfo()}; in InitShaderInfo()
1512 // Color-only rendering in a subpass with no depth/stencil attachment in InitGraphicsPipelineInfo()
1516 // Required: Fixed-Function Pipeline Stages in InitGraphicsPipelineInfo()
1547 // TBD -- add shaders and create_info in InitTesselationState()
1568 ASSERT_TRUE(descriptor_set_->Initialized()); in InitState()
1573 …pipeline_layout_ = VkPipelineLayoutObj(layer_test_.DeviceObj(), {&descriptor_set_->layout_}, push_… in InitState()
1653 ASSERT_TRUE(descriptor_set_->Initialized()); in InitState()
1658 …pipeline_layout_ = VkPipelineLayoutObj(layer_test_.DeviceObj(), {&descriptor_set_->layout_}, push_… in InitState()
1667 cp_ci_.stage = cs_.get()->GetStageCreateInfo(); in LateBindPipelineInfo()
1778 " vec3 dir = vec3(0.0, 0.0, -1.0); \n" in InitShaderInfo()
1810 …shader_stages_ = {rgs_->GetStageCreateInfo(), chs_->GetStageCreateInfo(), mis_->GetStageCreateInfo… in InitShaderInfo()
1842 ASSERT_TRUE(descriptor_set_->Initialized()); in InitState()
1844 pipeline_layout_ = VkPipelineLayoutObj(layer_test_.DeviceObj(), {&descriptor_set_->layout_}); in InitState()
1898 VkDeviceObj *device_obj = layer_test->DeviceObj(); in Context()
1902 VkQueue queue = device_obj->queue_family_queues(qfi)[0]->handle(); in Context()
1910 layer_test->DeviceObj()->wait(); in Reset()
1911 for (auto &qf : queue_families) { in Reset() local
1912 vkResetCommandPool(layer_test->device(), qf.second.command_pool->handle(), 0); in Reset()
1917 : context_(context), image_(context->layer_test->DeviceObj()) {} in BarrierQueueFamilyTestHelper()
1920 VkDeviceObj *device_obj = context_->layer_test->DeviceObj(); in Init()
1937 QueueFamilyObjs *qf; in GetQueueFamilyInfo() local
1939 auto qf_it = context->queue_families.find(qfi); in GetQueueFamilyInfo()
1940 if (qf_it != context->queue_families.end()) { in GetQueueFamilyInfo()
1941 qf = &(qf_it->second); in GetQueueFamilyInfo()
1943 qf = &(context->queue_families[context->default_index]); in GetQueueFamilyInfo()
1945 return qf; in GetQueueFamilyInfo()
1950 auto monitor = context_->layer_test->Monitor(); in operator ()()
1951 …if (img_err.length()) monitor->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPOR… in operator ()()
1952 …if (buf_err.length()) monitor->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPOR… in operator ()()
1959 QueueFamilyObjs *qf = GetQueueFamilyInfo(context_, queue_family_index); in operator ()() local
1961 VkCommandBufferObj *command_buffer = qf->command_buffer; in operator ()()
1963 command_buffer->begin(); in operator ()()
1965 …vkCmdPipelineBarrier(command_buffer->handle(), VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_T… in operator ()()
1968 command_buffer->end(); in operator ()()
1969 …command_buffer = qf->command_buffer2; // Second pass (if any) goes to the secondary command_buffe… in operator ()()
1975qf->queue->submit({{qf->command_buffer, qf->command_buffer2}}, vk_testing::Fence(), positive); in operator ()()
1977qf->command_buffer->QueueCommandBuffer(positive); // Check for success on positive tests only in operator ()()
1982 monitor->VerifyNotFound(); in operator ()()
1984 monitor->VerifyFound(); in operator ()()
1986 context_->Reset(); in operator ()()
2004 JavaVM &vm = *app.activity->vm; in get_args()
2009 jobject activity = app.activity->clazz; in get_args()
2075 if (info.result()->Passed()) { in OnTestEnd()
2081 if (info.result()->Failed()) addFullTestCommentIfPresent(info, result); in OnTestEnd()
2085 os << info.result()->elapsed_time(); in OnTestEnd()
2098 if (app->window) { in processCommand()
2100 VkTestFramework::window = app->window; in processCommand()
2122 app->onAppCmd = processCommand; in android_main()
2123 app->onInputEvent = processInput; in android_main()
2128 while (ALooper_pollAll(active ? 0 : -1, NULL, &events, (void **)&source) >= 0) { in android_main()
2130 source->process(app, source); in android_main()
2133 if (app->destroyRequested != 0) { in android_main()
2141 // --es args "--gtest_filter=-VkLayerTest.foo" in android_main()
2163 … ::testing::TestEventListeners &listeners = ::testing::UnitTest::GetInstance()->listeners(); in android_main()
2182 ANativeActivity_finish(app->activity); in android_main()