Test zero-size unused specialization constants
authorRicardo Garcia <rgarcia@igalia.com>
Tue, 20 Jul 2021 14:20:50 +0000 (16:20 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 29 Jul 2021 07:24:54 +0000 (07:24 +0000)
commit9a1befce889e86483bc0e4c78308bc821dbeff72
tree424958427563c24dc4b49ad604dbead9de4e4634
parentde3fec827901e38a342a71371d54b33895b6c573
Test zero-size unused specialization constants

According to the spec for VkSpecializationMapEntry

> If a constantID value is not a specialization constant ID used in the
> shader, that map entry does not affect the behavior of the pipeline.

So it should be legal to use VkSpecializationMapEntry structures
indicating size zero for a given constant as long as the constant is not
used in the shaders.

This commits adds new test variants that verify implementations handle
such cases.

New tests:
dEQP-VK.pipeline.spec_constant.*.basic.*unused_*

Affected tests:
dEQP-VK.pipeline.spec_constant.*

Components: Vulkan
VK-GL-CTS issue: 3011

Change-Id: I2a8439368722e6caaa828fd91e061cfd5e2be61d
android/cts/master/vk-master-2021-03-01/pipeline.txt
android/cts/master/vk-master/pipeline.txt
external/vulkancts/modules/vulkan/pipeline/vktPipelineSpecConstantTests.cpp
external/vulkancts/mustpass/master/vk-default/pipeline.txt