nir: Reduce destination size of ballot intrinsic when possible
authorMatt Turner <mattst88@gmail.com>
Fri, 30 Jun 2017 22:07:10 +0000 (15:07 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 20 Jul 2017 23:56:49 +0000 (16:56 -0700)
commit1038d385a9b5817132d16f9f5877743d0bb8cca0
tree2acb3c00980c276cd34c71959c0cbfb89f1085c5
parent51c1659af8c1e75f96f1643a890b2858ca76b5eb
nir: Reduce destination size of ballot intrinsic when possible

Some hardware, like i965, doesn't support group sizes greater than 32.
In that case, we can reduce the destination size of the ballot
intrinsic, which will simplify our code generation.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_intrinsics.c
src/intel/compiler/brw_compiler.c