mesa/src/microsoft
Connor Abbott 4282386311 nir/spirv: Add inverse_ballot intrinsic
This is actually a no-op on AMD, so we really don't want to lower it to
something more complicated.  There may be a more efficient way to do
this on Intel too. In addition, in the future we'll want to use this for
lowering boolean reduce operations, where the inverse ballot will
operate on the backend's "natural" ballot type as indicated by
options->ballot_bit_size, instead of uvec4 as produced by SPIR-V. In
total, there are now three possible lowerings we may have to perform:

- inverse_ballot with source type of uvec4 from SPIR-V to inverse_ballot
with natural source type, when the backend supports inverse_ballot
natively.
- inverse_ballot with source type of uvec4 from SPIR-V to arithmetic,
when the backend doesn't support inverse_ballot.
- inverse_ballot with natural source type from reduce operation, when
the backend doesn't support inverse_ballot.

Previously we just did the second lowering unconditionally in vtn, but
it's just a combination of the first and third. We add support here for
the first and third lowerings in nir_lower_subgroups, instead of simply
moving the second lowering, to avoid unnecessary churn.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25123>
2023-09-20 14:41:18 +00:00
..
ci ci/windows: drop build rules from test jobs 2023-09-13 09:40:18 +00:00
clc treewide: Drop nir_ssa_for_src users 2023-09-18 10:25:17 -04:00
compiler treewide: Drop nir_ssa_for_src users 2023-09-18 10:25:17 -04:00
spirv_to_dxil nir/spirv: Add inverse_ballot intrinsic 2023-09-20 14:41:18 +00:00
vulkan meson: support installation tags 2023-09-11 13:00:45 +00:00
meson.build d3d12: Move the D3D12ResourceState code to the gallium driver 2022-04-20 23:45:28 -07:00