nir: Make ballot intrinsics variable-size
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Aug 2017 02:58:59 +0000 (19:58 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Nov 2017 18:37:52 +0000 (10:37 -0800)
commit3ee91ee6ac739f7ad4d5d4b066073efbeb511b41
treeb11171839e3759db0e8412e27af05c44a1ba4bb7
parentad127afcfd5e7d6fb98e7cf2ae02333249d31fb2
nir: Make ballot intrinsics variable-size

This way they can return either a uvec4 or a uint64_t.  At the moment,
this is a no-op since we still always return a uint64_t.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/nir/nir_intrinsics.h
src/compiler/nir/nir_lower_system_values.c