spirv/subgroups: Stop incrementing w
authorJason Ekstrand <jason@jlekstrand.net>
Sat, 30 May 2020 16:07:46 +0000 (11:07 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 24 Jul 2020 03:43:21 +0000 (22:43 -0500)
commitea246c3950777d5c5dd5363b0cfc15215db12b11
treea9cb550dbb5940437273f99514750a7a4451ad87
parentc5fcd129ea196702119c24c849f3b31c7f549695
spirv/subgroups: Stop incrementing w

The w++ is to handle a differences between the KHR extension and Vulkan
1.1 feature where the Vulkan 1.1 instructions take an scope parameter.
While incrementing w technically works, it's really subtle and very easy
to miss when reading the code.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5278>
src/compiler/spirv/vtn_subgroup.c