intel/nir: Use the correct indirect lowering masks in link_shaders
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 28 Oct 2017 16:02:14 +0000 (09:02 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 9 Nov 2017 04:10:04 +0000 (20:10 -0800)
commit951a5dc4cc29da996b54ae63eeba1915a3a65b4a
tree05839767ebe7bf4a38bf5ce980b0996be8c0211f
parentf317f72f7310cbe741d82970fd335cb8c83300eb
intel/nir: Use the correct indirect lowering masks in link_shaders

Previously, if we were linking a vec4 VS with a SIMD8/16 FS, we wouldn't
lower indirects on the fragment shader which is wrong.  Instead of using
a single indirect mask, take advantage of our new little helper.

Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Cc: mesa-stable@lists.freedesktop.org
src/intel/compiler/brw_nir.c