nir: Use a single bit for the dual-source blend index
authorTimothy Arceri <t_arceri@yahoo.com.au>
Sun, 2 Aug 2015 04:57:38 +0000 (14:57 +1000)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Mon, 3 Aug 2015 11:36:50 +0000 (21:36 +1000)
commitab5b7a0fe659ff6f9c1885d5cb047b6531959506
treedc9eb6eac61ea247e1640f273e61c35c03fb0b5e
parent9ef5b7a23348291893a6bf61fcce7a306e787add
nir: Use a single bit for the dual-source blend index

The only values allowed are 0 and 1, and the value is checked before
assigning.

This is a copy of 8eeca7a56c that seems to have been made to the glsl
ir type after it was copied for use in nir but before nir landed.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/glsl/nir/nir.h