| 21 | class NegativeGpuAV : public GpuAVTest {}; |
| 22 | |
| 23 | TEST_F(NegativeGpuAV, ValidationAbort) { |
| 24 | TEST_DESCRIPTION("GPU validation: Verify that aborting GPU-AV is safe."); |
| 25 | // GPU Shader Instrumentation requires Vulkan 1.1 or later |
| 26 | SetTargetApiVersion(VK_API_VERSION_1_0); |
| 27 | VkValidationFeaturesEXT validation_features = GetGpuAvValidationFeatures(); |
| 28 | RETURN_IF_SKIP(InitFramework(&validation_features)); |
| 29 | m_errorMonitor->SetDesiredError("GPU-AV is being disabled"); |
| 30 | RETURN_IF_SKIP(InitState()); |
| 31 | m_errorMonitor->VerifyFound(); |
| 32 | |
| 33 | // Still make sure we can use Vulkan as expected without errors |
| 34 | InitRenderTarget(); |
| 35 | |
| 36 | CreateComputePipelineHelper pipe(*this); |
| 37 | pipe.CreateComputePipeline(); |
| 38 | |
| 39 | m_command_buffer.Begin(); |
| 40 | vk::CmdBindPipeline(m_command_buffer, VK_PIPELINE_BIND_POINT_COMPUTE, pipe); |
| 41 | vk::CmdDispatch(m_command_buffer, 1, 1, 1); |
| 42 | m_command_buffer.End(); |
| 43 | |
| 44 | m_default_queue->SubmitAndWait(m_command_buffer); |
| 45 | } |
| 46 | |
| 47 | TEST_F(NegativeGpuAV, ValidationFeatures) { |
| 48 | TEST_DESCRIPTION("Validate Validation Features"); |
nothing calls this directly
no test coverage detected