Simplify code for subgroup builtin mask tests
authorGraeme Leese <gleese@broadcom.com>
Thu, 10 Dec 2020 11:49:36 +0000 (11:49 +0000)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 18 Dec 2020 08:10:35 +0000 (08:10 +0000)
commit7408d79306a010870cadc8d49e54daaf107b72bd
tree65fd5d54f931bf4e24e912f2032d9ddff76934e6
parentcca2dbb6889271568617c309a3c7f3a336f98cff
Simplify code for subgroup builtin mask tests

A lot of code was being duplicated, which is now shared. The shaders
were calculating bitCount by looping over the bits, which is less
efficient than using the intrinsic.

The new code is shorter and should be easier to understand and faster to
execute, but there is no functional change.

Components: Vulkan
Affects: dEQP-VK.subgroups.builtin_mask_var.*

Change-Id: I6ef0d607423aa5cccce17aefeaac8cc1055ec488
external/vulkancts/modules/vulkan/subgroups/vktSubgroupsBuiltinMaskVarTests.cpp