| 23 | class NegativeOther : public VkLayerTest {}; |
| 24 | |
| 25 | TEST_F(NegativeOther, VersionCheckPromotedAPIs) { |
| 26 | TEST_DESCRIPTION("Validate that promoted APIs are not valid in old versions."); |
| 27 | SetTargetApiVersion(VK_API_VERSION_1_0); |
| 28 | |
| 29 | #ifdef VK_USE_PLATFORM_METAL_EXT |
| 30 | GTEST_SKIP() << "VK_KHR_get_physical_device_properties2 is enabled due to VK_KHR_portability_subset"; |
| 31 | #endif |
| 32 | |
| 33 | RETURN_IF_SKIP(Init()); |
| 34 | |
| 35 | // TODO - Currently not working on MockICD with Profiles using 1.0 |
| 36 | // Seems API version is not being passed through correctly |
| 37 | if (IsPlatformMockICD()) { |
| 38 | GTEST_SKIP() << "Test not supported by MockICD"; |
| 39 | } |
| 40 | |
| 41 | const auto vkGetPhysicalDeviceProperties2 = |
| 42 | GetInstanceProcAddr<PFN_vkGetPhysicalDeviceProperties2>("vkGetPhysicalDeviceProperties2"); |
| 43 | |
| 44 | VkPhysicalDeviceProperties2 phys_dev_props_2 = vku::InitStructHelper(); |
| 45 | |
| 46 | m_errorMonitor->SetDesiredError("UNASSIGNED-API-Version-Violation"); |
| 47 | vkGetPhysicalDeviceProperties2(Gpu(), &phys_dev_props_2); |
| 48 | m_errorMonitor->VerifyFound(); |
| 49 | } |
| 50 | |
| 51 | TEST_F(NegativeOther, UnsupportedPnextApiVersion) { |
| 52 | TEST_DESCRIPTION("Validate that newer pnext structs are not valid for old Vulkan versions."); |
nothing calls this directly
no test coverage detected