nir: add nir_get_nir_type_for_glsl_type()
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Wed, 7 Dec 2016 07:34:02 +0000 (08:34 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 9 Jan 2017 08:10:13 +0000 (09:10 +0100)
commit3a571fcc43e70731417f0b81cbce4b0a0c1be71d
treedd4127aa8da4a2634727180670a87c9492142e3d
parent59944a77ae5a01b6fd074def1d5031e0b7d5e47b
nir: add nir_get_nir_type_for_glsl_type()

v2 (Jason):
- Refactor nir_get_nir_type_for_glsl_type() to avoid using unneeded helpers (Jason)

v3:
- Use return directly (Jason)

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir.h