MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / TEST_F

Function TEST_F

tests/unit/gpu_av.cpp:23–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21class NegativeGpuAV : public GpuAVTest {};
22
23TEST_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
47TEST_F(NegativeGpuAV, ValidationFeatures) {
48 TEST_DESCRIPTION("Validate Validation Features");

Callers

nothing calls this directly

Calls 15

CmdBindPipelineFunction · 0.85
CmdDispatchFunction · 0.85
CmdBindDescriptorSetsFunction · 0.85
CmdDrawFunction · 0.85
size32Function · 0.85
VkShaderObjClass · 0.85
ShaderCreateInfoFunction · 0.85
CmdBindIndexBuffer3KHRFunction · 0.85
CanEnableGpuAVFunction · 0.85

Tested by

no test coverage detected