| 17 | class NegativeVideoEncode : public VkVideoLayerTest {}; |
| 18 | |
| 19 | TEST_F(NegativeVideoEncode, EncodeQualityLevelPropsUnsupportedProfile) { |
| 20 | TEST_DESCRIPTION("vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR - unsupported profile"); |
| 21 | |
| 22 | RETURN_IF_SKIP(Init()); |
| 23 | |
| 24 | auto config = GetConfigEncodeInvalid(); |
| 25 | if (!config) { |
| 26 | GTEST_SKIP() << "Test requires encode support"; |
| 27 | } |
| 28 | |
| 29 | auto quality_level_info = vku::InitStruct<VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR>(); |
| 30 | quality_level_info.pVideoProfile = config.Profile(); |
| 31 | |
| 32 | m_errorMonitor->SetDesiredError("VUID-VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR-pVideoProfile-08259"); |
| 33 | vk::GetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR(Gpu(), &quality_level_info, config.EncodeQualityLevelProps()); |
| 34 | m_errorMonitor->VerifyFound(); |
| 35 | } |
| 36 | |
| 37 | TEST_F(NegativeVideoEncode, EncodeQualityLevelPropsProfileNotEncode) { |
| 38 | TEST_DESCRIPTION("vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR - profile is not an encode profile"); |
nothing calls this directly
no test coverage detected