nir: Allow nir_lower_io() to only lower one type of variable.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 12 Aug 2015 22:14:35 +0000 (15:14 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 1 Oct 2015 17:58:30 +0000 (10:58 -0700)
commit39a1d36a67974dd9fc3c0d834d6a117cdfed8f33
tree8a552754b8dcf9f2c3accf4ef49b7be6307cc085
parent1c6689bf03fe500cc1bc55d7c2039c0aa3ae095c
nir: Allow nir_lower_io() to only lower one type of variable.

We may want to use different type_size functions for (e.g.) inputs
vs. uniforms.  Passing in -1 for mode ignores this, handling all
modes as before.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/nir/nir.h
src/glsl/nir/nir_lower_io.c
src/mesa/drivers/dri/i965/brw_nir.c