Add feature checks to shader builtin tests
authorToni Merilehti <toni.merilehti@siru.fi>
Wed, 15 May 2019 14:49:42 +0000 (17:49 +0300)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 22 May 2019 06:40:02 +0000 (02:40 -0400)
commit9e53777781b4ffb97a61fb3323c2b5de259e5a80
treee06cee82c52c3e9e2a12b29f3f23f3f2e538a3a1
parent9cee6d349fbc642add9944025ced113076a74648
Add feature checks to shader builtin tests

Some shader builtin tests use SampleId and SamplePosition BuiltIns
in shaders, which both require the SampleRateShading OpCapability
and the sampleRateShading Vulkan feature. This CL adds the missing
feature checks when required by the shaders.

Affects:

dEQP-VK.pipeline.multisample_shader_builtin.sample_id.*
dEQP-VK.pipeline.multisample_shader_builtin.sample_position.*

Components: Vulkan

VK-GL-CTS issue: 1744

Change-Id: I4557b5cd79191f7ca1202562416d12d3b1d8ce60
(cherry picked from commit 3f2ce1e5bcf568fe0a65a4ed638e0589b8694482)
external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleShaderBuiltInTests.cpp