Cast invocation ID correctly in allequal tests
authorGraeme Leese <gleese@broadcom.com>
Fri, 28 Jun 2019 08:36:22 +0000 (09:36 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 5 Jul 2019 07:28:12 +0000 (03:28 -0400)
commit1ba400208361b5eaf408c49514ce112ba6178c07
treecd9c3c29ecc63f263fea147a835be6212926708f
parent3a731282a00905d00c4154761caced0dc02866b8
Cast invocation ID correctly in allequal tests

The gl_SubgroupInvocationID was not being cast to the appropriate type
in the vote.allequal tests, so every type was testing the uint version.
The ARB extension tests worked around this by specifically casting to
bool because there is no uint version in the ARB extension. This version
casts the invocation ID to the appropriate type for the test. This part
of the test is skipped for boolean types because there may not be an
invocation with ID 0, so the results may all be equal ( == true),
contrary to the test's expectation.

Component: Vulkan
VK-GL-CTS issue: 1845
Affects: dEQP-VK.subgroups.vote.*

Change-Id: I98a01fa2398cc4cdc18125af2cc64f59a5d559ca
external/vulkancts/modules/vulkan/subgroups/vktSubgroupsVoteTests.cpp