commit | 97f10934edf8ac02f28fccea0bcbbe9293375357 | [log] [tgz] |
---|---|---|
author | Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> | Mon Feb 05 22:54:18 2018 +0100 |
committer | Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> | Wed Mar 07 21:18:32 2018 +0100 |
tree | d0af38ad0594961185a9f8a2ff31a88caa76fd4e | |
parent | c217607b65ae00918ea86454eb59e6ee69c6ea68 [diff] |
ac/nir: Add vote_ieq/vote_feq lowering pass. The old vote_eq implementation supported only booleans, but now we have to support arbitrary values, so use the read_first_invocation intrinsic + ballot. I took this as an opportunity to figure out how easy it was to do this in nir instead of in the nir_to_llvm pass, and it actually turned out pretty okay IMO. Only creating the pass is some extra code. Reviewed-by: Dave Airlie <airlied@redhat.com>