Provide a highp variable to MAKE_HIGH_BALLOT_RESULT
authorHsin-Hsiao Lin <hsin-hsiao.lin@arm.com>
Thu, 25 Jul 2019 07:13:34 +0000 (09:13 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 14 Aug 2019 11:42:07 +0000 (07:42 -0400)
commit829f02340693ba88e36d3d4d4ee5ccb55ce7c489
treecc0ed5f60e4ecc3d84db23c3f82995a6fc299159
parent838098f5b6e913f8decdf2e7695e9701451a336e
Provide a highp variable to MAKE_HIGH_BALLOT_RESULT

The MAKE_HIGH_BALLOT_RESULT macro assumes the input is 32bit.
Given a mediump variable, ex: gl_SubgroupSize, would produce an
undefined result when the input value is >= 16 and the computation
is in 16 bits.
Provide a highp input would ensure the computation is in 32 bits.

Affects:
  dEQP-VK.subgroups.ballot_other.*

Components: vulkan

VK-GL-CTS issue: 1894

Change-Id: I22987f20be3d08444c52cb722fc23494777a5636
external/vulkancts/modules/vulkan/subgroups/vktSubgroupsBallotOtherTests.cpp